Want to Build Your Own Online Word/Excel/PPT Editor? These Open-Source Editors Are Almost Office Itself
What This Thing Actually Does
It takes six things you need in an office, Word documents, spreadsheets, slides, PDF, handwriting notes, and a code editor, and rebuilds them as open-source editors that run in the browser, deliberately tuned to look and feel like Microsoft Office. The tagline on the site is blunt: the editor closest to Microsoft Office. You get three ways to use it. Try it online on the official site, download a desktop client for offline work, or drop the six editors into your own product as React components. The interesting part is a built-in MCP server: an AI assistant can connect and open, read, edit, and export real Word, Excel, and PowerPoint files through it. In plain terms, it wants to be the Office kernel of the open-source world, something you can embed in any app and drive with AI. One detail worth being honest about: what is open source here is the editors themselves, while reading and writing native Microsoft formats such as .docx, .xlsx, and .pptx lives in the hosted service. The README says this plainly rather than hiding it.
Why It Blew Up Recently
I think two waves came together. The first is the long-standing itch in the developer community for an open-source Office alternative. LibreOffice is battle-tested but feels dated and heavy, so editors that run in the browser and can be snapped into your own product like Lego bricks answer a very real need in the SaaS world, both in China and abroad. The second wave is AI. Everyone now wants agents to edit documents, fill spreadsheets, and build slide decks, and what AI has been missing is a reliable pair of hands to operate real Office files. MR Office simply ships the MCP server, so an agent can connect and get to work, putting it right where demand is about to explode. Add a dozen translated READMEs, a 50-second narrated demo video, and a live demo you can click into with zero setup, and the barrier to sharing drops to almost nothing. The repo was only created on November 10 and picked up more than a thousand stars within days, so this wave is not much of a surprise.
The Interesting Bits
The six editors are not stubs; the details are carefully done. The documents editor is a paged word processor with styles, fonts, lists, tables, headers and footers, sections and columns, shapes, equations, cover pages, tables of contents, comments, tracked changes, and pen ink on the page. It saves to its own .mrdoc format and opens HTML, Markdown, and plain text. The spreadsheets editor handles cells and formulas, number formats, conditional formatting, sorting and filtering, frozen panes, and multiple sheets. Type =A1*B1+10 in a cell and it calculates in the browser as you type, while formulas with functions such as SUM, IF, and VLOOKUP are preserved as written. It saves .mrsheet and moves CSV and TSV in and out cleanly. The presentations editor ships eight themes of its own, layouts, master and layout views, WordArt, equations, comments, transitions and animations with preview, and a slideshow, saving to .mrslides. The PDF editor reads, searches, presents, prints, and reads text aloud, and lets you highlight, underline, strike through, or squiggle selected text with notes in a comments panel. The handwriting editor supports pressure-sensitive pens, highlighters, erasers, lasso, ruler, and turning ink into shapes, saved as .mrink. The code editor offers syntax highlighting for many languages, an outline, and find and replace, with JavaScript, TypeScript, Python, SQL, Lua, and shell running right in the browser. The whole thing is a monorepo, six packages sharing a single @mrnote/core, all published on npm as React components, so installing mroffice-docs or mroffice-sheets is enough to embed them in your app.
Who It Is For
If you are building a product where users need to edit documents online, think collaborative office tools, CRM, education platforms, or contract systems, these components save you from building an editor from scratch, and the hosted embed option gives you a generous free tier of 1,000 localhost sessions a month. People building AI applications should look even closer, because the MCP server makes it remarkably direct for an agent to read and write real Office files. Teams setting up a self-hosted office environment who care about the boundaries of the AGPL license can also use it as a starting point. One caveat: true two-way .docx/.xlsx/.pptx reading and writing, function calculation, charts, and SmartArt editing live in the official desktop client, while the open-source part only displays those elements, so decide early which side of that line your needs fall on.
Quick Start
The easiest path is the live demo on the site, no install needed. To run all six editors together, clone the repo and run npm install, npm run fonts, npm run build, then npm run preview, and open localhost:5178 in a browser. npm run dev gives you a development server and npm run smoke checks a build. To embed into your own web app, run npx mroffice-embed init to generate local config, then follow the docs to mint a session with createSessionToken and open the editor with open(). To let AI operate documents, connect to https://mcp.mroffice.ai/mcp or run npx -y mroffice-mcp locally.
How It Compares
- LibreOffice: a veteran desktop suite with strong format compatibility, but heavy, weak on browser and embedding stories, and barely reusable as components.
- OnlyOffice or Collabora: they also offer browser editors and document services, but commercial licensing and deployment complexity run high, with no native AI or MCP integration.
- Pure front-end builds using contenteditable or CodeMirror: light, but you have to handle pagination, revisions, formulas, and rich text yourself, which is a huge amount of work.
- MR Office: six editors as npm React components, browser-native, embeddable, with an MCP server for AI, and the closest thing to the Office feel.
- The catch: AGPL-3.0 carries source-disclosure obligations for network use, and native .docx/.xlsx/.pptx reading and writing, function calculation, charts, and SmartArt editing sit in a closed-source component, so the pure open-source build covers only its own formats plus CSV, HTML, and Markdown.