MCP Word Commander
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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 | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_new_documentB | 创建一个新的空白 Word 文档。 Args: file_path: 保存文档的路径 (例如: "output.docx") |
| get_document_infoC | 获取 Word 文档的基本信息概览,包括段落数、表格数、各段落的简要信息。 用于在读取完整内容前快速了解文档结构。 Args: file_path: 文档路径 Returns: JSON 格式的文档概览信息。 |
| read_document_structureA | 分段读取 Word 文档的内容和样式信息。支持分页读取大文档。 Args: file_path: 文档路径 start_index: 从第几个段落开始读取 (0-based) limit: 最多读取多少个段落 (默认50) include_empty: 是否包含空段落 (默认False) Returns: JSON 格式的字符串,包含段落文本和对应的样式信息。 |
| read_tablesB | 读取 Word 文档中的表格内容。 Args: file_path: 文档路径 table_index: 指定读取第几个表格 (0-based),不指定则读取所有表格 Returns: JSON 格式的表格数据。 |
| add_formatted_paragraphA | 向文档追加带有特定样式的段落。支持设置中文字体(如宋体/黑体)。 Args: file_path: 文档路径 text: 段落内容 font_name: 字体名称 (默认 "SimSun" 即宋体, 可选 "Microsoft YaHei", "Times New Roman" 等) font_size: 字号 (pt) is_bold: 是否加粗 alignment: 对齐方式 ("LEFT", "CENTER", "RIGHT", "JUSTIFY") indent_first_line: 首行缩进字符数 (例如 2.0 代表缩进两个字符) line_spacing: 行距 (pt),例如 20.0 代表固定值20磅 |
| replace_paragraphA | 替换指定段落的内容,并应用新的格式。 Args: file_path: 文档路径 paragraph_index: 要替换的段落索引 (0-based) new_text: 新的段落内容 font_name: 字体名称 font_size: 字号 (pt) is_bold: 是否加粗 alignment: 对齐方式 indent_first_line: 首行缩进字符数 line_spacing: 行距 (pt) |
| insert_paragraph_afterB | 在指定段落之后插入新段落。 Args: file_path: 文档路径 after_index: 在此段落索引之后插入 (0-based) text: 新段落内容 font_name: 字体名称 font_size: 字号 (pt) is_bold: 是否加粗 alignment: 对齐方式 indent_first_line: 首行缩进字符数 line_spacing: 行距 (pt) |
| search_and_replaceB | 在文档中搜索并替换文本(保持原有格式)。 Args: file_path: 文档路径 search_text: 要搜索的文本 replace_text: 替换为的文本 match_case: 是否区分大小写 (默认True) |
| create_table_with_dataA | 在文档末尾创建一个表格并填充数据。 Args: file_path: 文档路径 rows: 行数 cols: 列数 data: 二维数组,包含要填充的数据 [['Header1', 'Header2'], ['Val1', 'Val2']] header_bold: 第一行是否加粗 |
| get_images_infoA | 获取 Word 文档中所有图片的元信息,不返回图片内容。 用于在读取图片前了解文档中图片的结构和位置。 Args: file_path: 文档路径 include_tables: 是否包含表格中的图片 (默认True) Returns: JSON 格式的图片元信息列表。 |
| read_imagesA | 读取 Word 文档中的图片,直接返回给 AI 查看。 Args: file_path: 文档路径 image_index: 指定读取第几张图片 (0-based),不指定则读取所有图片 include_tables: 是否包含表格中的图片 (默认True) Returns: Image 对象列表,AI 可以直接"看到"这些图片。 如果发生错误,返回错误信息字符串。 |
| add_imageA | 在文档末尾添加图片。 Args: file_path: 文档路径 image_path: 图片文件路径 (支持 PNG, JPG, GIF, BMP 等格式) width_inches: 图片宽度 (英寸),不指定则使用原始宽度 height_inches: 图片高度 (英寸),不指定则按宽度等比缩放 alignment: 对齐方式 ("LEFT", "CENTER", "RIGHT") |
| insert_image_after_paragraphA | 在指定段落之后插入图片。 Args: file_path: 文档路径 after_index: 在此段落索引之后插入 (0-based) image_path: 图片文件路径 width_inches: 图片宽度 (英寸) height_inches: 图片高度 (英寸) alignment: 对齐方式 ("LEFT", "CENTER", "RIGHT") |
| delete_imageB | 删除文档中指定索引的图片。 使用 get_images_info 工具可以查看所有图片的索引。 Args: file_path: 文档路径 image_index: 要删除的图片索引 (0-based) |
| replace_imageC | 替换文档中指定索引的图片。 使用 get_images_info 工具可以查看所有图片的索引。 Args: file_path: 文档路径 image_index: 要替换的图片索引 (0-based) new_image_path: 新图片文件路径 width_inches: 新图片宽度 (英寸),不指定则使用原图片尺寸 height_inches: 新图片高度 (英寸) |
| insert_table_after_paragraphB | 在指定段落之后插入表格。 Args: file_path: 文档路径 after_index: 在此段落索引之后插入表格 (0-based) rows: 表格行数 cols: 表格列数 data: 二维数组,包含要填充的数据 [['Header1', 'Header2'], ['Val1', 'Val2']] header_bold: 第一行是否加粗 (默认True) style: 表格样式 (默认 "Table Grid") |
| update_table_cellB | 修改表格中指定单元格的内容。 Args: file_path: 文档路径 table_index: 表格索引 (0-based) row: 行索引 (0-based) col: 列索引 (0-based) new_text: 新的单元格内容 font_name: 字体名称 (可选) font_size: 字号 pt (可选) is_bold: 是否加粗 (可选) |
| delete_tableC | 删除文档中指定索引的表格。 Args: file_path: 文档路径 table_index: 要删除的表格索引 (0-based) |
| add_table_rowA | 向表格中添加新行。 Args: file_path: 文档路径 table_index: 表格索引 (0-based) row_data: 新行的数据列表 position: 插入位置 (0-based),不指定则添加到末尾 |
| delete_table_rowB | 删除表格中的指定行。 Args: file_path: 文档路径 table_index: 表格索引 (0-based) row_index: 要删除的行索引 (0-based) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/chyinan/MCP-Word-Commander'
If you have feedback or need assistance with the MCP directory API, please join our Discord server