LibreOffice远程控制服务

通过UNO协议远程操作LibreOffice的服务,支持多种编程语言和平台集成。

  • by krwigo
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 krwigo/mcp-libreoffice

使用说明

LibreOffice MCP服务器

MCP服务器通过uno操纵LibreOffice。

经过测试 OpenAI Codex (v0.63.0), Python 3.14.0,以及 LibreOffice 25.8.2.1.

LibreOffice

"C:\Program Files\LibreOffice\program\soffice" --headless --accept="socket,host=0.0.0.0,port=2002;urp;" --nologo --nodefault --norestore --nofirststartwizard

主控程序

"C:\Program Files\LibreOffice\program\python" -m pip install -r requirements.txt
"C:\Program Files\LibreOffice\program\python" main.py --bind 0.0.0.0 --port 8765

法典

codex mcp add libreoffice --url http://192.168.2.20:8765/

克劳德

claude mcp add --transport http libreoffice http://192.168.2.20:8765/

巧克力味

choco install python3 libreoffice-still

恰当

apt install python3 python3-uno libreoffice

媒体