XinaTian/MROffice
Modular TypeScript office editors with hosted Office-file editing and MCP
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
MR Office is a TypeScript workspace built around five editor packages under packages/: @mrnote/docs, @mrnote/sheets, @mrnote/slides, @mrnote/pdf, and @mrnote/code. They share @mrnote/core and run together in apps/playground or in the Electron shell under apps/desktop. The React packages are separately embeddable. The full desktop product adds a separately downloaded MR Office component; building the shell and editors alone does not produce that product.
The agent integration is a separate surface: apps/mcp contains the MCP server, and clients can connect through the OAuth-backed hosted endpoint or launch mroffice-mcp locally with npx. The hosted path processes files with the MR Office engine under the signed-in account. Clients supporting MCP Apps can render the editor in the conversation; others receive a link and a page image. The hosted embed also exposes a document object model, macros, and plugins.
Key Capabilities & Differentiators
The standalone packages provide paginated document editing with tables and comments, multi-sheet editing with live cell arithmetic, slide editing with speaker notes, PDF viewing and text search, and a code editor with an outline and file explorer. Documents can open HTML and Markdown, and sheets can read and write CSV and TSV. Preserving formulas is not the same as evaluating them: functions such as SUM, IF, and VLOOKUP need the full engine in the desktop product or hosted embed. Those full-product routes also provide DOCX, XLSX, and PPTX round trips and saving edits to native PDF text.
MCP tools include create_document, get_document, update_document, render_page, and export_document. Listed export targets include DOCX, XLSX, PPTX, PDF, Markdown, HTML, and CSV; validate the source-to-target pairs required by your workflow. In the product UI, Copilot previews proposed object-level changes and waits for confirmation. In the shared agent flow, the agent can read back user edits, and an update is refused if it would overwrite changes the agent has not seen.
Trade-offs & Limitations
The key choice is source control versus format coverage. The AGPL-3.0 packages can be built into a self-hosted product, but the standalone build is not a drop-in Office-format backend with the full formula engine. If users access a modified version over a network, offer its corresponding source and retain the attribution in NOTICE.md. A commercial license is available separately. Hosted embedding avoids running the editor infrastructure and does not impose AGPL obligations on the integrating app, but it introduces service dependency, data-handling review, and usage quotas.
The hosted free tier allows up to two apps and lists 1,000 monthly localhost sessions and 100 monthly sessions on your own domains. The cited ONLYOFFICE Docs Developer Edition offer instead uses an annual license priced by concurrent connections on customer-run servers. Session counts and connection caps are not interchangeable, and no Univer Pro price is listed. Before choosing, test representative Office-format round trips, complex spreadsheets, and save-callback handling rather than treating feature availability as evidence of fidelity.
Hardware & Deployment Guide
Use Node.js 20.19 or newer. For a source build, run npm install, npm run fonts to prepare the open font substitutes, npm run build, then npm run preview at http://localhost:5178. npm run dev starts the development server at the same address; npm run smoke checks a build. After building, npm run desktop starts the Electron shell. The full desktop download is the offline route for local Office-format file editing, but that does not establish offline AI inference.
For hosted integration, npx mroffice-embed init provisions app keys, or you can register the app through the developer console. Have your backend authenticate the user and mint a short-lived session token, let the page open the editor, and verify the signature on save callbacks. For agent access, use https://mcp.mroffice.ai/mcp with OAuth or npx -y mroffice-mcp as a local MCP client entrypoint; the latter does not establish that the full Office engine runs locally. New releases continue in mrnote-ai/MRNote. In the old release series, v0.1.10 fixed Word assistant updates incorrectly rejected as unsaved changes and raised the editable desktop PDF limit from 128 MB to 256 MB.
@mrnote/core and run in a browser playground or an Electron shell..mrdoc, .mrsheet, and .mrslides as native formats; Office-format round trips require the hosted embed or full desktop product.apps/mcp exposes document operations such as update_document, render_page, and export_document; updates are rejected if they would overwrite edits the agent has not seen.mrnote-ai/MRNote.Teams embedding a browser editor, connecting an MCP agent to a shared editing session, or using the full desktop product for offline Office-file work.
You need an entirely source-built, self-hosted stack with DOCX/XLSX/PPTX round trips and the full formula engine, or cannot allow the hosted service to process documents.
Quick Start & Installation
npm install npm run fonts # the open substitutes for Office's fonts npm run build npm run preview # http://localhost:5178
Comparison vs. Top Chat UI & AI Apps Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| MROffice ★ | 5k | +1.5k | TypeScript | AGPL-3.0 | Modular TypeScript office editors with hosted Office-file editing and MCP |
| MonkeyAI | 5.4k | +45 | TypeScript | AGPL-3.0 | Self-hosted AI workspace for team tasks, with shared models and MCP tools |
| OpenBot | 14.7k | +935 | TypeScript | MIT | Self-hosted AG-UI workspace for AI agents with governed browser and tool actions |
| SurfSense | 17.3k | +227 | Python | Apache-2.0 | Local-first document agent for cited research and editing confidential files |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/XinaTian/MROffice.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about MROffice
Should I integrate the React components or the hosted embed?
createSessionToken from mroffice-embed/server to mint short-lived tokens, and pass them to open() in the browser. Keep the signing secret server-side and verify signed save callbacks before accepting file updates.What runtime, memory, or GPU capacity should I plan for?
What changes if I modify the editor and offer it as a network service?
NOTICE.md. Paid hosted usage and a commercial license for the editor code are distinct options. The free desktop component is also distinct from the AGPL source tree; free availability does not make it part of the open-source build.How should I compare it with ONLYOFFICE or Univer Pro?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy