Mdmagic MCP Server logo

Mdmagic MCP Server

Converts Markdown into branded DOCX, PDF, or HTML files using built-in or uploaded Word templates.

Install Mdmagic MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mdmagic-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@mdmagic/mcp-server@latest"
      ],
      "env": {
        "MDMAGIC_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @mdmagic/mcp-server@latest

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The mdmagic-mcp-server MCP server converts Markdown into DOCX, PDF, HTML, or all three through the MDMagic API. It can apply built-in templates or custom Word templates, accept Markdown strings, local files, or base64 content, and return secure temporary download URLs. Supporting tools validate Markdown, estimate credit usage, inspect templates, and check account status. Use it when an AI workflow needs formatted documents that follow an existing brand or document design.

Use cases

  • Convert Markdown reports into branded PDF files
  • Render documentation as DOCX and HTML
  • Validate Markdown before document generation
  • Estimate credits before applying a custom template

Key features

  • Markdown conversion to DOCX, PDF, and HTML
  • Custom Word template support
  • Built-in template catalog and recommendations
  • Markdown validation before conversion
  • Credit balance and cost estimation
  • Secure expiring download URLs

Tools10

What Mdmagic MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~255 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/30 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · @mdmagic/mcp-server@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads419Package downloads in the last 30 days.
Last commit6mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed10Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Mdmagic MCP Server works

What mdmagic-mcp-server MCP server does

The mdmagic-mcp-server MCP server connects an MCP-compatible AI assistant to MDMagic's document conversion service. It turns Markdown into DOCX, PDF, HTML, or a combined set of outputs. Conversion can use one of 15 built-in templates or a custom Word template uploaded to the MDMagic account. Custom templates are intended for documents such as letterhead, branded reports, contracts, proposals, or other Word-based layouts.

The conversion result includes a secure, time-limited download URL. The server also exposes account and template information so an assistant can inspect available designs before rendering a document.

How it works

The convert_document tool accepts Markdown as a string, an absolute path to a .md file, or base64-encoded file content. Optional conversion settings include the template, output type, page size, and orientation. Supported page sizes are A4, A3, US Letter, US Legal, and Executive; orientations are Portrait and Landscape.

Before conversion, validate_markdown can identify issues such as malformed tables or unfinished code fences. estimate_conversion_cost provides a credit estimate based on document size, page count, output format, and template type. This is useful because conversions consume credits and custom templates add an additional per-page charge.

The service uses Microsoft Graph for PDF rendering. According to the project documentation, source and output files are not permanently stored: source files are deleted within roughly 5–10 seconds, while output files are removed after download or 60 minutes. Download links are one-time URLs with session and token values rather than public file paths.

Setup and configuration

The mdmagic-mcp-server MCP server can run locally through npx using the stdio transport or connect to the hosted Streamable HTTP endpoint at https://api.mdmagic.ai/mcp. A MDMagic account and MDMAGIC_API_KEY are required. The key is supplied in the MCP client's environment configuration for local use, or as the x-api-key header when using the hosted endpoint.

Optional settings include MDMAGIC_BASE_URL for another API endpoint, REQUEST_TIMEOUT for request duration, MCP_TRANSPORT to select stdio or HTTP, and MCP_HTTP_PORT and MCP_HTTP_HOST for self-hosted HTTP mode. The documented default HTTP port is 3001 and the default bind address is 127.0.0.1.

The README provides configurations for Claude Desktop, Cursor, and VS Code with an MCP extension. Local development uses Node.js package installation, a build command, the MCP Inspector, and the project test command.

Tools and capabilities

  • convert_document renders Markdown as DOCX, PDF, HTML, or all formats and returns a temporary download URL.
  • validate_markdown checks source Markdown before rendering.
  • estimate_conversion_cost previews expected credit usage.
  • check_credit_balance reports subscription credits, purchased pools, and plan status.
  • list_all_templates, list_builtin_templates, and list_custom_templates inspect available designs.
  • get_template_details shows page-size and orientation variants for a template.
  • recommend_template suggests a built-in template from a described document purpose.
  • show_default_settings reports default page, orientation, and template choices.

The built-in collection is organized into Business, Creative, Professional, and Technical categories. Credit use depends on pages and formats: DOCX has a base per-page cost, PDF and HTML add per-page costs, and custom templates add another per-page cost. The estimate tool should be used for exact totals.

Limitations and notes

An API key and sufficient credits are needed for conversion. The server refuses a conversion when the available balance is too low. It depends on access to the MDMagic API unless configured for a local or staging endpoint, so network or firewall restrictions can prevent operation.

The hosted option avoids installing Node locally but requires an MCP client that supports Streamable HTTP. Local operation uses the stdio transport by default. Template selection is limited to the built-in catalog and custom templates available through the associated MDMagic account.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mdmagic MCP Server

mdmagic-mcp-server is an MCP server that connects AI assistants to the MDMagic document conversion API. Its main tools convert Markdown into DOCX, PDF, or HTML, validate Markdown, estimate credit costs, check balances, and browse built-in or custom Word templates for document rendering.

Install it through an MCP client with `npx -y @mdmagic/mcp-server@latest` and set `MDMAGIC_API_KEY` in the client's environment configuration.

Yes, mdmagic-mcp-server works with Cursor. Add its `npx` command and `MDMAGIC_API_KEY` to `~/.cursor/mcp.json`, or configure the server through Cursor's MCP settings, then restart or reload the client as needed.

Use `convert_document` with Markdown content, `outputFormat` set to `pdf`, and `templateName` set to a built-in template or custom template UUID. You can also specify page size and orientation; the tool returns a secure, expiring download URL.

Use `estimate_conversion_cost` before `convert_document`. It calculates an estimate from word count, page count, requested format, and template type, while `check_credit_balance` shows available credits and plan information.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMdmagic MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mdmagic-mcp-server?style=directory)](https://allmcps.com/mcp/mdmagic-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/mdmagic-mcp-server"><img src="https://allmcps.com/api/badge/mdmagic-mcp-server?style=directory" alt="Mdmagic MCP Server on AllMCPs" /></a>