Lo
FreeNot checkedA stdio MCP server for LibreOffice Writer that enables creating, editing, and exporting Writer documents via natural language commands.
About
A stdio MCP server for LibreOffice Writer that enables creating, editing, and exporting Writer documents via natural language commands.
README
A stdio MCP server for LibreOffice Writer. Minimal scope on purpose: create, edit, and export Writer documents. No Calc/Impress yet — add them later if Writer proves useful.
Why this shape
LibreOffice's own bundled Python interpreter (LibreOfficePython, used by
import uno for document automation) carries a macOS Launch Constraint —
spawning it as a subprocess from Claude Code's process tree gets SIGKILLed
by macOS (CODESIGNING 4 Launch Constraint Violation). Plain soffice does
not carry this constraint, but driving Writer interactively needs the uno
Python bindings, which only load correctly under LibreOffice's own bundled
interpreter (cross-interpreter import uno from an unrelated Python is an
ABI mismatch — observed to hang the process in uninterruptible sleep, not
fail cleanly).
So: a small LibreOffice extension (extension/) runs inside the
already-running soffice process, using LibreOffice's own already-correct
interpreter — no subprocess, no cross-interpreter import. It exposes a
local HTTP server. The MCP server (src/lo_mcp/) is a thin, unconstrained
client that talks to it over plain HTTP — same pattern as freecad-mcp
connecting to the AICopilot addon running inside FreeCAD.
Setup
- Build and install the extension:
extension/build.sh /Applications/LibreOffice.app/Contents/MacOS/unopkg add --force dist/lo-mcp.oxt - Launch (or restart) LibreOffice.
- In LibreOffice: lo-mcp menu > Start Server. This opens
127.0.0.1:8794— local-only, only listens while you've started it. No real authentication, but POSTs must carry anX-Lo-Mcp-Clientheader, which forces browsers to CORS-preflight cross-origin requests; since the server never answers withAccess-Control-Allow-Origin, that preflight fails and a malicious web page can't drive it. - Register the MCP server:
uv sync claude mcp add lo-mcp -- uv run --project /Volumes/Files/claude/lo-mcp lo-mcp
Call check_connection first in any session — if LibreOffice isn't running
or the server wasn't started, it says so.
Tools
check_connection, create_document, open_document, list_documents,
get_text, insert_text, find_and_replace, save_document,
export_document (pdf/docx/odt/doc/rtf/txt/html), close_document.
Testing
uv run pytest
Requires LibreOffice running with the server started; skips otherwise.
Extending to Calc/Impress
Add operations to extension/pythonpath/lo_mcp_extension.py (new *Ops
class or methods, registered in _OPS) and matching thin @mcp.tool()
wrappers in src/lo_mcp/server.py. The HTTP/extension plumbing doesn't
change.
Install Lo in Claude Desktop, Claude Code & Cursor
unyly install lo-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add lo-mcp -- uvx --from git+https://github.com/blwfish/LibreOffice-mcp lo-mcpFAQ
Is Lo MCP free?
Yes, Lo MCP is free — one-click install via Unyly at no cost.
Does Lo need an API key?
No, Lo runs without API keys or environment variables.
Is Lo hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Lo in Claude Desktop, Claude Code or Cursor?
Open Lo on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Lo with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
