# Office files

> Office files is an open-source MCP server for files and documents. Create, edit and read Excel, Word, PowerPoint and CSV files from an AI agent. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows, VS Code
- **Repository:** https://github.com/clausis-ai/agent-office
- **MCP Registry name:** io.github.clausis-ai/office
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-28

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

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

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

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add office -- npx -y @vatsonai/office-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

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

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_workbook` (name suggests: changes): Builds an .xlsx file from a workbook spec with formulas, tables and charts.
- `create_deck` (name suggests: changes): Builds a .pptx file from a deck spec with slides, charts and a theme.
- `create_document` (name suggests: changes): Builds a .docx file from a document spec with headings, lists and tables.
- `write_csv` (name suggests: changes): Writes rows to a .csv file.
- `edit_workbook` (name suggests: changes): Applies a validated edit plan to an existing .xlsx file.
- `edit_document` (name suggests: changes): Applies a validated edit plan to an existing .docx file.
- `edit_deck` (name suggests: changes): Applies a validated edit plan to an existing .pptx file.
- `read_text` (name suggests: reads): Returns the text of a Word, Excel, PowerPoint or CSV file with hidden content marked.
- `preview_file` (name 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_pdf` (name suggests: reads): Exports a .pptx, .xlsx or .docx file to PDF.

## 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.

## Alternatives

- [Office MCP](https://ai-powered.com/mcp/office-mcp): Office MCP is an open-source MCP server for files and documents.
- [OfficeRoutines](https://ai-powered.com/mcp/officeroutines): OfficeRoutines is an open-source MCP server for files and documents.
- [8sheets](https://ai-powered.com/mcp/8sheets): 8sheets is a paid MCP server for files and documents.
- [Word AI](https://ai-powered.com/mcp/word-ai): Word AI is an open-source MCP server for files and documents.
- [MR Office](https://ai-powered.com/mcp/mr-office): MR Office is a free MCP server for files and documents.
- [OfficeAgent.NET](https://ai-powered.com/mcp/officeagent-net): OfficeAgent.NET is an open-source MCP server for files and documents.
- [Agent Spreadsheet MCP](https://ai-powered.com/mcp/agent-spreadsheet-mcp): Agent Spreadsheet MCP is an open-source MCP server for files and documents.
- [docx4j Word documents](https://ai-powered.com/mcp/docx4j-word-documents): docx4j Word documents is an open-source MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/office-files
