Skip to main content
Glama

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 install

Related 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

primaryColor

1F3864

Barva H1 a titulku

accentColor

2E75B6

Barva H2 a akcentů

h3Color

404040

Barva H3

textColor

000000

Barva textu

font

Arial

Název fontu

fontSize

22

Velikost písma (half-points, 22=11pt)

tableHeaderBg

1F3864

Pozadí záhlaví tabulek

tableHeaderText

FFFFFF

Text záhlaví tabulek

tableStripe

F5F9FF

Barva sudých řádků

headerText

Text v záhlaví stránky

footerText

Text v zápatí stránky

logoPath

Cesta k logu (PNG/JPG)

Typy bloků

Typ

Popis

h1 / h2 / h3

Nadpisy 1-3

p

Odstavec (bold, italic, color, align)

bullet

Odrážkový seznam (víceúrovňový)

numbered

Číslovaný seznam (víceúrovňový)

table

Tabulka (headers + rows)

callout

Barevný rámeček (info/warning/success/danger)

spacer

Prázdný řádek

pagebreak

Nová stránka

Available Tools

4 tools
convert_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.

ParametersJSON Schema
NameRequiredDescriptionDefault
themeNoŠablona dokumentu - firemní barvy, font, záhlaví/zápatí, logo. Všechny barvy hex bez #.
titleNoNadpis dokumentu (pokud není, vezme se z prvního # nadpisu)
authorNoAutor
markdownNoMarkdown text k převodu
theme_pathNoCesta k JSON souboru se šablonou
output_pathNoCesta pro uložení. Výchozí: ~/Desktop/<title>.docx
markdown_pathNoCesta k .md souboru

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full behavioral burden. It discloses the core action (creates a new .docx from Markdown), dual input modes (text or file path), and optional template application. It does not disclose edge behaviors such as what happens when both markdown and markdown_path are supplied, overwrite behavior for existing files, or what the function returns on success.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short clauses, each carrying a distinct piece of information: core conversion, supported elements, and optional template. The main action is front-loaded in the first sentence with zero filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 7 parameters (including a deeply nested theme object), no annotations, and no output schema, the description covers the primary behavior and supported features but omits integration-level context: how theme input relates to save_theme, how conflicting inputs are resolved, and what the success/error return looks like. It is minimally viable but has meaningful gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 7 parameters and the nested theme object. The description adds modest value by confirming which markdown constructs are supported (relevant to the markdown param) and that a template can be applied (relevant to theme/theme_path), but it does not go beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb+resource pair: converting Markdown text or .md files into a professionally formatted Word (.docx) document, and enumerates supported content types (headings, paragraphs, lists, tables, code blocks, quotes). This clearly distinguishes it from siblings like save_theme and list_themes, which are about theme management rather than document conversion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage context is implied: use this when you have Markdown content and want a Word output, optionally with a corporate template. However, the description gives no explicit guidance on when to prefer this over create_document, nor does it mention exclusions or prerequisites, leaving the routing decision to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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).

ParametersJSON Schema
NameRequiredDescriptionDefault
themeNoŠablona dokumentu - firemní barvy, font, záhlaví/zápatí, logo. Všechny barvy hex bez #.
titleNoHlavní nadpis dokumentu (titulní strana)
authorNoAutor / firma
blocksYesBloky obsahu dokumentu
subtitleNoPodnadpis
theme_pathNoCesta k JSON souboru se šablonou (theme)
output_pathNoCesta pro uložení. Výchozí: ~/Desktop/<title>.docx

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the behavioral disclosure burden. It clearly reveals the main side effect, creating a formatted .docx document, and mentions theme, logo, and header/footer handling. However, it does not describe output path behavior, overwrite semantics, return value, or failure modes, leaving some operational behavior implicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that leads with the action and resource, then lists supported features in a compact, informative sequence. Every phrase adds orientation value, and there is no redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, nested block schema, theme object, and lack of an output schema, the one-sentence description provides a useful overview but leaves operational context implicit. It does not clarify expected behavior around output_path, the relationship between theme and theme_path, or what the caller should expect as a result. The rich input schema compensates for part of this gap, but not all of it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all seven parameters are already documented in the input schema. The description adds a high-level framing for blocks and themes, but it does not provide parameter-level meaning beyond what the schema already states, matching the baseline for full schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Vytvoří') and resource ('Word (.docx) dokument'), then lists the supported content types such as headings, paragraphs, lists, tables, callouts, and header/footer with logo and theme. This clearly defines the tool's function and distinguishes it from siblings like convert_markdown, save_theme, and list_themes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for generating .docx files from structured blocks, but it does not explicitly state when to prefer it over convert_markdown or when not to use it. No exclusions, prerequisites, or alternative routing are mentioned, so the agent must infer the boundary from sibling tool names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_themesA

Zobrazí seznam uložených šablon (themes) z ~/.docx-mcp/themes/

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations, so the description carries the behavioral disclosure burden. It reveals the operation is a read-only listing and specifies the source directory (~/.docx-mcp/themes/). It does not mention edge cases like missing directory, but for a zero-parameter list tool this is adequate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is one short, front-loaded sentence containing exactly the needed information: what is listed, the resource type, and the storage location. No wasted words or redundant restating of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple zero-parameter list tool with no output schema, the description is complete: it tells the agent the action and the data source. The result is implied to be a list of themes. Nothing essential is missing for a correct call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so the empty schema fully covers the parameter space. The description correctly does not invent parameter guidance. A score of 4 reflects the 0-param baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Zobrazí seznam' - displays a list) and the resource (saved themes from ~/.docx-mcp/themes/). This distinguishes it from sibling tools like save_theme, which writes rather than reads, and document creation/convertion tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage context is clear: this tool should be used when you need to see the list of already saved themes. Since there is no alternative 'list' sibling, explicit exclusion is not critical, though it does not name alternatives or state when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

save_themeA

Uloží šablonu (theme) do JSON souboru pro opakované použití. Výchozí umístění: ~/.docx-mcp/themes/.json

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesNázev šablony, např. 'firma', 'report'
themeYesŠablona dokumentu - firemní barvy, font, záhlaví/zápatí, logo. Všechny barvy hex bez #.
output_pathNoVlastní cesta pro uložení JSON souboru

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry behavioral transparency. It discloses the default save location (~/.docx-mcp/themes/<name>.json), which is useful. However, it does not clarify whether existing files are overwritten, whether directories are created, or what errors occur, leaving behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that leads with the verb and resource, immediately stating the core purpose and default location. It contains no filler and is easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a nested `theme` object and an optional `output_path`, but the description ignores `output_path` and does not explain overwrite behavior or return values. The schema covers both parameters, which helps, but without annotations and output schema, a bit more context would be needed for fully confident use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds minimal parameter-related context beyond the schema (only that `name` determines the default path). It does not enrich understanding of `theme` or `output_path`, but the schema already documents them thoroughly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action ('Uloží šablonu') with a resource ('theme') and target format ('JSON soubor'), plus the purpose 'pro opakované použití' (for reuse). This distinguishes it from siblings like create_document, convert_markdown, and list_themes, which serve different functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'pro opakované použití' implies when to use the tool (persisting a theme for later), but it provides no explicit when-not-to-use guidance or alternatives. It does not mention list_themes as the complement for retrieving saved themes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updatesv1.0.0
    • First observedconvert_markdown
    • First observedcreate_document
    • First observedlist_themes
    • First observedsave_theme

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers