Skip to content
MCP server

Office files

Create, edit and read Excel, Word, PowerPoint and CSV files from an AI agent

Runs locally

Office files 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
What it can do
Can change data (7 tools)
Version
0.2.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add office -- npx -y @vatsonai/office-mcp

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

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "office": {
      "command": "npx",
      "args": [
        "-y",
        "@vatsonai/office-mcp"
      ]
    }
  }
}

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

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": {
    "office": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vatsonai/office-mcp"
      ]
    }
  }
}

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 office -- npx -y @vatsonai/office-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.office]
command = "npx"
args = ["-y", "@vatsonai/office-mcp"]

Codex setup guide

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

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

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "office": {
          "command": "npx",
          "args": [
            "-y",
            "@vatsonai/office-mcp"
          ]
        }
      }
    }

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

    Antigravity

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

    {
      "mcpServers": {
        "office": {
          "command": "npx",
          "args": [
            "-y",
            "@vatsonai/office-mcp"
          ]
        }
      }
    }

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

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "office": {
          "command": "npx",
          "args": [
            "-y",
            "@vatsonai/office-mcp"
          ]
        }
      }
    }

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

    Junie

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

    {
      "mcpServers": {
        "office": {
          "command": "npx",
          "args": [
            "-y",
            "@vatsonai/office-mcp"
          ]
        }
      }
    }

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

    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 Office files

Office Files gives an AI assistant a way to produce real Office documents rather than plain text. The model writes a structured spec, a compiler checks it and builds the file with live formulas, native charts and proper heading styles, and the assistant receives the file path along with any findings so it can correct the spec and retry.

It also works in reverse: an Office file or CSV can be passed in and returned as readable text, with hidden sheets, rows, slides and comments flagged. Existing files can be edited with a validated plan so untouched parts stay unchanged, and an example file can be used as a style template for new decks, documents and workbooks.

The server runs locally over stdio without an account or API key and writes output to a folder on your machine. It suits developers wiring Office generation into MCP-capable assistants and people who want an agent to draft spreadsheets, decks or reports they will review before sending.

Tools this server provides (11)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 7 of 11 tools change data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

create_workbookName suggests: changes
Builds an .xlsx file from a workbook spec with formulas, tables and charts.
create_deckName suggests: changes
Builds a .pptx file from a deck spec with slides, charts and a theme.
create_documentName suggests: changes
Builds a .docx file from a document spec with headings, lists and tables.
write_csvName suggests: changes
Writes rows to a .csv file.
edit_workbookName suggests: changes
Applies a validated edit plan to an existing .xlsx file.
edit_documentName suggests: changes
Applies a validated edit plan to an existing .docx file.
edit_deckName suggests: changes
Applies a validated edit plan to an existing .pptx file.
read_textName suggests: reads
Returns the text of a Word, Excel, PowerPoint or CSV file with hidden content marked.
preview_fileName suggests: reads
Returns an outline of a .pptx, .xlsx or .docx file and layout findings.
extract_style
Returns style rules and a profile from an example Office file.
export_pdfName suggests: reads
Exports a .pptx, .xlsx or .docx file to PDF.

What it does

Live formula workbooks
Spreadsheets are built with working formulas, named ranges, tables and number formats instead of static values.
Native charts
Charts are written as real Office chart objects that remain editable in the target application.
Structured Word documents
Headings use real heading styles and lists use Word numbering, with optional headers and footers.
Read files back as text
Office and CSV files are converted to plain text, with hidden content marked and size limits applied.
Edit existing files
Changes are applied through a validated plan, leaving parts of the file that are not touched byte-identical.
Style matching from templates
An example .pptx, .docx or .xlsx can supply its theme, layouts and styles for new files without copying its content.

Good for

  • Draft a monthly cash-flow or budget workbook with a chart from a short brief
  • Generate a slide deck from a spec that follows an existing company template
  • Turn a policy or meeting-notes outline into a formatted Word document
  • Extract the text of an uploaded spreadsheet or document so an assistant can summarise it
  • Update rows or placeholders in an existing workbook or deck without rebuilding it

Pricing

Open source

Open source under Apache-2.0; runs locally

Office files FAQ

Does Office files need an API key or account?

No. The server runs on your machine and needs no API key, account or external service.

Where are the generated files saved?

By default they are written to an office-output folder, and the MCP client can be configured with a different output path.

Which file types are supported?

Creating and editing covers Excel, Word and PowerPoint files and CSV output; reading covers .docx, .xlsx, .pptx and .csv.

Is Office files free to use?

The packages are published under the Apache-2.0 licence and the server runs locally, so no paid plan is described in the content.

How do I add Office files to Claude Code?

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

What are the best alternatives to Office files?

The closest alternatives to Office files are Office MCP, OfficeRoutines, 8sheets, Word AI and MR Office.

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