# Microsoft Office

Enables AI to inspect and modify open Word documents, Excel workbooks, and PowerPoint decks on macOS or Windows via a local add-in sidecar.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 13
- Author: mindstone
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mindstone/mcp-servers/tree/HEAD/connectors/office
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/microsoft-office

## What it does

The package connects your assistant to desktop Microsoft 365 applications on your computer. Instead of syncing through cloud APIs, it modifies documents currently open. Everything ships in one npm package: the stdio server, a sidecar helper, and the add-in.

It provides 62 tools. The assistant can inspect document structure in Word or insert Excel formulas. Managing connections is handled by setup and status tools.

Running the server requires Node.js 20+ and desktop Office. Without setting the required `MCP_OFFICE_SIDECAR_STATE` environment variable to a valid JSON file path, the stdio process fails to communicate. Windows users also need to accept an admin prompt once for the local certificate.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `MCP_OFFICE_SIDECAR_STATE`, `MCP_OFFICE_SIDECAR_DISABLE`, `REBEL_DISABLE_OFFICE_SIDECAR`, `MCP_OFFICE_SIDECAR_STATE_DIR`, `MCP_OFFICE_ADDIN_DIR` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env MCP_OFFICE_SIDECAR_STATE=<MCP_OFFICE_SIDECAR_STATE> --env MCP_OFFICE_SIDECAR_DISABLE=<MCP_OFFICE_SIDECAR_DISABLE> --env REBEL_DISABLE_OFFICE_SIDECAR=<REBEL_DISABLE_OFFICE_SIDECAR> --env MCP_OFFICE_SIDECAR_STATE_DIR=<MCP_OFFICE_SIDECAR_STATE_DIR> --env MCP_OFFICE_ADDIN_DIR=<MCP_OFFICE_ADDIN_DIR> --transport stdio office -- npx -y @mindstone/mcp-server-office
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add office --env MCP_OFFICE_SIDECAR_STATE=<MCP_OFFICE_SIDECAR_STATE> --env MCP_OFFICE_SIDECAR_DISABLE=<MCP_OFFICE_SIDECAR_DISABLE> --env REBEL_DISABLE_OFFICE_SIDECAR=<REBEL_DISABLE_OFFICE_SIDECAR> --env MCP_OFFICE_SIDECAR_STATE_DIR=<MCP_OFFICE_SIDECAR_STATE_DIR> --env MCP_OFFICE_ADDIN_DIR=<MCP_OFFICE_ADDIN_DIR> -- npx -y @mindstone/mcp-server-office
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "office": {
            "command": "npx",
            "args": [
                "-y",
                "@mindstone/mcp-server-office"
            ],
            "env": {
                "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>",
                "MCP_OFFICE_SIDECAR_DISABLE": "<MCP_OFFICE_SIDECAR_DISABLE>",
                "REBEL_DISABLE_OFFICE_SIDECAR": "<REBEL_DISABLE_OFFICE_SIDECAR>",
                "MCP_OFFICE_SIDECAR_STATE_DIR": "<MCP_OFFICE_SIDECAR_STATE_DIR>",
                "MCP_OFFICE_ADDIN_DIR": "<MCP_OFFICE_ADDIN_DIR>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "office": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@mindstone/mcp-server-office"
            ],
            "env": {
                "MCP_OFFICE_SIDECAR_STATE": "<MCP_OFFICE_SIDECAR_STATE>",
                "MCP_OFFICE_SIDECAR_DISABLE": "<MCP_OFFICE_SIDECAR_DISABLE>",
                "REBEL_DISABLE_OFFICE_SIDECAR": "<REBEL_DISABLE_OFFICE_SIDECAR>",
                "MCP_OFFICE_SIDECAR_STATE_DIR": "<MCP_OFFICE_SIDECAR_STATE_DIR>",
                "MCP_OFFICE_ADDIN_DIR": "<MCP_OFFICE_ADDIN_DIR>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e MCP_OFFICE_SIDECAR_STATE=<MCP_OFFICE_SIDECAR_STATE> -e MCP_OFFICE_SIDECAR_DISABLE=<MCP_OFFICE_SIDECAR_DISABLE> -e REBEL_DISABLE_OFFICE_SIDECAR=<REBEL_DISABLE_OFFICE_SIDECAR> -e MCP_OFFICE_SIDECAR_STATE_DIR=<MCP_OFFICE_SIDECAR_STATE_DIR> -e MCP_OFFICE_ADDIN_DIR=<MCP_OFFICE_ADDIN_DIR> office npx -y @mindstone/mcp-server-office
```
Replace <…> with your own values

## When to use it
- fill formulas and format cell ranges in active Excel workbooks
- read headings and selected text in open Word documents
- inspect and update PowerPoint presentations locally
- edit desktop Microsoft 365 files without routing data through cloud APIs

## Example prompts
- Fill column D with formulas multiplying columns B and C in my active Excel sheet.
- Read the outline and current selection of the open Word document.
- Check if desktop Office apps are connected using `rebel_office_status`.

## Similar
- [Excel MCP Server](https://affpapa.org/en/nevibecode/mcp/excel-mcp-server.md) — MCP server · ★ 4268
- [kordoc](https://affpapa.org/en/nevibecode/mcp/kordoc.md) — MCP server · ★ 2795
- [Power BI Authoring MCP Server (Local)](https://affpapa.org/en/nevibecode/mcp/power-bi-authoring-mcp-server-local.md) — MCP server · ★ 1248
- [Microsoft 365 MCP Server](https://affpapa.org/en/nevibecode/mcp/microsoft-365-mcp-server.md) — MCP server · ★ 1085
- [anymd](https://affpapa.org/en/nevibecode/mcp/anymd.md) — MCP server · ★ 1054
- [Docling MCP](https://affpapa.org/en/nevibecode/mcp/docling-mcp.md) — MCP server · ★ 779

From the same set: [mindstone/mcp-servers](https://affpapa.org/en/nevibecode/by/mindstone/mcp-servers.md) — 40 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
