SuperAPIAI Directory

agentfetch-mcp

github.com · AI agents

Token-budgeted web fetching that routes between Trafilatura, Jina Reader, Firecrawl and pypdf by URL, with token estimates, caching and truncation.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

AgentFetch is a web intelligence tool for AI agents, provided in the form of an MCP server. It sits between your agent and the open web: instead of separately integrating Jina, FireCrawl, pypdf, and a self-built caching layer, the agent only needs to call one MCP tool, and AgentFetch automatically handles routing, caching, token budgeting, and clean Markdown extraction.

In terms of use, AgentFetch is mainly used to let AI agents fetch web URLs and perform token estimation, caching, and truncation on the fetched results, helping agents efficiently obtain web content within a limited token budget.

Its main capabilities include: intelligent routing—sending requests by URL to the most cost-effective fetcher, where Trafilatura (free, local) handles about 70% of standard web pages, Jina Reader handles the remaining HTML, FireCrawl handles JS-heavy pages (such as Twitter/X, LinkedIn, Notion, etc.), and pypdf handles PDFs (zero external cost); caching—using Redis with a TTL of 6 hours, and you can also bring your own cache or use no cache at all; token estimation—estimating tokens before submitting a fetch; batch fetching—supporting parallel fetching of multiple URLs; and tools such as search_and_fetch.

In terms of usage, you can first install it via PyPI (you can also clone the repository for local installation), then set the environment variables. A free key for Jina Reader can be obtained at jina.ai (the free quota is 1 million tokens per month); FireCrawl is optional but recommended for JS-heavy pages. Then you can add it to Claude Desktop or Claude Code: on macOS, edit the MCP configuration file (~/Library/Application Support/Claude/claude_desktop_config.json), or run claude mcp add in Claude Code. After restarting Claude, the four tools (fetch_url, estimate_tokens, fetch_multiple, search_and_fetch) will appear automatically. It can also be used as a standaloneserver, communicating via stdio, which is the standard transport method for desktop integration.

The applicable scenarios are mainly situations where AI agents need to fetch content from the web, control token budgets, reduce fetching costs, and reuse caches; it also supports obtaining pay-per-use billing, free quota, hosted Redis caching, automatic fetcher failover, and usage tracking and invoice dashboards through the hosted version. The hosted API is a drop-in REST equivalent implementation, with response structure and routing logic consistent with the local version, so you can run the open-source MCP locally in parallel with the hosted API, or migrate between the two at any time.

In terms of limitations, this repository only contains the open-source MCP server; the hosted product, billing, and operational infrastructure are in a separate private repository; if you add new fetchers (such as Bright Data, ScrapingBee, etc.), you need to match the FetchResult interface in agentfetch/core/fetchers/init.py and add the cost to the routing logic. The specific pricing of the hosted version starts at $0.001 per fetch, and registration comes with 500 free fetches and no credit card required. The project uses the MIT license.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools