# MR Office

MR Office is a Claude Code MCP server that embeds document, spreadsheet, and PDF editors into chat. Users can tweak files manually before the assistant continues.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 3920 repo stars
- Author: XinaTian
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/XinaTian/MROffice/tree/HEAD/apps/mcp
- Updated: 2026-11-24
- Security check: automated, 2026-11-24 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/mr-office

## What it does

The server generates documents from Markdown and spreadsheets from CSV files, serving an editor interface at `127.0.0.1:3410`. When used in clients supporting MCP Apps, editing happens inline with continuous autosave. The assistant inspects revisions via `get_document` and can take page pictures with `render_page`.

All created files remain on the local machine inside the temporary directory. The web UI assets load from `https://demo.mroffice.ai`. To generate page previews, the system requires either Google Chrome, Microsoft Edge, or a headless browser via `npx playwright-core install chromium-headless-shell`.

Working with Word, Excel, and PowerPoint files relies on the MR Office engine and requires an account. The server prompts for browser login using OAuth 2.1 on the first run, or authentication can be completed upfront with `npx -y mroffice-mcp login`.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.mroffice.ai/mcp`
- Environment variables: `MROFFICE_MCP_DATA_DIR`, `MROFFICE_MCP_PORT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http office https://mcp.mroffice.ai/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env MROFFICE_MCP_DATA_DIR=<MROFFICE_MCP_DATA_DIR> --env MROFFICE_MCP_PORT=<MROFFICE_MCP_PORT> --transport stdio mcp -- npx -y mroffice-mcp
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add mcp --url https://mcp.mroffice.ai/mcp
```

2. **Platform CLI**
```bash
codex mcp add mcp --env MROFFICE_MCP_DATA_DIR=<MROFFICE_MCP_DATA_DIR> --env MROFFICE_MCP_PORT=<MROFFICE_MCP_PORT> -- npx -y mroffice-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "url": "https://mcp.mroffice.ai/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "mroffice-mcp"
            ],
            "env": {
                "MROFFICE_MCP_DATA_DIR": "<MROFFICE_MCP_DATA_DIR>",
                "MROFFICE_MCP_PORT": "<MROFFICE_MCP_PORT>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "http",
            "url": "https://mcp.mroffice.ai/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "mroffice-mcp"
            ],
            "env": {
                "MROFFICE_MCP_DATA_DIR": "<MROFFICE_MCP_DATA_DIR>",
                "MROFFICE_MCP_PORT": "<MROFFICE_MCP_PORT>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp https://mcp.mroffice.ai/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e MROFFICE_MCP_DATA_DIR=<MROFFICE_MCP_DATA_DIR> -e MROFFICE_MCP_PORT=<MROFFICE_MCP_PORT> mcp npx -y mroffice-mcp
```
Replace <…> with your own values

## When to use it
- editing documents and spreadsheets
- opening Markdown, HTML, CSV, and PDF files from URLs or raw strings
- applying manual adjustments to generated documents in the browser
- exporting finalized revisions to PDF, CSV, HTML, or Markdown

## Example prompts
- Create a project budget spreadsheet and open it in the editor
- Open the document `specification.md` and capture a picture of page 1
- Read back my manual edits from the document and update the summary

## Similar
- [office-mcp](https://affpapa.org/en/nevibecode/skills/office-mcp.md) — skill · 7200 installs
- [anymd](https://affpapa.org/en/nevibecode/mcp/anymd.md) — MCP server · ★ 1078 repo stars
- [OpenDocKit](https://affpapa.org/en/nevibecode/mcp/opendockit.md) — MCP server · ★ 48 repo stars
- [mcp](https://affpapa.org/en/nevibecode/mcp/bigapi-2026-mcp.md) — MCP server
- [convert-documents-to-markdown](https://affpapa.org/en/nevibecode/skills/convert-documents-to-markdown.md) — skill · 14000 installs
- [markdown-converter](https://affpapa.org/en/nevibecode/skills/steipete-markdown-converter.md) — skill · 346 installs

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