MathType for Word and PowerPoint

繁體中文
An installable AI Agent skill, Codex/Claude plugin, and MCP server for creating editable MathType 7 equations in Microsoft Word and PowerPoint. Word documents also support MathType-native equation numbering and dynamic cross-references.
Silent AI-agent operation
When an AI agent edits Word, PowerPoint, or MathType content, it must operate silently in the background: do not show or activate application windows, steal keyboard focus, display modal dialogs, or automate visible UI with mouse or keyboard input. If a requested step cannot be completed silently, stop and report the limitation instead of taking over the user's desktop.
Features
- Creates genuine, editable
Equation.DSMT4 objects instead of Word OMath, images, or typed Unicode equations.
- Supports inline and centered display equations in DOCX.
- Classifies raw manuscript expressions as inline, unnumbered display, numbered display, or dynamic reference after scanning the complete document; a read-only scan finds plain-text mathematics (including Word sub/superscripts), and a mark step turns reviewed spans into markers.
- Inserts Word equation numbers such as
(1) and dynamic MathType references.
- Creates centered floating MathType equations in PowerPoint through a hidden Word conversion document.
- Preserves the source Office file and validates the generated output.
- Provides a portable cross-agent skill/plugin plus a local MCP server for Codex and Claude hosts; ChatGPT uses the same capability through a remote endpoint or Secure MCP Tunnel.
Requirements
- Windows 10 or 11.
- Microsoft Word and PowerPoint desktop with COM automation.
- Python 3 on
PATH. The server uses only the standard library, so there is nothing to install with pip.
- PowerShell 7 or later as
pwsh.exe. When it is missing, the plugin installs PowerShell 7.6 LTS for the current user and tells you; see PowerShell 7.
- Desktop MathType for Windows from the MathType download page.
This project is developed and tested with MathType-win-zh-7.11.1.462 (ProductVersion 7.11.1.462). Install MathType for Windows, not only MathType Add-In for Microsoft 365. The Microsoft 365 task-pane add-in does not provide the desktop OLE, Word template, PowerPoint add-in, and COM workflow used here.
MathType and Microsoft Office are proprietary products and are not distributed by this repository.
Terminal compatibility
The Office bridge is a Windows PowerShell 7 script. The surrounding terminal may be PowerShell 7, Bash on Windows including Git Bash, or CMD, but the bridge process itself must run through pwsh.exe.
| Active terminal | Required action |
|---|
| PowerShell 7+ | Run the commands directly with pwsh.exe. |
| Bash on Windows, including Git Bash | Invoke Windows pwsh.exe. |
| WSL Bash | Invoke Windows pwsh.exe; Linux pwsh cannot automate Windows Office COM. |
| CMD | Invoke pwsh.exe with the same arguments. |
| Windows PowerShell 5.1 | Do not run the bridge in 5.1. Switch to Git Bash or CMD and invoke pwsh.exe. |
No pwsh.exe | Let the MCP server install PowerShell 7, or run scripts/ensure-pwsh.ps1 as shown below. |
The following command works from PowerShell 7, Git Bash, and CMD:
pwsh.exe -NoProfile -ExecutionPolicy Bypass -File scripts/mathtype-word.ps1 -Action probe
PowerShell 7
The MCP server is a Python program, and no PowerShell 7 is needed to start it: Claude Code's plugin launch command runs under Windows PowerShell 5.1 (powershell.exe), which every supported Windows has, and the Codex plugin and the hand registrations below start python directly. The bridge runs in PowerShell 7. When no PowerShell 7 exists, the first tool call that needs it installs PowerShell 7.6.6 (LTS) for the current user and tells you what it installed: