TO

thewdy/office-editor-mcp

开发工具

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

93 stars 20 forks 质量 79 趋势 4MIT

thewdy/office-editor-mcp 是从 https://github.com/thewdy/office-editor-mcp. 导入的 MCP 服务器候选人。

概览

thewdy/office-editor-mcp 是从 https://github.com/thewdy/office-editor-mcp. 导入的 MCP 服务器候选人。

概述(AI 翻译)

一个MCP(模型上下文协议)服务器用于Office文档处理,支持在MCP客户端内创建和编辑Word、Excel和PowerPoint文档,而无需离开AI助理环境。

概述

Office-Editor-MCP 实现了模型上下文协议(Model Context Protocol)标准,将 Office 文档操作展示为工具和资源。它作为 AI 助手与 Microsoft Office 文档之间的桥梁,允许您通过 AI 助手创建、编辑、格式化和分析各种 Office 文档。

特色

Word 文档操作

文档管理

  • 创建包含元数据(标题、作者等)的新Word文档
  • 提取文本内容并分析文档结构
  • 查看文档属性和统计数据
  • 在目录中列出可用文档
  • 创建文档副本

内容创作

  • 添加不同层级的标题
  • 插入带有可选样式的段落
  • 创建包含自定义数据的表格
  • 添加具有比例比例的图像
  • 插入分页

文本格式

  • 格式化特定文本部分(加粗、斜体、下划线)
  • 更改文本颜色和字体属性
  • 对文本元素应用自定义样式

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

README

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

Office Document Processing MCP Server

An MCP (Model Context Protocol) server for Office document processing, enabling creation and editing of Word, Excel, and PowerPoint documents within MCP Clients without leaving the AI assistant environment.

Overview

Office-Editor-MCP implements the Model Context Protocol standard to expose Office document operations as tools and resources. It serves as a bridge between AI assistants and Microsoft Office documents, allowing you to create, edit, format, and analyze various Office documents through AI assistants.

Features

Word Document Operations

Document Management

  • Create new Word documents with metadata (title, author, etc.)
  • Extract text content and analyze document structure
  • View document properties and statistics
  • List available documents in a directory
  • Create document copies

Content Creation

  • Add headings with different levels
  • Insert paragraphs with optional styling
  • Create tables with custom data
  • Add images with proportional scaling
  • Insert page breaks

Text Formatting

  • Format specific text sections (bold, italic, underline)
  • Change text color and font properties
  • Apply custom styles to text elements
  • Search and replace text throughout documents

Excel Operations

Workbook Management

  • Create new Excel workbooks
  • Open existing Excel files
  • Add/delete/rename worksheets

Data Processing

  • Read and write cell contents
  • Insert/delete rows and columns
  • Sort and filter data
  • Apply formulas and functions

PowerPoint Operations

Presentation Management

  • Create new PowerPoint presentations
  • Add/delete/rearrange slides
  • Set slide themes and backgrounds

Content Editing

  • Add text and graphic elements
  • Insert tables and charts
  • Add animations and transitions

Advanced Features

  • OCR recognition (extract text from images)
  • Document comparison (compare differences between documents)
  • Document translation
  • Document encryption and decryption
  • Table data import/export (database interaction)

Installation Guide

Prerequisites

  • Python 3.10 or higher
  • pip package manager
  • Microsoft Office is only required for Windows COM features such as PDF export, animations, transitions, and legacy Office formats
  • Tesseract OCR is required when using ocr_recognize_text

Basic Installation

# Clone the repository
git clone https://github.com/theWDY/office-editor-mcp.git
cd office-editor-mcp

# Install dependencies
pip install -r requirements.txt

The repository exposes four independent MCP servers: word_server.py,

在 GitHub 查看完整 README

安装

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

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

配置

{ "mcpServers": { "office-assistant": { "command": "python", "args": ["/path/to/office-editor-mcp/word_server.py"], "env": {"OFFICE_EDIT_PATH": "/path/to/output"} } } }