# mdtidy.com

> mdtidy.com is an MCP server for files and documents. Cleans and converts AI-generated Markdown into HTML, PDF, DOCX or PNG via MCP. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Platforms:** API, CLI, Web
- **MCP Registry name:** com.mdtidy/mcp
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-27

## About

Language models often produce Markdown that breaks when rendered or exported. This server gives AI clients tools to tidy that output, repair malformed syntax, and convert it into HTML, PDF, Word (DOCX) or PNG files.

It runs either locally over stdio through an npm package that needs an mdtidy API key, or as a remote endpoint over streamable HTTP. Documents can be saved and shared once converted, so an assistant can hand back a finished file rather than raw text.

It suits developers wiring document generation into agent workflows, and anyone whose assistant writes reports, notes or docs that need to leave the chat window in a clean format.

## Features

- **Markdown cleanup:** Repairs malformed or inconsistent Markdown produced by language models.
- **Multi-format conversion:** Exports content to HTML, PDF, DOCX or PNG.
- **Document saving and sharing:** Stores converted documents so they can be shared by link.
- **Local stdio mode:** Runs as an npm package launched by a local MCP client with an API key.
- **Remote HTTP endpoint:** Offers a streamable HTTP transport for hosted MCP connections.

## Good for

- Turning an assistant's Markdown answer into a formatted PDF report
- Exporting generated documentation to Word for editing
- Producing PNG snapshots of rendered Markdown for slides or posts
- Sharing a converted document with a colleague through a link

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http mcp https://www.mdtidy.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://www.mdtidy.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://www.mdtidy.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --url https://www.mdtidy.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
url = "https://www.mdtidy.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "httpUrl": "https://www.mdtidy.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http mcp https://www.mdtidy.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://www.mdtidy.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://www.mdtidy.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "streamableHttp",
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://www.mdtidy.com/mcp
```

Enter a Name (for example "mdtidy.com"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://www.mdtidy.com/mcp"
    }
  }
}
```

## FAQ

### How do I authenticate the server?

The local package reads an MDTIDY_API_KEY environment variable; keys start with mt_live_ or mt_test_ and are created in the mdtidy account settings.

### Can I point the server at a different API host?

Yes, the MDTIDY_BASE_URL variable overrides the default base URL of https://mdtidy.com.

### How do I add mdtidy.com to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp https://www.mdtidy.com/mcp

### What are the best alternatives to mdtidy.com?

The closest alternatives to mdtidy.com are Markdown to HTML Got Simplified, Markdown Formatter, Aigroup Mdtoword MCP, Html To Markdown MCP and Mdmagic MCP Server.

## Where this comes from

- Description: written from its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Markdown to HTML Got Simplified](https://ai-powered.com/mcp/markdown-to-html-got-simplified): Markdown to HTML Got Simplified is a freemium MCP server for files and documents.
- [Markdown Formatter](https://ai-powered.com/mcp/markdown-formatter): Markdown Formatter is an open-source MCP server for files and documents.
- [Aigroup Mdtoword MCP](https://ai-powered.com/mcp/aigroup-mdtoword-mcp): Aigroup Mdtoword MCP is an open-source MCP server for files and documents.
- [Html To Markdown MCP](https://ai-powered.com/mcp/html-to-markdown-mcp): Html To Markdown MCP is an open-source MCP server for files and documents.
- [Mdmagic MCP Server](https://ai-powered.com/mcp/mdmagic-mcp-server): Mdmagic MCP Server is a freemium MCP server for files and documents.
- [stagenth · 文档生成](https://ai-powered.com/mcp/stagenth-3): stagenth · 文档生成 is an MCP server for files and documents.
- [inktomd MCP Server](https://ai-powered.com/mcp/inktomd-mcp-server): inktomd MCP Server is an MCP server for files and documents.
- [Doc To Markdown](https://ai-powered.com/mcp/doc-to-markdown): Doc To Markdown is an MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/mdtidy-com
