mcp-searxng
Zero-API-key, private web search for Claude Desktop, Cursor, and local AI agents via SearXNG.通过 SearXNG 为 Claude Desktop、Cursor 和本地 AI Agent 接入零 API Key、无追踪的私有联网搜索。
01 Friction Solved消除的小摩擦
Commercial search APIs for AI agents (Tavily, Brave, Exa, SerpAPI) enforce tight monthly quotas or require credit cards, leaving local agents blind whenever a key expires or hits rate limits. mcp-searxng bridges any MCP-compatible agent directly to a SearXNG metasearch instance—aggregating results from multiple engines with zero per-query billing.面向 AI Agent 的商业搜索 API(Tavily、Brave、Exa、SerpAPI)普遍有严格的月度限额或绑卡门槛,本地 Agent 一旦额度用完就会变成“瞎子”。mcp-searxng 直接把任意支持 MCP 的 Agent 接到 SearXNG 元搜索引擎上,聚合多家搜索结果且没有任何按次计费。
02 Best-Fit Scenarios最适合的使用场景
- Giving Claude Desktop, Cursor, Zed, or DeepSeek Harness live web research without paying for a search API subscription.
- Running private or internal research workflows where search queries should not be logged by third-party AI search vendors.
- Building automated daily monitoring or competitive-research agents that run hundreds of queries per week.
- 不花钱买搜索 API 订阅,直接给 Claude Desktop、Cursor、Zed 或 DeepSeek Harness 加上实时联网调研能力。
- 对隐私敏感的内部调研场景,不希望搜索词被第三方商业 AI 搜索厂商留存和画像。
- 需要每周跑几百次查询的自动化监控、竞品追踪或热点雷达 Agent。
03 Human & Agent Setup人类与 Agent 快速接入
{
"mcpServers": {
"searxng": {
"command": "npx",
"args": ["-y", "mcp-searxng"],
"env": {
"SEARXNG_URL": "http://localhost:8080"
}
}
}
}
04 Reality Check & Trade-offs真实边界与局限
- Requires a running SearXNG instance with JSON output enabled in settings.yml (a single Docker container on localhost or a small VPS takes ~2 minutes to boot).
- Public community SearXNG instances frequently rate-limit or block JSON API requests—self-hosting is strongly recommended for reliable agent runs.
- Returns search snippets and URLs rather than full headless-browser rendering; pair with a page fetcher if your agent needs JavaScript-heavy pages.
- 需要一个已开启 JSON 输出(settings.yml)的 SearXNG 实例(本机或轻量 VPS 用一条 Docker 命令即可在 2 分钟内起好)。
- 公共社区 SearXNG 节点经常限制或封禁 JSON 接口,稳定给 Agent 用强烈建议自建。
- 默认返回搜索摘要和链接,不做重型无头浏览器渲染;遇到强 JS 渲染页面时需配合网页抓取工具。
05 Why VYAGENT Picked ItVYAGENT 选品评语
A textbook micro-element: one tiny npm bridge that removes a recurring paywall between local agents and the open web. No account, no dashboard, no vendor lock-in.非常典型的“微元”软件:一个极轻的 npm 桥接器,拆掉了本地 Agent 与开放网络之间的付费墙。无账号、无后台、无厂商锁定。
Combine mcp-searxng with verified free model API tiers (and VYAGENT’s dsh-freeroute) to run a $0/month research agent.将 mcp-searxng 与 FreeTokenBox 收录的免费大模型 API(以及我们的 dsh-freeroute 自动切源插件)组合,即可零成本跑起自动化调研 Agent。
Pair with free LLM API tiers on FreeTokenBox →搭配 FreeTokenBox 的免费模型额度 →06 Frequently Asked Questions常见问题 (FAQ)
Does mcp-searxng require a paid API key?mcp-searxng 需要付费 API Key 吗?
No. mcp-searxng connects to your own or an accessible SearXNG instance via the SEARXNG_URL environment variable and requires no commercial API key.不需要。只需通过 SEARXNG_URL 环境变量指向你自建或可用的 SearXNG 实例即可,无需任何商业搜索 API Key。
Why do I get 403 or empty results when pointing at a public SearXNG URL?为什么指向公共 SearXNG 地址时会报 403 或空结果?
Most public SearXNG instances disable the JSON search format to prevent bot abuse. Running SearXNG locally via Docker and adding "json" under search.formats in settings.yml resolves this.绝大多数公共 SearXNG 实例为了防爬虫会关闭 JSON 输出格式。用 Docker 在本地启动并在 settings.yml 的 search.formats 中启用 json 即可解决。