wps-mcp-server

wps-mcp-server

Enables AI agents to natively create and edit WPS Office documents, spreadsheets, and presentations via natural language commands.

Category
访问服务器

README

WPS MCP Server · WPS 办公套件的 AI 原生操作

与其手动打开 WPS 慢慢编辑,不如让 AI 直接帮你搞定文档、表格、幻灯片

License: MIT Platform: Claude Code Platform: Cursor Platform: WPS Office


中文 | 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)

工具 功能
create_document 创建新文档
add_heading 添加标题
add_paragraph 添加段落
read_document 读取文档内容

📊 表格 (Excel)

工具 功能
create_spreadsheet 创建新表格
write_cell 写入单元格
read_cell 读取单元格
add_formula 添加公式

📽️ 演示 (PowerPoint)

工具 功能
create_presentation 创建新演示文稿
add_slide 添加幻灯片
add_text_to_slide 添加文本框
set_slide_layout 设置布局

支持的平台

平台 配置文件位置 说明
Claude Code ~/.claude/settings.local.json Anthropic 官方
Cursor ~/.cursor/mcp.json VS Code 分支,AI 功能强
VS Code (Insider) ~/.cursor/mcp.json 需要 Insider 版本
OpenClaw ~/.openclaw/mcp.json 开源 AI Agent 框架

快速开始

1. 安装依赖

pip install mcp python-docx openpyxl python-pptx

2. 配置环境变量(可选)

# 设置工作目录,默认是 ~/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 生态成熟

技术栈


License

MIT


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.py

Configure in Claude Code and start chatting!

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选