cmd_op
MCP server letting AI agents create, read and edit Word, Excel and PowerPoint files
cmd_op is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Linux
- Runs
- Locally
- Version
- 1.3.4
- Listing updated
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add cmd_op -- npx -y cmd_opAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"cmd_op": {
"command": "npx",
"args": [
"-y",
"cmd_op"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"cmd_op": {
"command": "npx",
"args": [
"-y",
"cmd_op"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"cmd_op": {
"command": "npx",
"args": [
"-y",
"cmd_op"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"cmd_op": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cmd_op"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add cmd_op -- npx -y cmd_opOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.cmd_op]
command = "npx"
args = ["-y", "cmd_op"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"cmd_op": {
"command": "npx",
"args": [
"-y",
"cmd_op"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "cmd_op": { "command": "npx", "args": [ "-y", "cmd_op" ] } } }Or run: gemini mcp add -s user cmd_op npx -- -y cmd_op
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "cmd_op": { "command": "npx", "args": [ "-y", "cmd_op" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "cmd_op": { "command": "npx", "args": [ "-y", "cmd_op" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "cmd_op": { "command": "npx", "args": [ "-y", "cmd_op" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "cmd_op": { "command": "npx", "args": [ "-y", "cmd_op" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "cmd_op": { "command": "npx", "args": [ "-y", "cmd_op" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "cmd_op": { "command": "npx", "args": [ "-y", "cmd_op" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "cmd_op": { "command": "npx", "args": [ "-y", "cmd_op" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About cmd_op
Office documents become something an agent can drive through structured JSON instead of fragile scripts. Each element in a file gets a stable path such as a slide or shape address, so an agent can query, set, move or remove content without touching raw XML. Formulas written into spreadsheets are evaluated on write, and pivot tables are aggregated into the file before anyone opens it.
A built-in renderer produces HTML and PNG previews, letting an agent inspect its own output for overflowing text or overlapping shapes and correct it. Template merge fills {{placeholders}} from JSON, so one designed layout can produce many documents. The server runs as a single binary with no Microsoft Office installation required, and it is also reachable through npm.
The project suits developers and teams building document-generation pipelines or agent workflows that need reports, decks or spreadsheets produced and checked without a desktop Office install.
What it does
- Path-based element access
- Every element has a stable address like /slide[1]/shape[2], so agents navigate documents without handling XML namespaces.
- Built-in visual preview
- HTML and PNG rendering lets an agent view its own output and fix layout problems without a display.
- Spreadsheet formula evaluation
- Over 350 Excel functions are computed on write, and pivot tables are aggregated in the file.
- Template merge
- Placeholders across paragraphs, tables, shapes and headers are replaced from JSON data to fill one layout many times.
- Atomic batch operations
- Multiple edits apply in one pass that rolls back entirely if any item fails, unless best-effort mode is chosen.
- Document diff
- Two Word, Excel or PowerPoint files can be compared line by line, with structured JSON output.
Good for
- Generating standardized reports or invoices from JSON data using a single template
- Letting an AI agent draft and visually check a slide deck before delivery
- Bulk-updating spreadsheet cells or importing CSV data into Excel sheets from a script
- Comparing two versions of a contract or report to list changed paragraphs
- Running Office document creation in CI pipelines or Docker containers without Office installed
Pricing
Open source
Free and open source under Apache-2.0.
cmd_op FAQ
Does cmd_op need Microsoft Office installed?
No. The project states that it runs headless on Linux and Windows without Microsoft Office or Python.
How can an MCP client connect to cmd_op?
Start the server with the mcp command, or point the client at the npm package using npx with the cmd_op mcp arguments.
What license is cmd_op released under?
The project is licensed under Apache License 2.0.
Which file formats are supported?
Word (.docx), Excel (.xlsx) and PowerPoint (.pptx).
Is cmd_op free?
Yes. cmd_op is open source, so you can use and self-host it for free.
How do I add cmd_op to Claude Code?
Run this command in your terminal: claude mcp add cmd_op -- npx -y cmd_op
What are the best alternatives to cmd_op?
The closest alternatives to cmd_op are OfficeCTRL, Office MCP, Office files, Word AI and Documentero.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.