- Developer home
- MCP for AI apps
- Use MR Office as your AI's screen
Use MR Office as your AI's screen
Codex, Claude Code, Cursor and other AI apps open your Word, Excel, PowerPoint and PDF files in the MR Office desktop app and edit them live: you see every edit, undo it, and type alongside.
How it works
You run codex or claude in a terminal, or work in Cursor. Its AI, connected to MR Office over MCP, opens the file you name in the MR Office window on your computer. Each edit it makes appears there as it is made, as an edit you can undo with ⌘Z / Ctrl+Z, and is saved back to your file like your own typing. You can type in the same window meanwhile; the AI reads your changes before it goes on.
- Install and open MR OfficeDownload the desktop app for Mac or Windows (mroffice.ai/download) and open it: MR Office 0.1.6 or newer (MRNote Classic 0.1.10 or newer).
- Add it to your AI appOne line, below. Nothing to configure: the server finds the running app by itself.
- Ask"Open ~/Documents/q4-report.docx and tighten the introduction." The first time, MR Office asks whether this app may work on your documents: Allow once, Always allow or Don't allow.
One line per app
claude mcp add mroffice -- npx -y mroffice-mcp# ~/.codex/config.toml
[mcp_servers.mroffice]
command = "npx"
args = ["-y", "mroffice-mcp"]// ~/.cursor/mcp.json
{
"mcpServers": {
"mroffice": { "command": "npx", "args": ["-y", "mroffice-mcp"] }
}
}npx -y mroffice-mcpIt is the same local server as for any MCP app (Node.js 22 or newer). When MR Office's desktop app runs, or is installed (it is then started in the background), the server hands the connection to the app; otherwise it works as before, with its own editor. To choose:
npx -y mroffice-mcp --desktop # always the desktop app (starts it when it is not running)
npx -y mroffice-mcp --no-desktop # never the desktop app (documents kept by the server)What the AI can do
| Tool | What it does |
|---|---|
open_document | Opens a file on your computer by its path in the MR Office window you use (or brings it forward when it is open) and returns its id and content. |
list_documents | The documents open in MR Office's windows, and which one is in front. |
get_document | Reads a document as it is now, your edits included, with addresses: Word paragraphs and tables by block id, cells by A1 address with formulas, slides and their shapes by id, PDF pages. Says the revision and what you changed since the AI last looked. |
get_selection | What you have selected: the text and its paragraph, the range and active cell, the slide or page shown. |
edit_document | Edits through the editor, in order, each one Undo step: insert, replace and Replace All text, Markdown, HTML and tables in Word; values and formulas in Excel; shape text, new slides and Replace All in PowerPoint; highlights and comments in PDFs (the Automation API's methods). |
get_changes | What you changed since the AI's last read or edit, by paragraph, cell or shape. |
render_page | A picture of the document's window as you see it (a slide or PDF page brought into view first). |
save_document | Saves to the file now, as ⌘S / Ctrl+S does (autosave also writes it a few seconds after edits stop). |
export_document | Exports as another file (PDF, OpenDocument, CSV, Markdown …) next to the original, never over it. |
Edits always go through the open editor, never by rewriting the file under it, so Undo, autosave and the file's backup work as they do for you. A file the AI names that is not open is opened first.
Who can connect
- The app's MCP endpoint listens on 127.0.0.1 only, on a port chosen at each launch. Requests from another computer, from a web page in a browser, or without the launch's token are refused.
- The port and token are in ai-screen.json in the app's data folder (macOS ~/Library/Application Support/MR Office, Windows %APPDATA%\MR Office), readable by your user only, and removed when the app quits.
- Each AI app asks once: Allow once (this connection), Always allow, or Don't allow. Settings › General lists the apps always allowed, removes them, and turns the endpoint off.
- The documents stay on your computer. What the AI reads of them goes to that AI app's own model, as anything it reads does.