wps-mcp-server
Click on "Deploy 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., "@wps-mcp-serverCreate a weekly report document"
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.
WPS MCP Server · WPS 办公套件的 AI 原生操作
与其手动打开 WPS 慢慢编辑,不如让 AI 直接帮你搞定文档、表格、幻灯片
中文 | English
这是什么?
一个让 AI Agent 原生操作 WPS Office 的 MCP Server。
不用手动打开 WPS,不用慢慢排版。直接告诉 AI 你想做什么,它帮你完成。
注意:WPS 和 Microsoft Office 使用相同的文件格式(.docx、.xlsx、.pptx),所以这个服务器同时兼容 WPS 和 Office!
问题
你日常做的事 AI 帮你做的事
─────────────────────────────────────────────────
"帮我创建个周报文档" → 直接生成 .docx 文件
"在表格里填入这些数据" → 自动写入 Excel
"做个产品介绍 PPT" → 自动生成幻灯片问题在哪?
AI 只能"建议"你做什么,而不是"替"你做什么。 你还是要自己动手打开软件、复制粘贴。
解决
# 用自然语言操作 WPS
create_document("周报", "本周工作总结") # 创建文档
add_heading("周报", "工作内容", 2) # 添加标题
write_cell("销售数据", "A1", "100万") # 写入表格
create_presentation("产品介绍", "XX产品") # 创建 PPT支持的工具
📄 文档 (Word)
工具 | 功能 |
| 创建新文档 |
| 添加标题 |
| 添加段落 |
| 读取文档内容 |
📊 表格 (Excel)
工具 | 功能 |
| 创建新表格 |
| 写入单元格 |
| 读取单元格 |
| 添加公式 |
📽️ 演示 (PowerPoint)
工具 | 功能 |
| 创建新演示文稿 |
| 添加幻灯片 |
| 添加文本框 |
| 设置布局 |
支持的平台
平台 | 配置文件位置 | 说明 |
Claude Code |
| Anthropic 官方 |
Cursor |
| VS Code 分支,AI 功能强 |
VS Code (Insider) |
| 需要 Insider 版本 |
OpenClaw |
| 开源 AI Agent 框架 |
快速开始
1. 安装依赖
pip install mcp python-docx openpyxl python-pptx2. 配置环境变量(可选)
# 设置工作目录,默认是 ~/wps_projects
export WPS_WORKSPACE="/path/to/your/folder"3. 配置 MCP Server
Claude Code (~/.claude/settings.local.json)
{
"mcpServers": {
"wps": {
"command": "python",
"args": ["/path/to/wps_mcp.py"]
}
}
}Cursor / VS Code Insider (~/.cursor/mcp.json)
{
"mcpServers": {
"wps": {
"command": "python",
"args": ["C:\\path\\to\\wps_mcp.py"]
}
}
}OpenClaw (~/.openclaw/mcp.json)
{
"mcpServers": {
"wps": {
"command": "python",
"args": ["/path/to/wps_mcp.py"]
}
}
}4. 开始对话
# 启动 Claude Code 后,直接说:
"帮我创建一份周报文档"
"在表格里填入本月销售数据"
"做一个 5 页的产品介绍 PPT"使用示例
创建文档
"帮我创建一个项目报告文档"
AI → create_document("项目报告", "项目报告") → 返回文件路径操作表格
"在销售数据.xlsx 的 A1 写入 100万"
AI → write_cell("销售数据", "A1", "100万") → 完成
"帮我计算 A1 到 A10 的总和"
AI → add_formula("销售数据", "A11", "=SUM(A1:A10)") → 完成制作 PPT
"创建一个公司介绍 PPT"
AI → create_presentation("公司介绍", "XX公司") → 创建完成
"添加一页新幻灯片"
AI → add_slide("公司介绍", 1) → 幻灯片添加成功为什么选 WPS?
优势 | 说明 |
🇨🇳 中国市场 | WPS 在中国有 1 亿日活设备 |
🏛️ 政府采购 | 政府机关首选 WPS |
📄 格式兼容 | 同时支持 .docx、.xlsx、.pptx |
🔧 易于使用 | python-docx/openpyxl/pptx 生态成熟 |
技术栈
Python 3.10+
FastMCP - MCP 框架
python-docx - Word 文档
openpyxl - Excel 表格
python-pptx - PPT 幻灯片
License
MIT
Related MCP server: SmartOffice-MCP
English
An MCP server for WPS Office operations - enables AI agents to create, edit, and manage documents, spreadsheets, and presentations via natural language.
Note: WPS and Microsoft Office use the same file formats (.docx, .xlsx, .pptx), so this server works with both WPS and MS Office!
Features
Documents - Create and edit Word (.docx) files
Spreadsheets - Work with Excel (.xlsx) files
Presentations - Build PowerPoint (.pptx) slideshows
Quick Start
pip install mcp python-docx openpyxl python-pptx
python wps_mcp.pyConfigure in Claude Code and start chatting!
This server cannot be deployed
Maintenance
Related MCP Connectors
Create and manage documents, spreadsheets, and presentations from your AI assistant.
An agent-first office suite Claude & ChatGPT read and write over one MCP URL.
AI document editing for agents: draft, edit, export .docx/PDF. 37 MCP tools; agent self-signup.
Create presentations, docs, sheets and meeting notes from chat. Hosted link, editor, PPTX & PDF.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables complete Office document lifecycle management for AI agents, including creation, editing, conversion, and templating of DOCX, XLSX, PPTX, PDF, and EML files.4018 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to create, edit, format, and analyze Microsoft Office documents (Excel, Word, PPT, PDF) using natural language, with features like table replication and automated styling.2MIT
- AlicenseNot gradedqualityCmaintenanceIntegrates AI assistants with WPS Office to automate operations across Writer, Spreadsheets, and Presentations via the MCP protocol.3MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to read, create, edit Word/Excel/PPT files and manage the filesystem on the user's computer via natural language.-