AgentMD

io.github.djrobson5由 GitHub 账号 djrobson5 发布v0.1.4更新于 Oct 24, 2026

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

已验证Streamable HTTP可网页运行网页搜索与抓取文件与存储

概览

AI 生成的概览

AgentMD 把 PDF、DOCX、HTML 和网页 URL 转换成干净、适合大模型阅读的 Markdown,并保留表格,让助手能读取原本难以解析的文档。

可以做什么
把网页或 http(s) 链接上的文档转换为 Markdown,提取正文、把链接解析为绝对地址,并以 GFM 表格保留表格。把已有的文档(PDF、DOCX、HTML、纯文本)以 base64 内容传入后转换为 Markdown。只读取大文档的一部分:PDF 页码范围、标题大纲、单个章节或 token 上限。返回的 Markdown 前会附上识别出的标题和警告信息。
适用场景
适合助手需要读取 PDF、Word 文件或网页,而原始格式难以被模型直接理解的场景。适用于重视表格和正文结构的研究、摘要和内容提取任务。
运行要求
可使用服务商的远程端点(streamable HTTP,需 Authorization bearer 头),或通过 npx 或 Docker 以 stdio 运行本地 npm 包 agentmd-mcp。必须提供 AgentMD API 密钥,通过 AGENTMD_API_KEY 或 Authorization 头传入。AGENTMD_BASE_URL 可选,用于指向自建或测试环境。需要网络访问。
安装前请注意
API 密钥是发送给服务商的机密,请勿写入共享配置或镜像。提交的文档和 URL 会由第三方服务处理,避免上传机密材料。按用量计费:每个邮箱 50 次免费转换,之后每次成功转换 0.002 美元,按月结算。扫描件或纯图片 PDF 只返回警告,不做 OCR。单个文档上限 25 MB。

安装

在 SourceWeft 中

  1. 打开 控制台中的 AgentMD,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.djrobson5%2Fagentmd/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "agentmd": {
      "type": "http",
      "url": "https://www.getagentmd.com/api/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

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:

bash
curl -X POST https://www.getagentmd.com/api/v1/keys/free \  -H "Content-Type: application/json" -d '{"email": "[email protected]"}'

Then:

Claude Code

bash
claude mcp add agentmd --env AGENTMD_API_KEY=<your-key> -- npx -y agentmd-mcp

Any MCP client (mcp.json / claude_desktop_config.json):

json
{  "mcpServers": {    "agentmd": {      "command": "npx",      "args": ["-y", "agentmd-mcp"],      "env": { "AGENTMD_API_KEY": "<your-key>" }    }  }}

Docker

bash
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:

json
{  "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:

bash
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.

来源:README.md,提交 ee199de

工具

2

convert_url_to_markdown

Convert URL to markdown

Fetch a URL (web page, PDF, DOCX, etc.) and convert it to clean, LLM-ready markdown. Extracts the main article content from web pages and preserves tables. Supports reading only part of a large document: PDF page ranges, a heading outline, a single section, or a token cap.

输入参数url必填modepagessectionmaxTokens

convert_document_to_markdown

Convert document to markdown

Convert a document you already have (PDF, DOCX, HTML, plain text) to clean, LLM-ready markdown. Pass the file contents as base64. Supports reading only part of a large document: PDF page ranges, a heading outline, a single section, or a token cap.

输入参数modepagesbase64必填sectionfilenamemaxTokens

版本历史

2
  1. v0.1.4最新Sep 16, 2026
  2. v0.1.1Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分