docx-mcp
Allows converting Markdown text or files into Word documents with customizable themes and formatting.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@docx-mcp generate a Word document from my markdown notes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
docx-mcp
MCP server pro generování profesionálně formátovaných Word dokumentů (.docx). Podporuje firemní šablony (barvy, fonty, logo), záhlaví/zápatí a převod Markdownu.
Instalace
cd docx-mcp
npm installRelated MCP server: docx-forge-mcp
Přidání do Cursoru
Soubor ~/.cursor/mcp.json:
{
"mcpServers": {
"docx": {
"command": "node",
"args": ["/absolutní/cesta/k/docx-mcp/index.js"]
}
}
}Přidání do Claude Code
Soubor ~/.claude/mcp.json:
{
"mcpServers": {
"docx": {
"command": "node",
"args": ["/absolutní/cesta/k/docx-mcp/index.js"]
}
}
}Nástroje
create_document
Vytvoří Word dokument z pole bloků.
{
"title": "Název dokumentu",
"subtitle": "Podnadpis",
"author": "Vaše jméno",
"output_path": "/cesta/soubor.docx",
"theme_path": "~/.docx-mcp/themes/firma.json",
"theme": {
"primaryColor": "CC0000",
"font": "Calibri",
"headerText": "Firma s.r.o.",
"footerText": "Důvěrné",
"logoPath": "/cesta/k/logo.png"
},
"blocks": [
{ "type": "h1", "text": "Nadpis" },
{ "type": "p", "text": "Odstavec textu." },
{ "type": "bullet", "items": ["Bod 1", "Bod 2"] },
{ "type": "table", "headers": ["A", "B"], "rows": [["1", "2"]] },
{ "type": "callout", "title": "Tip", "text": "Text tipu.", "style": "info" }
]
}convert_markdown
Převede Markdown text nebo .md soubor na Word dokument.
{
"markdown": "# Nadpis\n\nText odstavce.\n\n- bod 1\n- bod 2",
"output_path": "/cesta/soubor.docx",
"theme_path": "~/.docx-mcp/themes/firma.json"
}Nebo ze souboru:
{
"markdown_path": "/cesta/k/dokument.md",
"output_path": "/cesta/soubor.docx"
}save_theme
Uloží šablonu pro opakované použití.
{
"name": "firma",
"theme": {
"primaryColor": "CC0000",
"accentColor": "FF6600",
"font": "Calibri",
"tableHeaderBg": "CC0000",
"headerText": "Firma s.r.o.",
"footerText": "Důvěrné",
"logoPath": "/cesta/k/logo.png"
}
}Uloží se do ~/.docx-mcp/themes/firma.json.
list_themes
Zobrazí seznam uložených šablon.
Šablona (theme) - všechny vlastnosti
Vlastnost | Výchozí | Popis |
|
| Barva H1 a titulku |
|
| Barva H2 a akcentů |
|
| Barva H3 |
|
| Barva textu |
|
| Název fontu |
|
| Velikost písma (half-points, 22=11pt) |
|
| Pozadí záhlaví tabulek |
|
| Text záhlaví tabulek |
|
| Barva sudých řádků |
| Text v záhlaví stránky | |
| Text v zápatí stránky | |
| Cesta k logu (PNG/JPG) |
Typy bloků
Typ | Popis |
| Nadpisy 1-3 |
| Odstavec (bold, italic, color, align) |
| Odrážkový seznam (víceúrovňový) |
| Číslovaný seznam (víceúrovňový) |
| Tabulka (headers + rows) |
| Barevný rámeček (info/warning/success/danger) |
| Prázdný řádek |
| Nová stránka |
Available Tools
4 toolsconvert_markdownA
Převede Markdown text nebo .md soubor na profesionálně formátovaný Word (.docx) dokument. Podporuje nadpisy, odstavce, seznamy, tabulky, kódové bloky a citace. Lze aplikovat firemní šablonu.
Inputs: theme, title, author, markdown, +3 more.
create_documentA
Vytvoří profesionálně formátovaný Word (.docx) dokument. Podporuje nadpisy, odstavce, odrážky, číslované seznamy, tabulky, callout boxy, záhlaví/zápatí s logem a firemní šablonu (theme).
Inputs: blocks (required), theme, title, author, +3 more.
list_themesA
Zobrazí seznam uložených šablon (themes) z ~/.docx-mcp/themes/
Inputs: no named parameters.
save_themeA
Uloží šablonu (theme) do JSON souboru pro opakované použití. Výchozí umístění: ~/.docx-mcp/themes/.json
Inputs: name (required), theme (required), output_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clear purpose: create_document and convert_markdown both produce .docx files but differ in input (structured content vs. Markdown), and save_theme/list_themes handle theme persistence. The only minor ambiguity is choosing between the two document-generation tools, but their descriptions clarify the distinction.
Tool names consistently use snake_case with a verb prefix, which is predictable. The slight deviation is convert_markdown, which names the input format rather than the output object, unlike the other verb_noun names.
Four tools is a well-scoped set for a focused docx creation server: two document-generation paths and two theme-management utilities. Each tool earns its place without redundancy or unnecessary bloat.
The server covers the core workflow of generating .docx files and managing reusable themes. Minor gaps exist, such as no delete_theme or ability to edit existing documents, but these are workable limitations rather than critical dead ends.
Maintenance
Related MCP Connectors
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
Generate PDF, Word (.docx) and PowerPoint (.pptx) documents from Markdown over MCP.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA FastMCP-powered microserver that allows users to programmatically generate well-formatted .docx documents with consistent styling, including features like titles, paragraphs, headings, citations, and footers.-
- AlicenseAqualityDmaintenanceMCP server for Word document (.docx) creation and manipulation — the production-grade document automation tool for AI agents.946 npmMIT
- AlicenseCqualityDmaintenanceA unified MCP server for document processing that enables creating, editing, and converting Word documents (DOCX), PDFs, Markdown, and images, with support for templates, formatting, and batch operations.100MIT
- AlicenseAqualityDmaintenanceMCP server for creating and reading Word (.docx) documents with rich formatting support.39 npmMIT