Convert PDF, DOCX, HTML, and URLs to clean, LLM-ready markdown with tables preserved
MCP server for AgentMD — convert PDF, DOCX, HTML, and URLs into clean, LLM-ready markdown, with tables preserved and web-page boilerplate stripped.
Agents ingest documents constantly, and most document formats are hostile to language models. This gives your agent three tools that turn any of them into markdown it can actually read.
Get a free API key (50 conversions, no card) at https://www.getagentmd.com — or fully programmatically:
curl -X POST https://www.getagentmd.com/api/v1/keys/free \
-H "Content-Type: application/json" -d '{"email": "you@example.com"}'
Then:
Claude Code
claude mcp add agentmd --env AGENTMD_API_KEY=<your-key> -- npx -y agentmd-mcp
Any MCP client (mcp.json / claude_desktop_config.json):
{
"mcpServers": {
"agentmd": {
"command": "npx",
"args": ["-y", "agentmd-mcp"],
"env": { "AGENTMD_API_KEY": "<your-key>" }
}
}
}
Docker
docker build -t agentmd-mcp .
docker run -i --rm -e AGENTMD_API_KEY=<your-key> agentmd-mcp
The image runs the stdio server, so pass -i; the API key is supplied at run time with -e rather than baked into the image. To wire the container into an MCP client:
{
"mcpServers": {
"agentmd": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "AGENTMD_API_KEY", "agentmd-mcp"],
"env": { "AGENTMD_API_KEY": "<your-key>" }
}
}
}
Remote (no install) — the hosted server speaks streamable HTTP directly:
claude mcp add --transport http agentmd https://www.getagentmd.com/api/mcp \
--header "Authorization: Bearer <your-key>"
| Tool | Use it for |
|---|---|
convert_url_to_markdown | A web page or a document at an http(s) URL |
convert_file_to_markdown | A document on the local filesystem, by path |
convert_document_to_markdown | Document bytes you already hold, as base64 |
All three return markdown, prefixed with the detected title and any warnings.
Limit: 25 MB per document.
| Variable | Required | Purpose |
|---|---|---|
AGENTMD_API_KEY | yes | Your API key |
AGENTMD_BASE_URL | no | Point at a different deployment (self-hosting, staging) |
First 50 conversions free (per email, no card). After that, $0.002 per successful conversion, billed monthly. No per-seat licensing — you pay for calls your agents actually make.
MIT (this client shim). The hosted service has its own terms.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y agentmd-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-djrobson5-agentmd": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceAgentMD works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.