MR Office
MR Office is an open-source AI office suite with editors for documents, spreadsheets, presentations, PDF and code. Its Copilot edits real Word, Excel and PowerPoint files, supports live co-editing, and offers embeddable SDK and MCP server.
Visit XinaTian/MROfficeOverview
MR Office publishes the source code of its office editors: Documents, Spreadsheets, Presentations, PDF and Code. The suite runs on the web and in a free desktop app, includes an AI assistant beside each document, and supports live co-editing. The repository contains the same editors used by the commercial product, plus developer integrations for embedding and MCP-based AI workflows.
Key Features
- Five editors: Documents, Spreadsheets, Presentations, PDF and Code, available in the browser and in a desktop shell.
- Copilot in every editor edits paragraphs, tables, cells, formulas, shapes and slides in place, previews changes, and allows undo.
- Edits real Word, Excel and PowerPoint files through the hosted embed and desktop app; the open-source editors save their own .mrdoc, .mrsheet and .mrslides formats and open CSV, HTML, Markdown and PDF.
- Live co-editing and sharing in MR Office online and the desktop app.
- Embeddable SDK on npm as mroffice-embed, plus React component packages for the five editors.
- MCP server lets Claude, ChatGPT, Cursor, Codex and other MCP clients create, open, edit, read, render and export documents and spreadsheets.
Use Cases
- Embed document, spreadsheet, presentation, PDF or code editors in a web app using the hosted embed and session-token flow.
- Let AI agents or MCP clients create and edit Office documents and spreadsheets through the MR Office MCP server.
- Self-host and build the open-source editors under AGPL-3.0 for products that need document editing.
- Use the free desktop app for offline editing of Word, Excel, PowerPoint and PDF files with AI and the full formula engine.
Getting Started
- Run npm install, npm run fonts, npm run build, and npm run preview to build and preview the five editors locally at localhost:5178.
- Use npm run dev for a development server at the same address, and npm run smoke to check a build.
- For the desktop shell, run npm run desktop after npm run build.
- To embed, run npx mroffice-embed init, mint a short-lived session token with createSessionToken from mroffice-embed/server, and open the editor with open() from mroffice-embed.
- To connect MCP clients, use the hosted endpoint or npx -y mroffice-mcp locally; Claude Code and Codex can add it with claude mcp add mroffice -- npx -y mroffice-mcp or codex mcp add mroffice -- npx -y mroffice-mcp.
Deployment & Requirements
- Building the editors uses npm commands: npm install, npm run fonts, npm run build, and npm run preview or npm run dev.
- The desktop shell is Electron-based and starts with npm run desktop after npm run build.
- The hosted embed requires a server that signs a short-lived session token; the secret key is kept on the server.
- The MCP server can run as a hosted endpoint with OAuth sign-in or locally through npx -y mroffice-mcp.
Before You Adopt
- License: AGPL-3.0. Review its terms before using, modifying, or distributing the project.
- The embed option depends on MR Office-hosted editors and a server-side session token rather than running entirely inside your own app.
- The hosted embed Free plan includes session limits and app-count limits.
- The MCP integration depends on external MCP clients to create, open, edit and export documents and spreadsheets.
- The open-source editors alone handle their own formats, CSV, HTML, Markdown and PDF; Word, Excel and PowerPoint support is provided through the hosted embed.