Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Web search and web fetch with no API keys. Reads the sites that refuse AI agents.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
claude mcp add anyfetch -- npx -y @aliasmode/anyfetch mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"anyfetch": {
"command": "npx",
"args": [
"-y",
"@aliasmode/anyfetch",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"anyfetch": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aliasmode/anyfetch",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 aliasmode 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.8.3)于16天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB, Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Web search and web fetch for AI agents. One small binary, no API keys, and it reads the sites that refuse your agent.
Free and open source, from the makers of AliasMode.
Agent harnesses fetch pages with a bot identity, and a large part of the web answers 403. Anyfetch sends the request a real browser sends, so your agent gets the page.
| 97 popular sites that block AI agents | Pages read |
|---|---|
| Anyfetch | 82 |
| Anyfetch with a [NobleProxy](https://nobleproxy.com/?utm_source=anyfetch&utm_medium=readme&utm_campaign=anyfetch) residential IP | 87 |
| curl | 46 |
| Reference MCP fetch server | 39 |
Claude Code built-in WebFetch | 36 |
Anyfetch read 28 sites that no other tool in the table could read. Among them: The New York Times, Reuters, Bloomberg, The Washington Post, The Economist, Medium, Reddit, Stack Overflow, IMDb and YouTube.
| 33 research questions, each asked twice | Answered correctly both times |
|---|---|
| Agent with Anyfetch | 32 |
Same agent with Claude Code built-in WebSearch and WebFetch | 27 |
Thirteen of the questions are about a page on a site that blocks AI agents. The built-in fetch could not read any of those 13 pages. Its search found the answer in another source for 7 of them. Anyfetch answered 12 in both runs. The questions were written from pages that Anyfetch can read, so this group shows what the built-in tools miss.
| One page, started fresh | Time | Peak memory |
|---|---|---|
| Anyfetch | 0.19 s | 17 MB |
| Headless Chromium | 1.15 s | 544 MB |
Sites: measured on 2026-10-12 with version 0.8.0. Questions: measured on 2026-10-12 with version 0.7.1. Time and memory: measured on 2026-10-11. All from a cloud server, with no proxy except in the proxy row. See how we measured and how to run it again.
macOS and Linux:
curl -fsSL https://aliasmode.github.io/anyfetch/install.sh | sh
Windows, in PowerShell:
irm https://aliasmode.github.io/anyfetch/install.ps1 | iex
The installer puts anyfetch in ~/.local/bin. Then it connects Anyfetch to each agent harness that it finds on the machine: Claude Code, Codex, Gemini CLI, Hermes Agent, Pi, Cline, Amp, OpenClaw and Cursor. Start a new agent session, and the agent has web_search, web_fetch and web_fetch_many.
Did you install a harness later? Run anyfetch setup. It uses each harness's own command, tells you what it connected, and is safe to run again.
Do you have Node.js? Then no install is needed. Give your MCP client this server, and npx gets the program for your platform:
{
"mcpServers": { "anyfetch": { "command": "npx", "args": ["-y", "@aliasmode/anyfetch", "mcp"] } } }
Only Claude Code, on macOS or Linux? You can install Anyfetch as a plugin instead. The plugin gets the program at its first start:
claude plugin marketplace add aliasmode/anyfetch && claude plugin install anyfetch@anyfetch
Inside Claude Code 2.1.275 or later, this is one step: /plugin install anyfetch --marketplace aliasmode/anyfetch. Use the plugin or the installer, not both, or the agent sees every tool twice.
anyfetch setup does this for you. To do it by hand, each harness needs one command.
Claude Code
claude mcp add --scope user anyfetch -- anyfetch mcp
Codex
codex mcp add anyfetch -- anyfetch mcp
or in ~/.codex/config.toml:
[mcp_servers.anyfetch]
command = "anyfetch" args = ["mcp"]
Hermes Agent
hermes mcp add anyfetch --command anyfetch --args mcp
Hermes connects, lists the tools and asks to enable them. Answer Y.
Pi
pi mcp add anyfetch -- anyfetch mcp
Pi hides MCP tools behind its code mode by default. To show the tools to the model directly, set the exposure in ~/.pi/agent/mcp.json:
{
"mcpServers": { "anyfetch": { "command": "anyfetch", "args": ["mcp"], "exposure": "direct" } } }
Gemini CLI
gemini mcp add -s user anyfetch anyfetch mcp
OpenCode — in ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json", "mcp": { "anyfetch": { "type": "local", "command": ["anyfetch", "mcp"], "enabled": true } } }
Cursor — in ~/.cursor/mcp.json:
{
"mcpServers": { "anyfetch": { "command": "anyfetch", "args": ["mcp"] } } }
More harnesses
| Harness | Command |
|---|---|
| Cline | cline mcp add anyfetch --yes -- anyfetch mcp |
| Amp | amp mcp add anyfetch -- anyfetch mcp |
| OpenClaw | openclaw mcp add anyfetch --command anyfetch --arg mcp |
| Goose | goose session --with-extension "anyfetch mcp" |
| VS Code (Copilot) | code --add-mcp "{\"name\":\"anyfetch\",\"command\":\"anyfetch\",\"args\":[\"mcp\"]}" |
Any other MCP client: add a stdio server with the command anyfetch and the argument mcp.
Anyfetch is in the official MCP Registry as io.github.aliasmode/anyfetch, and on npm as @aliasmode/anyfetch.
No MCP? Give the agent the CLI. Add this to AGENTS.md or the harness's instruction file:
## Web access
anyfetch search " "anyfetch fetch [ ...] --format markdown
Make it the default. Anyfetch tells the agent to use its tools in place of the built-in web tools. In our test with Claude Code, the agent then chose Anyfetch for 8 of 8 web tasks. Before, it chose Anyfetch for 2 of 8. To take the choice away, turn the built-ins off:
~/.claude/settings.json: "permissions": { "deny": ["WebFetch", "WebSearch"] }~/.codex/config.toml: web_search = "disabled"anyfetch search "rust async runtime comparison"
anyfetch search "tokio select" --site docs.rs --time year anyfetch search "postgres vacuum freeze" --read 3 anyfetch search "retrieval augmented generation" --provider papers anyfetch fetch https://stackoverflow.com/questions/231767 --format markdown anyfetch fetch https://arxiv.org/pdf/1706.03762 --max-chars 8000 --offset 8000 anyfetch fetch https://docs.python.org/3.15/whatsnew/3.15.html --query "sampling profiler rate" anyfetch fetch https://www.rust-lang.org/ https://go.dev/ https://ziglang.org/
Output is JSON by default, so scripts and agents can parse it. --format markdown prints only the page content.
web_fetch| Input | Meaning |
|---|---|
url | The page to read. |
query | Optional. A question or keywords. The result has only the parts of the page that match. |
max_chars | Optional. The most content characters to return. The default is 50,000, or 5,000 with a query. |
offset | Optional. The first content character to return. Not used with a query. |
fresh | Optional. Fetch again even if a copy from the last 15 minutes exists. |
The result has title, description, content (Markdown), total_chars, url (after redirects), status and retrieved_at. To read a long page in parts, call again with a higher offset until it reaches total_chars. The parts come from the local copy, so the site gets one request.
With a query, the page is split at its paragraphs, tables and code blocks. The parts that best match the words of the query come back in page order, under their headings, with [...] where parts are left out. The result then has focused: true. A page with no matching part comes back from its start. A second question about the same page uses the local copy.
HTML becomes Markdown. A PDF becomes text with [Page N] marks. JSON, plain text and XML feeds come back as they are.
web_fetch_many| Input | Meaning |
|---|---|
urls | The pages to read. They are fetched at the same time. |
query | Optional. As for web_fetch. Each page gives up to 5,000 characters. |
max_chars | Optional. The most content characters per page. By default the pages share 50,000. |
fresh | Optional. As for web_fetch. |
The result has pages: one entry per URL, in order. Each entry is the page, or its error.
web_search| Input | Meaning |
|---|---|
query | The search query. Quoted phrases work. |
provider | Optional. See the list below. The default is auto. |
site | Optional. Keep results from one domain, for example docs.rs. |
time | Optional. day, week, month or year. |
page | Optional. The result page, from 1. |
read | Optional. Also return, from this many top results, the parts of each page that match the query. |
searxng_url | The base URL of your SearXNG instance, for the searxng provider. It must have JSON output on. |
Each result has title, url and snippet, and content when you set read.
| Provider | Source |
|---|---|
auto | Brave, Yahoo and DuckDuckGo at the same time. Their lists are merged, and pages that several engines rank high come first. engines names the engines that answered. |
brave | Brave Search. About 20 results per page. |
yahoo | Yahoo Search. 7 results per page. No year filter. |
duckduckgo | DuckDuckGo. First page only. |
searxng | Your own SearXNG instance. |
github | GitHub repositories, with stars and language. |
stackoverflow | Stack Overflow questions, with score and answer count. |
hackernews | Hacker News stories, with points and the discussion link. |
arxiv | arXiv papers, with abstracts. |
papers | Research papers from OpenAlex, with citation counts and open-access links. |
site, time and quoted phrases apply to the web engines. The specialist sources are free p
只显示了开头部分;其余内容请在仓库中阅读