# MCP tools

Source: https://mroffice.ai/en/developers/mcp/tools

The tools MR Office's MCP server gives an AI assistant: create, open, update, read back, render and export documents and spreadsheets.

## Tools

| Tool | What it does |
| --- | --- |
| create_document | A new document (Markdown) or spreadsheet (CSV), opened in the editor. |
| open_document | Opens a file given as text, base64 or an https URL. |
| update_document | Replaces a document's content as a new revision (refused if you edited it since the revision the assistant read). |
| get_document | Reads the current content, including your edits: Markdown for documents, CSV per sheet. |
| render_page | A PNG of one page as the editor draws it. |
| export_document | The document as a file (docx, xlsx, pptx, md, html, csv, pdf …) with a download link. |
| list_documents | The documents created or opened with this server. |
| sign_in / sign_out | Signs this computer in to your MR Office account, or out (revoking its access). |

Every tool carries a title and read-only or destructive hints, so apps can ask before a change.

## Configuration

| Variable | Default | Meaning |
| --- | --- | --- |
| MROFFICE_MCP_PORT | 3410 | Port of the local editor pages (and of --http). |
| MROFFICE_MCP_DATA_DIR | <system temp>/mroffice-mcp | Where documents and their revisions are kept. |
| MROFFICE_MCP_EDITOR_ORIGIN | https://demo.mroffice.ai | Where the editor's scripts, styles and fonts load from. |
| MROFFICE_MCP_PUBLIC_URL | http://127.0.0.1:<port> | The address links point to (set it when serving --http remotely). |
| MROFFICE_MCP_MAX_FILE_BYTES | 20971520 | Largest file a tool accepts. |
| MROFFICE_MCP_API_URL | https://mroffice.ai | The MR Office to sign in to and convert with. |
| MROFFICE_MCP_ENGINE | account | account (your MR Office account) or none (no Office files). |
| MROFFICE_MCP_AUTH | none | oauth: a shared --http server that takes only callers signed in to MR Office. |
