一个基于 FastMCP 实现的 SearXNG 搜索 MCP 服务
View on GitHub ↗一个基于 FastMCP 实现的 SearXNG 搜索 MCP 服务,使用 Streamable HTTP 传输,支持本地运行与 Docker 部署。
- 暴露 MCP 工具 search(query):根据关键字调用 SearXNG 实例并返回搜索结果摘要。 - 通过 HTTP 端点 http://:/mcp 提供 MCP 服务,便于远程 / 跨域调用。 - 采用 无状态(stateless) Streamable HTTP 模式,客户端无需维护 Mcp-Session-Id,可直接并发调用。 - 支持通过环境变量自定义 SearXNG 实例地址,方便私有化部署。
变量名 默认值 说明 ------------- -------------------- ----------------------------------------------------- SEARXNGURL https://searxng.abc.com SearXNG 实例根地址(要求开启JSON) HOST 0.0.0.0 服务监听地址 PORT 9000 服务监听端口
例如:http://localhost:9000/mcp 或 https://mcp.your-domain.com/mcp
在支持 Streamable HTTP 的 MCP 客户端中,将服务地址填写为上面的 /mcp 端点即可,例如:
根据关键字调用 SearXNG 搜索,返回各结果条目的 content 文本,以换行拼接。
- query:搜索关键字。 - 返回:搜索结果的文本内容;请求失败时返回 False。
总请求数 : 100 并发 worker : 50 成功 : 100 失败 : 0 总耗时(秒) : 67.68 吞吐(QPS) : 1.48 平均延迟(秒) : 27.284 最小延迟(秒) : 7.203 最大延迟(秒) : 44.418
Q: 客户端报错 Missing session ID? A: 本服务已启用 statelesshttp=True,无需 session。若仍报该错,请确认客户端指向的是 /mcp 端点。
Q: 如何在生产环境收紧 CORS? A: 编辑 Server.py 中的 CORSMiddleware,将 alloworigins=[""] 改为具体来源列表,如 ["https://your-domain.com"]。
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/muzihuaner--SearXNG-MCP.html)
SearchHub normalizes Serper, Tavily, Exa, AnySearch, and other search APIs behind one HTTP, CLI, and MCP interface. It manages provider keys, quotas, rate limits, circuit breakers, logs, and failover
neuronto/agentic-resource-discoveryNeuronto Agentic Resource Discovery (ARD) Index. Federated search across every public ARD registry, plus a verified tool index read from each MCP server's own tools/list, hybrid lexical and semantic r
PyModel/jev-judge-mcpTyped judgment tools for MCP agents. TypeSafe's Jev model as verify, screen, find, classify, rerank, decide, compare, extract, review, gate, and score: the model judges, policy decides auto, review, o
SysikNagibator/AiPCGive the agent "this" and he gets a real PC.
taurus42119-stack/godkiller-mcpYour coding agent gaslights you. GODKILLER doesn't. Disk gates > vibes. claim_done only after verify.
iflytek/dolphin-mcp-pilotProduction-ready MCP server that lets AI agents build, schedule, run and recover Apache DolphinScheduler data pipelines - 53+ tools, beyond read-only.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.