AgentMD
Convert PDF, DOCX, HTML, and URLs to clean, LLM-ready markdown with tables preserved
我该使用它吗
质量与安全性
A
基于对工具定义和协议合规性的自动分析。
上下文开销
~835token 数(工具定义)
~4.0 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.65%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"agentmd": {
"command": "npx",
"args": [
"agentmd-mcp"
]
}
}
}可运行的软件包
npmagentmd-mcp
0.1.4stdio远程端点
https://www.getagentmd.com/api/mcpstreamable-http它能做什么
工具清单
工具(2)
🟢 只读🟡 写入🔴 删除⚪ 未知
🟢convert_url_to_markdown(url, pages, mode, section, maxTokens)
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.
输入模式
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The http(s) URL of the document or page to convert"
},
"pages": {
"description": "PDFs only: 1-indexed, inclusive page ranges to convert, e.g. \"1-3,5,8-\" (an open-ended range runs to the last page). Ignored with a warning for non-PDF formats.",
"type": "string"
},
"mode": {
"description": "\"full\" (default) returns the document body. \"outline\" returns just the heading tree — each line is `- [#3] Heading text (~120 tokens)`. For a long document, call with mode: 'outline' first, then fetch only what you need with section: '#3' or a heading title.",
"type": "string",
"enum": [
"full",
"outline"
]
},
"section": {
"description": "Return only one section: either \"#<n>\" using the index from a mode: 'outline' call (e.g. '#3'), or the heading text itself (case-insensitive; exact match wins, then prefix, then substring). Ignored when mode is 'outline'.",
"type": "string"
},
"maxTokens": {
"description": "Cap the returned markdown at roughly this many tokens, cutting at a paragraph boundary. When the output is cut, the result starts with a `> Truncated: ~X of ~Y tokens` line — narrow with pages or section rather than raising this.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"url"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}⚪convert_document_to_markdown(base64, filename, pages, mode, section, ...)
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.
输入模式
{
"type": "object",
"properties": {
"base64": {
"type": "string",
"description": "Base64-encoded file contents"
},
"filename": {
"description": "Original filename, e.g. report.pdf — helps format detection",
"type": "string"
},
"pages": {
"description": "PDFs only: 1-indexed, inclusive page ranges to convert, e.g. \"1-3,5,8-\" (an open-ended range runs to the last page). Ignored with a warning for non-PDF formats.",
"type": "string"
},
"mode": {
"description": "\"full\" (default) returns the document body. \"outline\" returns just the heading tree — each line is `- [#3] Heading text (~120 tokens)`. For a long document, call with mode: 'outline' first, then fetch only what you need with section: '#3' or a heading title.",
"type": "string",
"enum": [
"full",
"outline"
]
},
"section": {
"description": "Return only one section: either \"#<n>\" using the index from a mode: 'outline' call (e.g. '#3'), or the heading text itself (case-insensitive; exact match wins, then prefix, then substring). Ignored when mode is 'outline'.",
"type": "string"
},
"maxTokens": {
"description": "Cap the returned markdown at roughly this many tokens, cutting at a paragraph boundary. When the output is cut, the result starts with a `> Truncated: ~X of ~Y tokens` line — narrow with pages or section rather than raising this.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"base64"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社区
证据
最近观测
已验证未记录版本2 个工具
已验证未记录版本2 个工具
已验证未记录版本2 个工具