npm agentmd-mcpstreamable-httpMITupdated 7d ago
MCP server for AgentMD — convert PDF, DOCX, HTML, and URLs into clean, LLM-ready markdown, with tables preserved and web-page boilerplate stripped.
agentmd 能做什么?
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>" }
}
}
}
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
| Tool | Use it for |
|---|---|
convert_url_to_markdown |
A web page or a document at an http(s) URL |
convert_file_to_markdown |
A document on the local filesystem, by path |
convert_document_to_markdown |
Document 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
| Variable | Required | Purpose |
|---|---|---|
AGENTMD_API_KEY |
yes | Your API key |
AGENTMD_BASE_URL |
no | Point 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 添加到你的客户端。选择你正在使用的那个。
{
"servers": {
"agentmd-mcp": {
"type": "http",
"url": "https://www.getagentmd.com/api/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add agentmd-mcp -- npx -y agentmd-mcpcodex mcp add agentmd-mcp -- npx -y agentmd-mcpamp mcp add agentmd-mcp -- npx -y agentmd-mcp{
"mcpServers": {
"agentmd-mcp": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"agentmd-mcp": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"agentmd-mcp": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"agentmd-mcp": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"agentmd-mcp": {
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"agentmd-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"agentmd-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"agentmd-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"agentmd-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y agentmd-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
3 个工具
agentmd 向已连接的智能体提供 3 个工具。
- convert_url_to_markdown
- A web page or a document at an http(s) URL
- convert_file_to_markdown
- A document on the local filesystem, by path
- convert_document_to_markdown
- Document bytes you already hold, as base64
评分
73 / 100
良好
- 文档22/25
- 维护19/25
- 可信度13/20
- 能力4/15
- 安装体验15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 0 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 3 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.1.1最新 | 2026年8月31日 |