docx-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DOCX_MCP_LOG_LEVEL | No | 日志级别(DEBUG, INFO, WARNING, ERROR)(Log level: DEBUG, INFO, WARNING, ERROR) | INFO |
| DOCX_MCP_PROJECT_DIR | No | 文档访问的项目目录 (The project directory for document access) | |
| DOCX_MCP_MAX_FILE_SIZE | No | 最大文件大小,默认:50MB (Maximum file size, default: 50MB) | 52428800 |
| DOCX_MCP_ALLOW_UNSAFE_PATHS | No | 允许访问任意路径(谨慎使用)(Allow access to arbitrary paths - use with caution) | false |
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": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {
"tasks": {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
},
"prompts": {
"get": {}
},
"resources": {
"read": {}
}
}
}
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_docxC | Create a new blank Word document. Args: filepath: Path where to create the document title: Optional title for the document Returns: Dictionary with status and document info |
| read_docxC | Read and extract text content from a Word document. Args: filepath: Path to the document to read Returns: Dictionary with document text and metadata |
| write_docxC | Create or overwrite a document with plain text content. Args: filepath: Path to the document content: Text content to write Returns: Dictionary with status |
| append_docxC | Append text content to an existing document. Args: filepath: Path to the document content: Text content to append Returns: Dictionary with status |
| list_docxC | List all Word documents in a directory. Args: directory: Directory path to list (defaults to project directory) Returns: Dictionary with list of documents |
| delete_docxA | Delete a Word document. Args: filepath: Path to the document to delete confirm: Must be True to actually delete (safety check) Returns: Dictionary with status |
| copy_docxC | Copy a Word document to a new location. Args: source_filepath: Path to the source document destination_filepath: Path for the copied document Returns: Dictionary with status |
| list_merge_fieldsA | Extract all MERGEFIELD names from a document or template. Args: filepath: Path to the document Returns: Dictionary with list of merge field names |
| fill_merge_fieldsB | Fill merge fields in a document with provided data. Args: filepath: Path to the document or template data: Dictionary mapping field names to values Returns: Dictionary with status and modified document info |
| list_content_controlsC | List all content controls in a document. Args: filepath: Path to the document Returns: Dictionary with list of content controls |
| get_document_propertiesC | Get document properties and metadata. Args: filepath: Path to the document Returns: Dictionary with document properties |
| set_document_propertiesB | Set document properties and metadata. Args: filepath: Path to the document title: Document title subject: Document subject author: Document author keywords: Document keywords comments: Document comments Returns: Dictionary with status |
| list_stylesB | List all paragraph and character styles available in a document. Args: filepath: Path to the document Returns: Dictionary with list of styles |
| apply_paragraph_styleC | Apply a named paragraph style to a paragraph. Args: filepath: Path to the document paragraph_index: Index of the paragraph (0-based) style_name: Name of the style to apply (e.g., "Heading 1", "Normal") Returns: Dictionary with status |
| apply_bullet_listC | Apply bullet list formatting to paragraphs. Args: filepath: Path to the document paragraph_indices: List of paragraph indices to bullet bullet_style: Type of bullet ('bullet', 'circle', 'square', 'dash', 'check') Returns: Dictionary with status |
| apply_numbered_listC | Apply numbered list formatting to paragraphs. Args: filepath: Path to the document paragraph_indices: List of paragraph indices to number number_format: Format for numbering ('1', 'a', 'i', 'I', 'A') Returns: Dictionary with status |
| set_list_levelB | Set indentation level for a list paragraph. Args: filepath: Path to the document paragraph_index: Index of the paragraph level: Indentation level (0-8) Returns: Dictionary with status |
| insert_imageC | Insert an image into a document. Args: filepath: Path to the document image_path: Path to the image file to insert width: Image width in inches (optional) height: Image height in inches (optional) Returns: Dictionary with status |
| add_image_captionC | Add a caption to an image in the document. Args: filepath: Path to the document image_index: Index of the image (0-based) caption_text: Caption text caption_type: Type of caption (Figure, Table, Equation) Returns: Dictionary with status |
| list_imagesC | List all images in a document. Args: filepath: Path to the document Returns: Dictionary with list of images and metadata |
| list_equationsA | List all mathematical equations/formulas in a Word document. Extracts equations stored in Office Math Markup Language (OMML) format and converts them to LaTeX notation for readability. Args: filepath: Path to the document Returns: Dictionary with list of equations including LaTeX representation |
| get_equationA | Get a specific equation by index from a Word document. Args: filepath: Path to the document equation_index: Index of the equation (0-based) include_omml: If True, include the raw OMML XML Returns: Dictionary with equation details including LaTeX representation |
| extract_imagesB | Extract all images from a Word document. Args: filepath: Path to the document output_dir: Directory to save extracted images (optional) return_base64: If True, return images as base64 encoded strings Returns: Dictionary with extracted images info and optionally base64 data |
| health_checkB | Check server health and status. Returns: Dictionary with health status |
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/Andrew82106/LLM_Docx_Agent_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server