Agentfetch MCP server
Token-budgeted web fetch for AI agents — auto-routes Jina, FireCrawl, Trafilatura, PDF.
3 stars40 downloads/wk
Reviews
Write oneNobody has reviewed Agentfetch yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Agentfetch tools (4)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
estimate_tokensEstimate token count of a URL's content WITHOUT fetching the body.
fetch_multipleFetch up to 20 URLs concurrently. Each result is the same shape as fetch_url.
fetch_urlFetch any URL and return clean, LLM-ready Markdown with token count, metadata, and 6h caching.
search_and_fetchWeb search + fetch top results in one call.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan22 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 113 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Agentfetch compares
Against every graded Scraping and browsing MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 72/100
- higher than 38% of 867 Scraping and browsing servers
- Tools
- 4
- the typical Scraping and browsing server has 6
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 3
- more than 70% of 584 Scraping and browsing servers
- Downloads a week
- 40
- more than 20% of 312 Scraping and browsing servers with a package
What its tools let an agent do: 4 read
Install Agentfetch in Claude Code, Cursor or VS Code
claude mcp add agentfetch -- uvx agentfetch-mcp
What the publisher says
From the Agentfetch repository's README, as published. We do not edit it. Read it on GitHub
agentfetch-mcp
<!-- mcp-name: io.github.bch1212/agentfetch -->
Web intelligence for AI agents — an MCP server that fetches URLs with token estimation, smart caching, and intelligent routing built in.
AgentFetch sits between your agent and the open web. Instead of integrating Jina, FireCrawl, pypdf, and your own caching layer separately, agents call one MCP tool and AgentFetch handles routing, caching, token budgeting, and clean Markdown extraction automatically.
This repository contains the open-source MCP server. For the hosted API + dashboard + billing, see www.agentfetch.dev.
What it does
Under the hood, AgentFetch routes URLs to the cheapest effective fetcher:
- Trafilatura (free, local) for ~70% of standard web pages
- Jina Reader for the rest of HTML
- FireCrawl for JS-heavy pages (Twitter/X, LinkedIn, Notion, etc.)
- pypdf for PDFs (zero external cost)
Cache is Redis with a 6-hour TTL; you can bring your own or run without caching.
Quick start
Install from PyPI
pip install agentfetch-mcpOr clone and install locally
git clone https://github.com/bch1212/agentfetch-mcp
cd agentfetch-mcp
pip install -e .Set environment variables
Get a free Jina Reader key at jina.ai (1M tokens/mo free tier). FireCrawl is optional but recommended for JS-heavy pages.
export JINA_API_KEY=jina_xxx
export FIRECRAWL_API_KEY=fc-xxx # optional
export REDIS_URL=redis://localhost:6379 # optionalAdd to Claude Desktop or Claude Code
Edit your MCP config (~/Library/Application Support/Claude/claudedesktopconfig.json on macOS, or run claude mcp add in Claude Code):
{
"mcpServers": {
"agentfetch": {
"command": "python",
"args": ["-m", "agentfetch.mcp.server"],
"env": {
"JINA_API_KEY": "jina_xxx",
"FIRECRAWL_API_KEY": "fc-xxx"
}
}
}
}Restart Claude. The four tools (fetchurl, estimatetokens, fetchmultiple, searchand_fetch) appear automatically.
Run as a standalone server
python -m agentfetch.mcp.serverThe server speaks MCP over stdio (the standard transport for desktop integrations).
Why agents prefer AgentFetch over generic web fetch
Examples
Fetching with a token budget
# Inside any MCP-aware agent (Claude Desktop, Claude Code, etc.)
result = fetch_url(
url="https://news.ycombinator.com",
max_tokens=2000, # cap response size
use_cache=True, # serve from cache if <6h old
)
# result.markdown → clean Markdown, ≤2000 tokens
# result.metadata → title, author, word_count, language
# result.cache.hit → True if served from cache
# result.fetch_info → which fetcher ran, cost, durationEstimating before committing
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Agentfetch: common questions
- Is Agentfetch MCP server safe?
- Mostly: it is graded B (72/100). Read the Agentfetch safety report
- How do I install Agentfetch?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Agentfetch need an API key?
- Yes. The registry entry asks for
JINA_API_KEY,FIRECRAWL_API_KEY. - Is Agentfetch maintained?
- The last commit was 152 days ago (2026-06-06). The latest release is v1.0.1.
- What can I use instead of Agentfetch?
- Servers from other publishers that do the same job: Firecrawl MCP Server, unbrowser by Unchained MCP server and SeleniumBase MCP server.
- How does Agentfetch compare with other Scraping and browsing MCP servers?
- safety score 72/100 (higher than 38% of 867 Scraping and browsing servers); tools 4 (the typical Scraping and browsing server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Agentfetch
Same job from other publishers: the closest match first, then the best rated.
- Firecrawl MCP ServerFirecrawl, the context API for AI agents: search, scrape, interact with the web, plus paper search.not reviewedWidely usedA
- unbrowser by UnchainedChrome-free MCP web access for agents with low-token page maps and browser escalation hints.not reviewedGrowingB
- SeleniumBase MCPStealthy browser automation, testing, and web-scraping via CDP Mode.not reviewedWidely usedA
- AIHawkAI browser agent: browses, clicks, types, and reads real web pages from plain-English instructions.not reviewedWidely usedA
- BrightdataBright Data's Web MCP server enabling AI agents to search, extract & navigate the webnot reviewedEstablishedB