office-tools
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., "@office-toolsList all .docx files on my desktop"
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.
Office & Filesystem MCP 工具包
这是什么?
一个 MCP(Model Context Protocol)服务,装到 CherryStudio 或 Claude CLI 后,你的 AI 助手就能直接操作电脑上的文件——读取、创建、编辑 Word/Excel/PPT,以及管理文件系统。
本质上就是给 AI 装了一双能操作你电脑文件的手。
Related MCP server: wps-mcp-server
能做什么?
装好之后,你可以直接用自然语言对 AI 说:
📄 Word 文档
你对 AI 说 | AI 做的事 |
"帮我读一下桌面的合同.docx,提取甲乙方信息和金额" | 读取 Word,解析内容 |
"生成一份采购合同,甲方填XX公司,金额5000,保存到桌面" | 生成带格式的合同文档 |
"把这份文档的第五条改成..." | 编辑替换指定内容 |
📊 Excel 表格
你对 AI 说 | AI 做的事 |
"分析桌面 销售数据.xlsx 的月度趋势" | 读取 Excel 数据 |
"把合同里的报价单提取出来,生成一个 Excel" | Word → Excel 转换 |
"汇总这三个 Excel 的总金额,生成汇总表" | 跨文件汇总 |
🎞 PPT 演示文稿
你对 AI 说 | AI 做的事 |
"根据这份 Word 报告生成一个 5 页的 PPT" | 报告 → 演示文稿 |
"把这段数据做成表格放到 PPT 里" | 数据可视化 |
"读取这个 PPT 的大纲" | 提取 PPT 结构 |
📁 文件管理
你对 AI 说 | AI 做的事 |
"列出桌面上所有的 .docx 文件" | 浏览目录 |
"把下载文件夹里所有 PDF 移动到一个新目录" | 批量移动 |
"读取这个 .py 文件,帮我改第 20 行" | 编辑代码文件 |
"帮我创建一个项目文件夹结构" | 创建目录 |
你的 AI 现在多了 14 项能力
类别 | 工具 | 干什么用 |
Word |
| 读取文档(段落、表格、样式) |
| 创建文档(标题、正文、表格、签署页) | |
Excel |
| 读取表格(多 Sheet、合并单元格) |
| 创建表格(表头、冻结、样式) | |
PPT |
| 读取幻灯片(文本、表格、备注) |
| 创建演示文稿(标题、要点、表格) | |
文件 |
| 浏览文件夹 |
| 读取任意文本文件 | |
| 创建/覆盖文件 | |
| 查找替换编辑 | |
| 查看文件信息 | |
| 新建文件夹 | |
| 移动/重命名 | |
| 删除文件/文件夹 |
怎么装?
前提条件
Python 3.10 或更高版本(macOS 自带,Windows 需安装)
已装 CherryStudio 或 Claude CLI
3 步搞定
第 1 步:克隆项目
git clone https://github.com/xhj-cloud/office-tool.git
cd office-tool第 2 步:安装依赖
python3 -m venv venv
./venv/bin/pip install -r requirements.txtWindows:
venv\Scripts\pip install -r requirements.txt
第 3 步:配置到 AI 工具
设置 → MCP 服务器 → 添加:
配置项 | 值 |
名称 |
|
传输类型 |
|
命令 | 选择项目目录下的 |
参数 |
|
编辑 ~/.claude/mcp.json:
{
"mcpServers": {
"office-tools": {
"type": "stdio",
"command": "实际路径/venv/bin/python",
"args": ["实际路径/server.py"]
}
}
}验证
"列出我桌面的文件"
返回文件列表即成功。
常见问题
Q: AI 说"无法访问桌面"? 给完整绝对路径:/Users/xxx/Desktop/文件.docx
Q: 启动报 connection closed? 检查 Python ≥ 3.10,确保依赖全部装完。
Q: 想加新功能? 在 tools/ 下新建 .py,在 server.py 用 @mcp.tool() 注册。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/xhj-cloud/office-tool'
If you have feedback or need assistance with the MCP directory API, please join our Discord server