Convert Markdown to Word Inside Your AI Agent

MD2Doc's MCP server lets Claude Code, Cursor, Windsurf, and other AI agents convert markdown to Word documents directly — no browser, no copy-paste, no context switching.

claude mcp add --transport sse md2doc https://md2doc.com/mcp/sse

Free · No API key · Works instantly

Why Use MD2Doc via MCP?

The browser tool is great for one-off conversions. The MCP server is for developers and power users who work inside AI coding environments every day.

Zero Context Switching

Stay in Claude Code, Cursor, or Windsurf. Ask for a Word doc and get a download link without leaving your editor.

🤖

Fully Automated

Agents can convert markdown to Word as part of a larger task — writing documentation, generating reports, summarizing research — without any manual steps.

☁️

Nothing to Install Locally

The MCP server runs on md2doc.com. No binary, no Docker, no updates. Add the URL once and it just works — on every machine you use.

How It Works

1

Add the server once

Run the install command in your terminal. Takes 10 seconds. The URL is registered in your agent's config.

claude mcp add --transport sse md2doc https://md2doc.com/mcp/sse
2

Ask your agent naturally

No special syntax. Just describe what you want and the agent calls MD2Doc automatically.

"Convert this markdown to a Word file and save it to my Desktop"
3

Get a download link

MD2Doc converts the file server-side and returns a one-time download link. Valid for 10 minutes. Click and save.

https://md2doc.com/mcp/download/abc123

Installation by Agent

MD2Doc works with any MCP-compatible agent. Pick yours below.

Claude Code Recommended

Claude Code is Anthropic's official CLI. One command installs the server globally.

claude mcp add --transport sse md2doc https://md2doc.com/mcp/sse

Verify it's connected in any session with /mcp — md2doc should appear as connected.

Claude Desktop

Edit your Claude Desktop config file and add the md2doc server:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "md2doc": { "url": "https://md2doc.com/mcp/sse" } } }

Restart Claude Desktop after saving.

Cursor

Add MD2Doc to your global Cursor MCP config. Create or edit the file:

~/.cursor/mcp.json

{ "mcpServers": { "md2doc": { "url": "https://md2doc.com/mcp/sse" } } }

Or add to a .cursor/mcp.json in your project directory for project-scoped access.

Windsurf

Edit the Windsurf MCP config file:

~/.codeium/windsurf/mcp_config.json

{ "mcpServers": { "md2doc": { "url": "https://md2doc.com/mcp/sse" } } }

Reload Windsurf after saving the config.

Any MCP-compatible agent

MD2Doc uses standard MCP over SSE transport. Any agent that supports remote MCP servers can connect using this URL:

https://md2doc.com/mcp/sse

For JSON-based configs (Cline, Continue, Zed, etc.), add the server under "mcpServers" with "url": "https://md2doc.com/mcp/sse".

Available Tools

The MD2Doc MCP server exposes two tools your agent can call:

convert_to_docx

Converts markdown to a Microsoft Word (.docx) file. Returns a temporary download URL valid for 10 minutes.

{ "name": "convert_to_docx", "arguments": { "markdown": "# Title\n\nContent...", "filename": "my-report" } }

Returns: download URL + file size

preview_markdown

Converts markdown to an HTML preview showing exactly how the Word document will look. Useful for agents that need to verify output before downloading.

{ "name": "preview_markdown", "arguments": { "markdown": "# Title\n\nContent..." } }

Returns: HTML string

What to Ask Your Agent

Once MD2Doc is connected, you can ask for Word documents naturally. Here are prompts that work well:

  • Convert this markdown to a Word file and save it to my Desktop
  • Take the output from Claude and turn it into a .docx I can send to my team
  • Write a project proposal in markdown and download it as a Word document
  • Summarize this research and export it as a formatted Word file
  • Convert my README.md to a Word document for the client presentation
  • Generate meeting notes from this transcript and download as .docx

Technical Details

Protocol

MCP (Model Context Protocol) v2024-11-05 over HTTP+SSE transport. Fully compatible with the official MCP specification.

Endpoints

# SSE connection GET /mcp/sse # Send JSON-RPC messages POST /mcp/messages?sessionId=X # Download generated file GET /mcp/download/{id}

Performance

Typical conversion time is under 2 seconds for documents up to 100KB of markdown. Generated .docx files are stored for 10 minutes then automatically deleted.

Privacy

Markdown content is sent to md2doc.com for conversion and is not logged or retained. Download links are single-use and expire after 10 minutes.

MCP FAQ

What is MCP and why does it matter?

MCP (Model Context Protocol) is an open standard from Anthropic that lets AI agents connect to external tools and services. Instead of describing how to use a tool, agents call it directly — like a function call. This makes workflows faster, more reliable, and fully automated.

Do I need an API key?

No. The MD2Doc MCP server is free and open. Just add the server URL and start using it. No registration, no credit card.

Which agents support MCP with SSE transport?

Claude Code, Claude Desktop, Cursor, Windsurf, Cline, and any agent built on the MCP SDK. The SSE transport is the standard for remote MCP servers — if an agent supports remote MCP at all, it supports this format.

What file formats does MD2Doc produce?

The convert_to_docx tool produces a standard .docx file compatible with Microsoft Word 2010 and later, Google Docs, LibreOffice, and all major document editors.

What markdown features are supported?

Headers (H1–H6), bold, italic, strikethrough, ordered and unordered lists, tables, fenced code blocks, inline code, blockquotes, and hyperlinks. The same features as the web converter.

Is there a rate limit?

Currently there is no rate limit for reasonable use. The service is designed for developer workflows and individual use. If you need high-volume conversion, contact us.

Can I use this in my own application?

Yes. The REST API at https://md2doc.com/convert and https://md2doc.com/download-docx are also available for programmatic use. See LLM.md for full API documentation.

Ready to Add MD2Doc to Your Agent?

One command. Free. No sign-up required.

claude mcp add --transport sse md2doc https://md2doc.com/mcp/sse

Or use the browser converter if you just need a quick one-off conversion.

Need higher concurrency or hitting a "server busy" error? DM @kirillzubovsky on X — we'll set up a dedicated account for you.