JM

jwingnut/mcp-libre

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

17 stars 9 forks 质量 64 趋势 29MIT

LibreOffice MCP扩展 - LibreOffice 通过模型上下文协议的AI助理集成

概览

一个全面的"模型背景协议"(MCP)服务器,提供与LibreOffice文档互动的工具和资源. 这个服务器可以让AI助手和其他MCP客户端在程序上创建,阅读,转换,并操纵LibreOffice文档. - :直接嵌入在LibreOffice的MCP服务器 - :使用即时可视反馈进行Live文档操作 - :10x比外部服务器快(直接UNO API访问) - :从32个单个工具中减少,以更好的UX - :全面修改跟踪意识 - :与所有开放的LibreOffice文档合作 - :外部AI助手通过localhost:8765访问 - : 新建 Writer, Calc, Impress, 并 Draw 文档 - : 提取文本并带有可见的 内容用于跟踪更改意识 - : 段落级导航,光标定位,文档大纲 - : 插入,格式,选择并替换文本 - : 查找/替换为跟踪更改意识 (skips 跟踪删除) - : 添加并检索文档注释 - : 启用,禁用,列表,...

概述(AI 翻译)

一个全面的"模型背景协议"(MCP)服务器,提供与LibreOffice文档互动的工具和资源. 这个服务器可以让AI助手和其他MCP客户端在程序上创建,阅读,转换,并操纵LibreOffice文档.

□ * * * * 特点

QQ LibreOffice扩展站(Plugin) - 建议!

  • ** 国内一体化**: 直接嵌入 LibreOffice 的 MCP 服务器
  • ** 实时编辑**:实时文档操作,即时视觉反馈
  • ** 绩效**:10x比外部服务器快(直接UNO API访问)
  • 9 综合工具:从32个个人工具中减少,以改善UX
  • ** 跟踪变化支助**:全面跟踪修订意识
  • ** 多文件**: 使用所有打开的 LibreOffice 文档
  • HTTP API: 外部人工智能助理通过localhost:8765访问

文件操作

  • ** 创建文档**:新作家、卡尔克、印象和绘图文档
  • ** 读取内容**: 为音轨更改意识提取带有可见内容的文本
  • Navigate:段级导航、光标定位、文件大纲
  • ** 编辑**:插入、格式、选择和替换文本

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

LibreOffice MCP Server

A comprehensive Model Context Protocol (MCP) server that provides tools and resources for interacting with LibreOffice documents. This server enables AI assistants and other MCP clients to create, read, convert, and manipulate LibreOffice documents programmatically.

🚀 Features

  • Native Integration: Embedded MCP server directly in LibreOffice
  • Real-time Editing: Live document manipulation with instant visual feedback
  • Performance: 10x faster than external server (direct UNO API access)
  • 9 Consolidated Tools: Reduced from 32 individual tools for better UX
  • Track Changes Support: Full revision tracking awareness
  • Multi-document: Work with all open LibreOffice documents
  • HTTP API: External AI assistant access via localhost:8765

Document Operations

  • Create Documents: New Writer, Calc, Impress, and Draw documents
  • Read Content: Extract text with visible_content for Track Changes awareness
  • Navigate: Paragraph-level navigation, cursor positioning, document outline
  • Edit: Insert, format, select, and replace text
  • Search: Find/replace with Track Changes awareness (skips tracked deletions)
  • Comments: Add and retrieve document annotations
  • Track Changes: Enable, disable, list, accept/reject revisions

🔧 9 Consolidated MCP Tools

The MCP interface provides 9 logical tool groups (consolidated from 32 individual tools):

Tool Actions Description
document create, info, list, content, status Document management
structure outline, paragraph, range, count Document navigation
cursor goto_paragraph, goto_position, position, context Cursor control
selection paragraph, range, delete, replace Text selection
search find, replace, replace_all Search/replace (Track Changes aware)
track_changes status, enable, disable, list, accept, reject, accept_all, reject_all Revision tracking
comments list, add Comment management
save save, export Save/export documents
text insert, format Text insertion and formatting

See docs/TOOL_REFERENCE.md for complete documentation.

📋 Requirements

  • LibreOffice: 24.2+ (must be accessible via command line)
  • Python: 3.12+
  • UV Package Manager: For dependency management

🛠 Installation

# Clone the repository
git clone https://github.com/jwingnut/mcp-libre.git
cd mcp-libre
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →