mcp-docx-template
MCP DOCX テンプレートサーバー
スタイル付きのMicrosoft Wordテンプレートを複製し、別のドキュメントのコンテンツを埋め込むポータブルなMCPサーバーです。画像、レイアウト、フォント、色、段落スタイルを保持します。
ツール
サーバーは3つのツールを提供します:
analyze_template—.docxテンプレートを検査し、段落構造、画像、スタイル、コンテンツスキーマを返します。また、テンプレートの隣に<template>.docx.md記述子を書き込むため、繰り返しの参照(例:map_content_to_templateプロンプトによる)で再分析する必要がありません。extract_content— コンテンツ.docxから編集可能なテキストブロックを抽出します。fill_template— テンプレートを複製し、ラベルからテキストへのマッピングを使用して編集可能なテキストを置き換えます。オプションで結果をPDFに変換します。
Related MCP server: Word MCP Server
プロンプト
map_content_to_template—template_pathとcontent_pathが指定されると、テンプレートの.docx.md記述子(まだ存在しない場合は最初に分析して書き込みます)と抽出されたコンテンツを読み取り、content_mappingを構築するための指示メッセージを返します。アシスタントは、マッピングがあいまいな場合はユーザーに直接質問し、その後fill_templateを呼び出すように指示されます。
インストール
pip install .または、テスト付きの開発用:
pip install -e ".[dev]"Claude Desktopでの使用方法
サーバーをClaude Desktopの設定(claude_desktop_config.json)に追加します:
{
"mcpServers": {
"docx-template": {
"command": "mcp-docx-template-server"
}
}
}サーバーはstdioトランスポートを使用します。設定後、Claudeはanalyze_template、extract_content、fill_templateを呼び出せます。
使用例の流れ
テンプレートを分析:
{
"template_path": "/path/to/SSIT_Template.docx"
}ソースドキュメントからコンテンツを抽出:
{
"content_path": "/path/to/NetApp_Content.docx"
}テンプレートを埋める:
{
"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
}開発
テストを実行:
pytestライセンス
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