Skip to content
MCP server

OfficeCTRL

Open-source MCP server letting AI agents create, read and edit Word, Excel and PowerPoint

Runs locally

OfficeCTRL 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, Linux, Windows
Runs
Locally
Version
1.3.1
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 officectrl -- npx -y @officectrl/officectrl

Add --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": {
    "officectrl": {
      "command": "npx",
      "args": [
        "-y",
        "@officectrl/officectrl"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "officectrl": {
      "command": "npx",
      "args": [
        "-y",
        "@officectrl/officectrl"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "officectrl": {
      "command": "npx",
      "args": [
        "-y",
        "@officectrl/officectrl"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "officectrl": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@officectrl/officectrl"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add officectrl -- npx -y @officectrl/officectrl

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.officectrl]
command = "npx"
args = ["-y", "@officectrl/officectrl"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "officectrl": {
      "command": "npx",
      "args": [
        "-y",
        "@officectrl/officectrl"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "officectrl": {
          "command": "npx",
          "args": [
            "-y",
            "@officectrl/officectrl"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user officectrl npx -- -y @officectrl/officectrl

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "officectrl": {
          "command": "npx",
          "args": [
            "-y",
            "@officectrl/officectrl"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "officectrl": {
          "command": "npx",
          "args": [
            "-y",
            "@officectrl/officectrl"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "officectrl": {
          "command": "npx",
          "args": [
            "-y",
            "@officectrl/officectrl"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "officectrl": {
          "command": "npx",
          "args": [
            "-y",
            "@officectrl/officectrl"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "officectrl": {
          "command": "npx",
          "args": [
            "-y",
            "@officectrl/officectrl"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "officectrl": {
          "command": "npx",
          "args": [
            "-y",
            "@officectrl/officectrl"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "officectrl": {
          "command": "npx",
          "args": [
            "-y",
            "@officectrl/officectrl"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About OfficeCTRL

Office documents become something an agent can script through structured JSON rather than raw XML or a COM bridge. Each element gets a stable path such as /slide[1]/shape[2], so commands can target a paragraph, cell or slide directly, and every response uses the same schema with machine-readable error codes.

A built-in renderer turns files into HTML or PNG so the agent can inspect its own layout, catch overflowing titles or overlapping shapes, and correct them. Formulas are evaluated on write and pivot tables are aggregated in the file, so final values can be read without Microsoft Office installed.

The project suits developers building document automation, report generation pipelines and agent workflows that need to produce or revise .docx, .xlsx and .pptx files on Linux, Windows or headless servers.

What it does

Path-based element access
Every paragraph, cell, slide and shape has a stable path that commands can address directly.
Built-in rendering
Converts documents to HTML or PNG so an agent can check its own output without a display.
Excel formula evaluation
Over 350 Excel functions are computed on write and pivot tables are aggregated on disk.
Template merge
Fills {{placeholders}} in Word, Excel and PowerPoint files from JSON data for batch generation.
Atomic batch operations
Applies many edits in one pass, rolling back everything if an item fails, or continuing best-effort.
Structured JSON output
Commands return consistent JSON with error codes and suggestions for self-correction.

Good for

  • Generating branded reports or invoices from a template and JSON data
  • Letting an AI agent draft and revise slide decks from a prompt
  • Importing CSV data into Excel sheets and building pivot tables automatically
  • Auditing existing Word or PowerPoint files for issues like missing alt text
  • Automating document edits in CI pipelines or Docker containers

Pricing

Open source

Free and open source under Apache-2.0

OfficeCTRL FAQ

Does OfficeCTRL require Microsoft Office?

No. The project states it runs without Microsoft Office and ships as a self-contained binary.

How do I connect OfficeCTRL to an MCP client?

Run the officectrl mcp command or use the npm package @officectrl/officectrl with npx in the client's MCP configuration.

What license is OfficeCTRL under?

The project is licensed under Apache License 2.0.

Which file formats are supported?

Word (.docx), Excel (.xlsx) and PowerPoint (.pptx).

Is OfficeCTRL free?

Yes. OfficeCTRL is open source, so you can use and self-host it for free.

How do I add OfficeCTRL to Claude Code?

Run this command in your terminal: claude mcp add officectrl -- npx -y @officectrl/officectrl

What are the best alternatives to OfficeCTRL?

The closest alternatives to OfficeCTRL are cmd_op, Office MCP, Office files, OfficeRoutines and Word AI.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers