- Developer home
- MCP for AI apps
- Use MR Office in your agent
Use MR Office in your agent
Plugins for Claude Code, Codex and Gemini CLI, and a rule for Cursor: MR Office's MCP server plus a skill that teaches the agent to edit Word, Excel, PowerPoint and PDF files.
What a plugin adds
Each plugin connects your coding agent to MR Office's MCP server (npx -y mroffice-mcp) and adds a skill. Ask for a change to a .docx, .xlsx, .pptx or .pdf file and the agent opens it in MR Office's editors and edits it there instead of rewriting it with a script, so what it does not touch keeps its formatting.
With MR Office's desktop app running, the agent works on your own files in the app's window: you see each edit as it happens and can undo it.
Claude Code
In Claude Code, add the marketplace and install the plugin:
/plugin marketplace add XinaTian/mroffice-agents
/plugin install mroffice@mrofficeCodex
Codex installs the same plugin from the same marketplace:
codex plugin marketplace add XinaTian/mroffice-agents
codex plugin add mroffice@mrofficeOn a Codex version without plugins, add the server to its configuration instead:
# ~/.codex/config.toml
[mcp_servers.mroffice]
command = "npx"
args = ["-y", "mroffice-mcp"]
startup_timeout_sec = 60
tool_timeout_sec = 120Gemini CLI
Gemini CLI installs it as an extension, with the same guidance as its context file:
gemini extensions install https://github.com/XinaTian/mroffice-agentsCursor
Add the server with one click, then add the rule to your project so the agent knows when to use it:
mkdir -p .cursor/rules
curl -fsSL https://raw.githubusercontent.com/XinaTian/mroffice-agents/main/cursor/rules/mroffice.mdc -o .cursor/rules/mroffice.mdcSign in
The first Word, Excel or PowerPoint file opens your browser to sign in to MR Office (a free account works). The agent never asks for a password or a key.