mcp-docx-template
MCP DOCX Template Server
A portable MCP server that clones a styled Microsoft Word template and fills it with content from another document, preserving images, layout, fonts, colors, and paragraph styles.
Tools
The server exposes three tools:
analyze_template— Inspect a.docxtemplate and return its paragraph structure, images, styles, and a content schema. Also writes a<template>.docx.mddescriptor next to the template so repeat lookups (e.g. by themap_content_to_templateprompt) don't need to re-analyze it.extract_content— Extract editable text blocks from a content.docx.fill_template— Clone the template and replace its editable text using a label-to-text mapping. Optionally converts the result to PDF.
Related MCP server: Word MCP Server
Prompts
map_content_to_template— Given atemplate_pathandcontent_path, reads the template's.docx.mddescriptor (analyzing and writing it first if it doesn't exist yet) plus the extracted content, and returns an instruction message for building acontent_mapping. The assistant is told to ask the user directly when a mapping is ambiguous, then callfill_template.
Installation
pip install .Or, for development with tests:
pip install -e ".[dev]"Usage with Claude Desktop
Add the server to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"docx-template": {
"command": "mcp-docx-template-server"
}
}
}The server uses stdio transport. Once configured, Claude can call analyze_template, extract_content, and fill_template.
Example flow
Analyze the template:
{
"template_path": "/path/to/SSIT_Template.docx"
}Extract content from the source document:
{
"content_path": "/path/to/NetApp_Content.docx"
}Fill the template:
{
"template_path": "/path/to/SSIT_Template.docx",
"content_mapping": {
"overview": "NetApp Cutover Dependency Mapper",
"business_challenge": "Business Challenge",
"body_1": "Long body paragraph...",
"solution_item_1": "Title\nBody text..."
},
"output_path": "/path/to/output.docx",
"convert_to_pdf": true
}Development
Run tests:
pytestLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
Generate PDF/DOCX/XLSX/PPTX from templates+JSON. Convert Office/HTML/MD to PDF. Universal templating
Generate HTML to PDF documents in bulk or single — raw replacements or based on conditions, loops
Real .docx and .xlsx files from structured data, with automatic Hebrew/Arabic RTL.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Word document generation from templates using Jinja2 syntax and parsing of DOCX, PDF, and Excel files to extract structured content, metadata, and text.161MIT
- FlicenseNot gradedqualityDmaintenanceEnables creation and management of Word documents from markdown content, with support for multiple templates and conversion of chat conversations to formatted Word documents.
- AlicenseBqualityDmaintenanceEnables comprehensive management of Microsoft Word documents with 30+ tools for reading, writing, formatting, template merging, image extraction, equation extraction, and style application.241MIT
- FlicenseBqualityCmaintenanceEnables creating professional Word documents from markdown or structured content with fast, customized formatting via natural language.71
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/AdityaNarendra-ssit/mcp-docx-template'
If you have feedback or need assistance with the MCP directory API, please join our Discord server