MCP server: convert PDF, DOCX, HTML, and URLs to clean, LLM-ready markdown
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add agentmd --env AGENTMD_API_KEY='<AGENTMD_API_KEY>' -- npx -y agentmd-mcp~/.codex/config.toml
[mcp_servers.agentmd]
command = "npx"
args = ["-y", "agentmd-mcp"]
env = { AGENTMD_API_KEY = "<AGENTMD_API_KEY>" }
# codex mcp add agentmd --env AGENTMD_API_KEY='<AGENTMD_API_KEY>' -- npx -y agentmd-mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentmd": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
],
"env": {
"AGENTMD_API_KEY": "<AGENTMD_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentmd": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
],
"env": {
"AGENTMD_API_KEY": "<AGENTMD_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentmd": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
],
"env": {
"AGENTMD_API_KEY": "<AGENTMD_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agentmd": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
],
"env": {
"AGENTMD_API_KEY": "<AGENTMD_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentmd": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
],
"env": {
"AGENTMD_API_KEY": "<AGENTMD_API_KEY>"
}
}
}
}Remote
claude mcp add --transport http agentmd https://www.getagentmd.com/api/mcp --header 'Authorization: <AUTHORIZATION>'~/.codex/config.toml
[mcp_servers.agentmd]
url = "https://www.getagentmd.com/api/mcp"
http_headers = { Authorization = "<AUTHORIZATION>" }
# codex mcp add agentmd --url https://www.getagentmd.com/api/mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentmd": {
"url": "https://www.getagentmd.com/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentmd": {
"type": "http",
"url": "https://www.getagentmd.com/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentmd": {
"httpUrl": "https://www.getagentmd.com/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"agentmd": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://www.getagentmd.com/api/mcp",
"--header",
"Authorization:<AUTHORIZATION>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentmd": {
"url": "https://www.getagentmd.com/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}Environment variables
AGENTMD_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.