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 |
Capabilities
Features and capabilities supported by this server
| 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_docx | 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_docx | 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_docx | 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_docx | Append text content to an existing document. Args: filepath: Path to the document content: Text content to append Returns: Dictionary with status |
| list_docx | List all Word documents in a directory. Args: directory: Directory path to list (defaults to project directory) Returns: Dictionary with list of documents |
| delete_docx | 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_docx | 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_fields | 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_fields | 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_controls | List all content controls in a document. Args: filepath: Path to the document Returns: Dictionary with list of content controls |
| get_document_properties | Get document properties and metadata. Args: filepath: Path to the document Returns: Dictionary with document properties |
| set_document_properties | 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_styles | List all paragraph and character styles available in a document. Args: filepath: Path to the document Returns: Dictionary with list of styles |
| apply_paragraph_style | 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_list | 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_list | 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_level | 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_image | 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_caption | 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_images | List all images in a document. Args: filepath: Path to the document Returns: Dictionary with list of images and metadata |
| list_equations | 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_equation | 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_images | 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_check | 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
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