# Install the MCP server

Source: https://mroffice.ai/en/developers/mcp/install

Add MR Office's MCP server to Claude, ChatGPT, Cursor, VS Code, Codex, Gemini CLI and any MCP client: one line, no key, no environment variables.

## One line per app

The hosted server needs nothing installed, no API key and no environment variable: add its address, and the first time it is used you sign in to MR Office in your browser.

One click for Cursor and VS Code; Claude, ChatGPT and Codex take the one line below (or the address in their connector settings).

- [Add to Cursor](https://cursor.com/en/install-mcp?name=mroffice&config=eyJ1cmwiOiJodHRwczovL21jcC5tcm9mZmljZS5haS9tY3AifQ%3D%3D)
- [Install in VS Code](https://vscode.dev/redirect/mcp/install?name=mroffice&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.mroffice.ai%2Fmcp%22%7D)

Claude Code:

```bash
claude mcp add --transport http mroffice https://mcp.mroffice.ai/mcp
```

Codex:

```bash
codex mcp add mroffice --url https://mcp.mroffice.ai/mcp
```

VS Code:

```bash
code --add-mcp '{"name":"mroffice","type":"http","url":"https://mcp.mroffice.ai/mcp"}'
```

Cursor:

```json
// ~/.cursor/mcp.json
{
  "mcpServers": {
    "mroffice": { "url": "https://mcp.mroffice.ai/mcp" }
  }
}
```

claude.ai · ChatGPT:

```text
https://mcp.mroffice.ai/mcp
```

In claude.ai, Claude Desktop and ChatGPT, add a custom connector with the address https://mcp.mroffice.ai/mcp. The server speaks Streamable HTTP with OAuth; its registry name is ai.mroffice/office.

## Run it on your computer

Apps that start local servers run it with one line (stdio is the default; --stdio still works). Documents then stay on your machine.

- [Add to Cursor (local)](https://cursor.com/en/install-mcp?name=mroffice&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1yb2ZmaWNlLW1jcCJdfQ%3D%3D)
- [Install in VS Code (local)](https://vscode.dev/redirect/mcp/install?name=mroffice&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22mroffice-mcp%22%5D%7D)

Any app:

```bash
npx -y mroffice-mcp
```

JSON config:

```json
{
  "mcpServers": {
    "mroffice": { "command": "npx", "args": ["-y", "mroffice-mcp"] }
  }
}
```

Gemini CLI:

```bash
gemini mcp add -s user mroffice npx -- -y mroffice-mcp
```

Windsurf:

```json
// ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mroffice": { "command": "npx", "args": ["-y", "mroffice-mcp"] }
  }
}
```

- Node.js 22 or newer (npx comes with it).
- For page pictures: Google Chrome or Microsoft Edge, or npx playwright-core install chromium-headless-shell.

## With the desktop app: MR Office as the screen

With MR Office's desktop app running, the same local line connects the assistant to the app instead: it opens your files in the app's window and edits them live while you watch. See MR Office as your AI's screen.

- [MR Office as your AI's screen](https://mroffice.ai/en/developers/mcp/desktop): Codex, Claude Code, Cursor: one line, your files, edits you can see and undo.

## Inline editor or link

| App | Editor |
| --- | --- |
| claude.ai, Claude Desktop, ChatGPT | Inline |
| Cursor, VS Code (GitHub Copilot), Goose | Inline |
| Claude Code, Codex, Gemini CLI, Windsurf, Cline, Roo Code, Continue, Zed, JetBrains, Cherry Studio, Chatbox | Link + picture |

The tools are the same everywhere; apps that render MCP Apps views show the editor in the conversation, the others get a link to the same editor in your browser and a picture of the page.

## Sign in

Word, Excel and PowerPoint files are read and written by MR Office's Office engine as your own MR Office account (a free account works). The hosted server asks you to sign in the first time; a local one signs in once per computer, by asking the assistant to "sign in to MR Office" or from a terminal. The sign-in is OAuth 2.1 with PKCE; the server never sees your password.

```bash
npx -y mroffice-mcp login      # opens the browser; allow the app there
npx -y mroffice-mcp whoami
npx -y mroffice-mcp logout     # revokes this computer's access
```
