# Microsoft Office

> Microsoft Office is an MCP server for files and documents. Read and edit open Word, Excel and PowerPoint files on desktop Microsoft 365. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** macOS, Windows
- **Repository:** https://github.com/mindstone/mcp-servers/tree/HEAD/connectors/office
- **MCP Registry name:** io.github.mindstone/mcp-server-office
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

Unlike servers that reach cloud files through Microsoft Graph, this one works on documents already open on macOS or Windows. The npm package bundles three pieces that always ship at one version: the MCP server, a small local helper and an Office Add-in. The README counts 62 tools across Word, Excel, PowerPoint and setup.

Every tool returns JSON with an ok flag, the app and action, and either data or a coded error with a fix hint. Text received from Office is wrapped in untrusted-content envelopes, and each successful edit carries an undo sentence. Word and Excel edits can be undone with Ctrl+Z, while PowerPoint for Mac cannot reliably undo add-in edits and some changes cannot be reversed at all.

Setup needs Node.js 20+, Microsoft 365 apps and a trusted local certificate, plus a state-file path in the MCP_OFFICE_SIDECAR_STATE variable. On Windows the helper registers its manifest under the current user's registry key without administrator rights.

## Features

- **Live document access:** Works with selections, formulas and tracked changes in open files.
- **Three Office apps:** Word, Excel and PowerPoint in one server.
- **Structured results:** JSON with ok, app, action and error codes.
- **Untrusted-content envelopes:** Document text is marked as data, not instructions.
- **Undo guidance:** Every edit returns how to reverse it.
- **Kill switch:** An environment variable turns the sidecar off.

## Good for

- Fill an Excel column with a formula and bold the totals
- Edit a Word draft with tracked changes
- Adjust slides in an open deck
- Read the contents of a workbook for analysis

## Install

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

```sh
claude mcp add mcp-server-office --env MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' -- npx -y @mindstone/mcp-server-office
```

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": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server-office": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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 mcp-server-office --env MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' -- npx -y @mindstone/mcp-server-office
```

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

```toml
[mcp_servers.mcp-server-office]
command = "npx"
args = ["-y", "@mindstone/mcp-server-office"]
env = { MCP_OFFICE_SIDECAR_STATE = "<MCP_OFFICE_SIDECAR_STATE>" }
```

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

```json
{
  "mcpServers": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' mcp-server-office npx -- -y @mindstone/mcp-server-office

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

```json
{
  "mcpServers": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

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

```json
{
  "mcpServers": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

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": {
    "mcp-server-office": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-office"
      ],
      "env": {
        "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `rebel_office_excel_set_formula`: Writes formulas into Excel cells.
- `rebel_office_excel_format_range`: Applies formatting such as bold to a range.
- `rebel_office_setup`: Sets up or uninstalls the Office add-in registration.

## FAQ

### Which systems does Microsoft Office support?

macOS or Windows with desktop Microsoft 365.

### Does Microsoft Office need an account?

No auth is listed; it runs locally with an Office Add-in.

### Can edits be undone?

Mostly. Word and Excel via Ctrl+Z; PowerPoint on Mac is limited and some edits cannot be reversed.

### What do I need to configure?

The path of a sidecar-state.json file in MCP_OFFICE_SIDECAR_STATE.

### How do I add Microsoft Office to Claude Code?

Run this command in your terminal: claude mcp add mcp-server-office --env MCP_OFFICE_SIDECAR_STATE='<MCP_OFFICE_SIDECAR_STATE>' -- npx -y @mindstone/mcp-server-office

### What are the best alternatives to Microsoft Office?

The closest alternatives to Microsoft Office are Ha MCP, Concord MCP, Open Sunsama, Scholar Sidekick and Dayfile.app.

## Where this comes from

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

## Alternatives

- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [Open Sunsama](https://ai-powered.com/mcp/open-sunsama): Open Sunsama is an open-source MCP server for productivity.
- [Scholar Sidekick](https://ai-powered.com/mcp/scholar-sidekick): Scholar Sidekick is a freemium MCP server for education and exams.
- [Dayfile.app](https://ai-powered.com/mcp/dayfile-app): Dayfile.app is an open-source MCP server for productivity.
- [Stashpad](https://ai-powered.com/mcp/stashpad): Stashpad is an open-source MCP server for files and documents.
- [loremfile](https://ai-powered.com/mcp/loremfile): loremfile is a free MCP server for developer tools.
- [note1](https://ai-powered.com/mcp/note1): note1 is an MCP server for productivity.

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