AgentMD

v0.1.4
io.github.djrobson5/agentmd Checked 23 hours ago Published 2 months ago

Convert PDF, DOCX, HTML, and URLs to clean, LLM-ready markdown with tables preserved

Values you need

VariableWhat it is
AGENTMD_API_KEYrequired secret API key from https://www.getagentmd.com
AGENTMD_BASE_URLoptional Override the API base URL (self-hosting or staging)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add agentmd -e 'AGENTMD_API_KEY=<AGENTMD_API_KEY>' -- npx -y agentmd-mcp@0.1.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "agentmd": {
      "args": [
        "-y",
        "agentmd-mcp@0.1.4"
      ],
      "command": "npx",
      "env": {
        "AGENTMD_API_KEY": "<AGENTMD_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agentmd": {
      "args": [
        "-y",
        "agentmd-mcp@0.1.4"
      ],
      "command": "npx",
      "env": {
        "AGENTMD_API_KEY": "<AGENTMD_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AGENTMD_API_KEY",
      "id": "agentmd-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "agentmd": {
      "args": [
        "-y",
        "agentmd-mcp@0.1.4"
      ],
      "command": "npx",
      "env": {
        "AGENTMD_API_KEY": "${input:agentmd-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agentmd]
command = "npx"
args = ["-y", "agentmd-mcp@0.1.4"]
env = { "AGENTMD_API_KEY" = "<AGENTMD_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http agentmd https://www.getagentmd.com/api/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "agentmd": {
      "args": [
        "-y",
        "mcp-remote",
        "https://www.getagentmd.com/api/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agentmd": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://www.getagentmd.com/api/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "agentmd": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://www.getagentmd.com/api/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agentmd]
command = "npx"
args = ["-y", "mcp-remote", "https://www.getagentmd.com/api/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: AGENTMD_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: convert_url_to_markdown, convert_file_to_markdown, convert_document_to_markdown.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json