Token导航 LogoToken导航TokenDH.com
Claude Document MCP Server logo
文档知识stdio官方级别未说明来源级核验

Claude Document MCP Server

MCP Server

@smithery/cli

A lightweight MCP server for processing, editing, and interacting with PDF, Word, Excel, and CSV documents.

工具数

0

提示词数

0

GitHub Stars

49

资源数

0
文档处理办公自动化PythonClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

alejandroBallesterosC

提供方

alejandroBallesterosC

最后核验

2026/5/18 04:06

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx -y @smithery/cli install @alejandroBallesterosC/document-edit-mcp --client claude

详细介绍

](https://mseep.ai/app/alejandroballesterosc-document-edit-mcp)

克劳德文档MCP服务器

](https://smithery.ai/server/@alejandroBallesterosC/document-edit-mcp)

一种模型上下文协议(MCP)服务器,允许Claude Desktop对Microsoft Word、Excel和PDF文件执行文档操作。

特性

Microsoft Word操作

  • 从文本创建新的Word文档
  • 编辑现有的Word文档(添加/编辑/删除段落和标题)
  • 将文本文件(.txt)转换为Word文档

Excel操作

  • 从类似JSON或CSV的文本创建新的Excel电子表格
  • 编辑现有Excel文件(更新单元格、范围、添加/删除行、列、工作表)
  • 将CSV文件转换为Excel

PDF操作

  • 从文本创建新的PDF文件
  • 将Word文档转换为PDF文件

设置

此MCP服务器需要Python 3.10或更高版本。

通过Smithery安装

通过以下方式自动安装克劳德桌面版的克劳德文档MCP服务器 史密瑟里:

npx -y @smithery/cli install @alejandroBallesterosC/document-edit-mcp --client claude

自动设置(推荐)

运行安装脚本以自动安装依赖项并为Claude Desktop进行配置:

git clone https://github.com/alejandroBallesterosC/document-edit-mcp
cd document-edit-mcp
./setup.sh

这将:

  1. 创建虚拟环境
  2. 安装所需的依赖项
  3. 为Claude Desktop配置服务器
  4. 创建必要的目录

手动设置

如果您更喜欢手动设置:

  1. 安装依赖项:
cd claude-document-mcp
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e .
  1. 配置Claude桌面:

复制 claude_desktop_config.json 文件到:

  • 苹果电脑: ~/Library/Application Support/Claude/
  • 视窗: %APPDATA%\Claude\
  1. 重新启动克劳德桌面

模型上下文协议集成

此服务器遵循模型上下文协议规范,为Claude Desktop提供文档操作功能:

  • 工具:为Word、Excel和PDF操作提供操作功能
  • 资源:提供有关功能的信息
  • 提示词:(目前没有实施)

API 参考

微软 Word

创建Word文档

create_word_document(filepath: str, content: str) -> Dict

编辑Word文档

edit_word_document(filepath: str, operations: List[Dict]) -> Dict

将TXT转换为Word

convert_txt_to_word(source_path: str, target_path: str) -> Dict

Excel

创建Excel文件

create_excel_file(filepath: str, content: str) -> Dict

编辑Excel文件

edit_excel_file(filepath: str, operations: List[Dict]) -> Dict

将CSV转换为Excel

convert_csv_to_excel(source_path: str, target_path: str) -> Dict

PDF

创建PDF文件

create_pdf_file(filepath: str, content: str) -> Dict

将Word转换为PDF

convert_word_to_pdf(source_path: str, target_path: str) -> Dict

日志

服务器将所有操作记录到控制台和 logs/document_mcp.log 用于故障排除的文件。

许可证

麻省理工学院

贡献

欢迎投稿!请随时提交拉取请求。

目录标签

目录标签

文档处理办公自动化PythonClaudedeveloper-tools本地部署文件转换Word编辑Excel操作PDF生成

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

local-only

来源包(packageName,安装包名)

@smithery/cli

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononelocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP