跳到正文
FunCoding

MR Office

官方 MCP Registry 已收录

Create, open and edit documents, spreadsheets and PDFs in MR Office's editor, inline in chat.

Star
6,136
版本
v0.1.0
许可证
AGPL-3.0
最近提交
2026年11月27日

MR Office MCP server

An MCP server that puts MR Office's document, spreadsheet and PDF editors into AI conversations. The assistant writes a document or spreadsheet, the editor opens it, the person changes it by hand, and the assistant reads those edits back before it goes on.

  • Create documents from Markdown and spreadsheets from CSV.
  • Open Markdown, HTML, text, CSV/TSV and PDF files (from text, base64 or an https URL).
  • Edit together: in apps that render MCP Apps views, the editor appears inline in the chat and autosaves; in every other app the tools answer with a link to the same editor in the browser and a picture of the page. The tools and what they can do are the same either way.
  • Read back the person's edits (get_document), picture any page as the editor draws it (render_page), and export (md, html, csv, pdf, and the editors' own mrdoc / mrsheet).

Documents stay on the machine that runs the server. The editor page is served on 127.0.0.1; only the editor's code (scripts, styles, fonts) loads from https://demo.mroffice.ai, the build of the editors in this repository.

Word, Excel and PowerPoint files go through MR Office's Office engine as the person's own MR Office account: the first one opens the sign-in page in the browser by itself (OAuth 2.1 with PKCE; npx -y mroffice-mcp login signs in ahead, logout revokes it).

Requirements

  • Node.js 22 or newer.
  • For page pictures: Google Chrome or Microsoft Edge, or npx playwright-core install chromium-headless-shell.

Use it from an AI app

Any MCP client that starts local (stdio) servers runs it with one command, no settings needed:

npx -y mroffice-mcp

Most clients take a JSON entry of this shape in their MCP settings:

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

Clients that connect to remote MCP servers can use the hosted server instead, with nothing installed: https://mcp.mroffice.ai/mcp (the client signs the person in to MR Office with OAuth).

Install instructions for specific apps: https://mroffice.ai/developers/mcp.

Over HTTP

npx -y mroffice-mcp --http           # MCP endpoint at http://127.0.0.1:3410/mcp

To serve it to others, set MROFFICE_MCP_LISTEN_HOST, MROFFICE_MCP_PUBLIC_URL and MROFFICE_MCP_DATA_DIR and put it behind an HTTPS proxy. Without an account engine configured it has no sign-in of its own: anyone who can reach the address can use it.

From source

cd apps/mcp
npm ci
npm test
node src/cli.ts             # stdio; Node 22.18+ runs the TypeScript directly
npm run build               # dist/, what the npm package runs

Tools

ToolWhat it does
create_documentNew document (Markdown) or spreadsheet (CSV), opened in the editor
open_documentOpen a file given as text, base64 or an https URL
update_documentReplace a document's content as a new revision (refused if the person edited it since the revision the assistant read)
get_documentThe current content, with the person's edits: Markdown for documents, CSV per sheet
render_pageA PNG of one page as the editor draws it
export_documentThe document as a file, with a download link
list_documentsThe documents created or opened with this server

Configuration

VariableDefaultMeaning
MROFFICE_MCP_PORT3410Port of the editor pages (and of --http)
MROFFICE_MCP_DATA_DIR<system temp>/mroffice-mcpWhere documents and their revisions are kept
MROFFICE_MCP_EDITOR_ORIGINhttps://demo.mroffice.aiWhere the editor's scripts, styles and fonts load from
MROFFICE_MCP_EDITOR_DIST–A local build of apps/playground to serve instead
MROFFICE_MCP_PUBLIC_URLhttp://127.0.0.1:<port>The address links point to
MROFFICE_MCP_LISTEN_HOST127.0.0.1The address the HTTP side listens on
MROFFICE_MCP_MAX_FILE_BYTES20971520Largest file a tool accepts
MROFFICE_MCP_UI_DOMAIN–A stable sandbox domain for the inline view, when an app asks for one
MROFFICE_MCP_AUTHnoneoauth: a shared --http server that takes only callers signed in to MR Office; each account sees only its own documents
MROFFICE_MCP_RETENTION_DAYS–Remove documents nobody saved for this many days
MROFFICE_MCP_MAX_DOCUMENTS_PER_PERSON200With oauth: the most documents one account keeps (oldest go first)
MROFFICE_MCP_RENDER_CONCURRENCY2Pages the headless editor draws at once

License

AGPL-3.0-only. MR Office: https://mroffice.ai.

同类 MCP Server

labelhead-artist-momentum

Trending hip-hop artist momentum scores across four cultural dimensions.

PApaperclipai/paperclip119k近 7 天新增 2,120 个 star

Corsair

One MCP URL for Gmail, Slack, GitHub, Notion and 700+ more apps, with your rules on every change.

COcorsairdev/corsair16k

Inbox Zero

Search Gmail and Outlook, save drafts, manage email rules, and view email stats.

ELelie222/inbox-zero13k近 7 天新增 76 个 star

kaneo

Official MCP server for Kaneo: manage tasks, projects, and labels from Claude and other MCP clients

USusekaneo/kaneo9.9k近 7 天新增 64 个 star

官方

QR Rápido

Generate QR codes for URLs, PIX, Wi-Fi, vCards, WhatsApp and more. For AI agents.

MOmodelcontextprotocol/registry7.5k近 7 天新增 24 个 star

whatsapp-mcp

WhatsApp MCP server

LHlharries/whatsapp-mcp7k近 7 天新增 33 个 star