AgentMD

السجل الرسمي الإنتاجية

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http agentmd 'https://www.getagentmd.com/api/mcp' --header 'Authorization: <Bearer <your AgentMD API key>>'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "agentmd": {
            "type": "http",
            "url": "https://www.getagentmd.com/api/mcp",
            "headers": {
                "Authorization": "<Bearer <your AgentMD API key>>"
            }
        }
    }
}
NPM package agentmd-mcp
Claude Code
claude mcp add agentmd -e 'AGENTMD_API_KEY=<your agentmd_api_key>' -e 'AGENTMD_BASE_URL=<AGENTMD_BASE_URL>' -- npx -y agentmd-mcp@0.1.4
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "agentmd": {
            "command": "npx",
            "args": [
                "-y",
                "agentmd-mcp@0.1.4"
            ],
            "env": {
                "AGENTMD_API_KEY": "<your agentmd_api_key>",
                "AGENTMD_BASE_URL": "<AGENTMD_BASE_URL>"
            }
        }
    }
}

متغيرات البيئة

  • AGENTMD_API_KEY إلزامي سري API key from https://www.getagentmd.com
  • AGENTMD_BASE_URL Override the API base URL (self-hosting or staging)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. agentmd-mcp
  2. Install
  3. Tools
  4. Supported formats
  5. Configuration
  6. Pricing
  7. License

agentmd-mcp

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.

Install

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>"

Tools

ToolUse it for
convert_url_to_markdownA web page or a document at an http(s) URL
convert_file_to_markdownA document on the local filesystem, by path
convert_document_to_markdownDocument bytes you already hold, as base64

All three return markdown, prefixed with the detected title and any warnings.

Supported formats

  • PDF — text extraction (scanned/image-only PDFs return a warning; OCR is on the roadmap)
  • DOCX — headings, lists, and tables preserved
  • HTML / URLs — main-article extraction, GFM tables, links resolved to absolute URLs
  • Markdown / plain text — normalized passthrough

Limit: 25 MB per document.

Configuration

VariableRequiredPurpose
AGENTMD_API_KEYyesYour API key
AGENTMD_BASE_URLnoPoint at a different deployment (self-hosting, staging)

Pricing

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.

License

MIT (this client shim). The hosted service has its own terms.

الأسئلة الشائعة

ما هو AgentMD؟

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

كيف أثبّت AgentMD؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http agentmd 'https://www.getagentmd.com/api/mcp' --header 'Authorization: <Bearer <your AgentMD API key>>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج AgentMD إلى مفتاح API؟

نعم. يتطلب AGENTMD_API_KEY, Authorization، وتضبطها في إعداداته.

هل AgentMD مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون AgentMD؟

ينشره djrobson5. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.