# xinatian/mroffice

> mroffice is an open-source set of browser editors for documents, spreadsheets, presentations, PDF and code, published as the source code of the MR Office suite. It is aimed at web developers who embed these editors in their own apps, at AI apps that drive them through an MCP server, and at teams that build them into their own products. The core idea is one shared set of editor packages that the browser playground, the desktop app and the MCP server all load, each for a different caller. The main language is TypeScript.

Source: https://github.com/xinatian/mroffice
Indexed: commit 77a57b8 on 2026-11-28 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: App
- Language: TypeScript
- Stars: 5,465 at index time
- License: AGPL-3.0
- Code health: 4.8/10, Needs_work
- Last commit: 2026-11-26
- Contributors: 2

## Install

From the README: https://github.com/xinatian/mroffice

Claude Code:

Add the MCP server to Claude Code.
    claude mcp add mroffice -- npx -y mroffice-mcp

Codex:

Add the MCP server to Codex.
    codex mcp add mroffice -- npx -y mroffice-mcp

## How it works

The repository is split into packages, which hold the editors and shared code, and apps, which hold the programs that run them. packages/core supplies the shared Office-style controls, fonts, charts and text helpers that the editors draw their screens with. packages/docs holds the document editor, a paged word processor that opens and saves a local file in the browser, and the slides, sheets and PDF packages import its DocumentEditor from it. apps/playground opens every editor in the browser, and apps/desktop/src/entry.ts starts the desktop app for Windows and macOS. apps/mcp/src/cli.ts is the entry point of the MCP server that AI clients call to create, open, edit, read back and export documents. The scripts directory packages the editors for npm and writes their readme files, runtime helpers and type declarations at build time.

- apps/desktop/src/classic/entry.ts: entry point
- apps/desktop/src/classic/main.ts: entry point
- apps/desktop/src/editors/main.ts: entry point
- apps/desktop/src/entry.ts: entry point
- apps/mcp/src/cli.ts: entry point
Modules: packages, apps, scripts. 4,232 files, 1,576,154 lines, 69,766 symbols.

## Code health

- Score: 4.8/10 (Needs_work)
- Trend: 4.8 on 2026-11-25, 4.8 on 2026-11-28
- Rank: #267 of 279 ranked repos
- Hotspots: packages/pdf/src/web/components/notebook/contents/PdfPageWindow.tsx, packages/sheets/src/web/components/notebook/contents/SpreadsheetWindow.tsx, packages/slides/src/web/components/notebook/contents/PresentationWindow.tsx, packages/pdf/src/web/components/notebook/contents/PDFViewer.tsx, packages/pdf/src/web/lib/pdf/engine/native/list-text-fidelity.ts
- Lowest file: packages/pdf/src/web/lib/pdf/engine/native/list-text-fidelity.ts
- Dead code: 15 findings

## Maintenance

- Last commit 2026-11-26, first commit 2026-11-10, 30 commits
- 2 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/xinatian/mroffice/security

## More

- Page: https://repowise.dev/repo/xinatian/mroffice
- Ask this codebase: https://repowise.dev/repo/xinatian/mroffice/chat
- Docs: https://repowise.dev/repo/xinatian/mroffice/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/xinatian/mroffice
