WPS Office MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEBUG | No | MCP 调试开关 | false |
| LOG_LEVEL | No | 日志详细程度 | info |
| MCP_CONSOLE_LOG | No | 保持 stdout 纯净,避免破坏 stdio MCP | 0 |
| WPS_MCP_LOG_DIR | No | 私有日志目录;已被 Git 忽略 | .wps-mcp-logs |
| WPS_MCP_LOG_PARAMS | No | 保持 0,避免记录文档文本、路径或密码 | 0 |
| WPS_MCP_TOOL_PROFILE | No | compact 为 29 个只读工具;full 为高风险完整目录 | compact |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| wps_check_connectionB | 检查WPS Office连接状态 |
| wps_get_active_documentB | 获取当前打开的WPS文字文档信息 |
| wps_get_active_workbookA | 获取当前打开的WPS表格工作簿信息 |
| wps_get_cell_valueB | 读取指定单元格的值 |
| wps_get_active_presentationB | 获取当前打开的WPS演示文稿信息 |
| wps_excel_read_rangeB | 读取Excel指定范围的单元格数据,返回二维数组格式的数据。 |
| wps_excel_get_sheet_listA | 获取当前工作簿的所有工作表列表,包含名称、索引和是否为活动工作表。 |
| wps_excel_get_selectionA | 获取当前Excel中选中区域的信息,包括范围地址、行列数等。 |
| wps_excel_get_open_workbooksA | 获取当前所有已打开的Excel工作簿列表。 |
| wps_excel_get_cell_valueC | 获取Excel指定单元格的值。 |
| wps_excel_get_formulaB | 获取Excel指定单元格的公式。 |
| wps_excel_get_cell_infoA | 获取单元格的详细信息(值、公式、格式等)。 |
| wps_word_get_active_documentB | 获取当前WPS Writer活动文档的基本信息 |
| wps_word_get_paragraphsA | 获取Word文档的段落结构信息,返回每段的文本、样式和字符位置。 使用场景:
返回信息包括:段落索引、文本内容、样式名称、字符起止位置。 支持分页获取(startParagraph/endParagraph),默认返回前50段。 |
| wps_word_find_in_documentA | 在Word文档中查找文本并返回位置信息,不执行替换操作。 使用场景:
返回信息包括:匹配文本、字符起止位置、所在段落索引、上下文(前后50字符)。 与find_replace不同,此工具仅查找不替换,返回位置信息供后续操作使用。 |
| wps_word_get_open_documentsA | 获取当前WPS Writer中所有已打开的文档列表。 使用场景:
|
| wps_word_get_document_textA | 获取当前Word文档的文本内容。 使用场景:
可指定起始和结束位置来获取部分文本。 |
| wps_word_get_track_changes_statusA | 获取当前文档的修订模式状态。 使用场景:
|
| wps_ppt_get_slide_countA | 获取演示文稿中的幻灯片总数。 使用场景:
|
| wps_ppt_get_slide_infoA | 获取指定幻灯片的详细信息,包括布局、元素列表等。 使用场景:
|
| wps_ppt_get_slide_notesA | 获取指定幻灯片的备注内容。 使用场景:
|
| wps_ppt_get_open_presentationsA | 获取当前所有已打开的演示文稿列表。 使用场景:
|
| wps_ppt_get_textboxesA | 获取幻灯片上所有文本框的列表。 |
| wps_ppt_get_slide_titleB | 获取指定幻灯片的标题。 |
| wps_ppt_find_ppt_textA | 在演示文稿中搜索指定文本。 返回包含目标文本的幻灯片页码和形状信息。 使用场景:
|
| wps_common_pingA | 检测WPS应用连接状态。 使用场景:
特点:
|
| wps_common_wire_checkA | 检查与WPS加载项之间的通信线路状态。 使用场景:
特点:
|
| wps_common_get_app_infoA | 获取WPS应用的基本信息。 使用场景:
特点:
|
| wps_common_get_selected_textA | 获取当前文档中选中的文本内容。 使用场景:
特点:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 29 tools
Several tools overlap heavily: wps_check_connection, wps_common_ping, and wps_common_wire_check all test connectivity; wps_get_active_document duplicates wps_word_get_active_document; wps_get_cell_value duplicates wps_excel_get_cell_value. Word/PPT find functions and paragraph/text retrieval are distinct, but these redundancies create real selection risk.
All names use snake_case and mostly follow wps_<domain>_<verb>_<object>, but older generic tools like wps_get_active_document, wps_get_cell_value, and wps_check_connection lack domain prefixes, while wps_ppt_find_ppt_text is redundantly worded. The pattern is readable but not consistently applied.
29 tools is above the 25+ threshold and feels heavy, especially since several tools are near-duplicates (ping/check_connection/wire_check, active_document variants, cell_value variants) and could be consolidated or removed. It is not egregiously over-scoped for three Office applications, but it is larger than needed.
The surface is almost entirely read/inspection-oriented: it can locate and read content, but cannot modify cells, edit documents, update presentations, create files, or fill the fields that its own find tools are meant to identify. For an Office automation MCP, the inability to make any changes is a significant gap.