lo-mcp
Allows creation, editing, and export of LibreOffice Writer documents (e.g., insert text, find/replace, save, export to PDF/DOCX/ODT).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lo-mcpcreate a new document, add 'Hello World', and export as PDF"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
lo-mcp
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.
Related MCP server: docx-mcp-server
Setup
Build and install the extension:
extension/build.sh /Applications/LibreOffice.app/Contents/MacOS/unopkg add --force dist/lo-mcp.oxtLaunch (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 pytestRequires 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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server for reading, editing, and validating Microsoft Word documents with specialized support for track changes, comments, and footnotes. It enables structural auditing, heading extraction, and precise OOXML-level document manipulation through natural language tools.10040MIT
- AlicenseAqualityCmaintenanceA local MCP server for reading and editing Word (.docx) documents with 33 tools for content, formatting, comments, page layout, and track changes, running locally via stdio.273264MIT
- AlicenseAqualityDmaintenanceMCP server for Word document (.docx) creation and manipulation — the production-grade document automation tool for AI agents.932MIT
- AlicenseAqualityBmaintenanceMCP server for reading, writing, editing, formatting, and exporting Microsoft Office documents (Word, Excel, PowerPoint) via stdio JSON-RPC, with 47 tools and cross-platform support.47MIT
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Presentations.AI MCP server — create designed slide decks from a topic, text, or document.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/blwfish/LibreOffice-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server