Purpose
searxng_http_mcp is a self-contained MCP (Model Context Protocol) server that wraps SearXNG—a free, privacy-respecting metasearch engine that aggregates results from over 200 search engines. It enables MCP-capable clients (such as Claude Code, Cursor, VS Code Copilot, etc.) to directly invoke search, autocomplete, and engine discovery capabilities.
Key Capabilities
- 🔍 200+ search engines: aggregates Google, Bing, DuckDuckGo, Brave, and more via SearXNG.
- 📂 30+ categories: news, images, videos, science, IT, etc.
- 📄 Multi-page fan-out: fetches up to 5 pages of results per call.
- 💡 Autocomplete suggestions: discovers related search terms.
- 🗂 Engine discovery: queries available engines grouped by category.
- 🎯 Token efficient: results retain only the core content.
- 📦 Self-contained: SearXNG is built into the Docker image.
- 🔄 Three transport modes: HTTP server, Docker stdio, and uvx standalone run.
- 🔐 Authentication: supports x-api-key and HTTP Basic Auth.
- 🌐 Reverse proxy: serves the SearXNG Web UI on the same port.
- ⚡ Dynamic tool descriptions: injects the live category list at startup.
- 📐 Rich JSON Schema: every parameter carries enum constraints, range limits, and descriptions.
There are three MCP tools in total: search (aggregated search, returning results, answers, suggestions, corrections, infoboxes), autocomplete (autocomplete), and engine discovery (no parameters, returns the list of enabled engines by category). The project intentionally keeps the tool surface to three: URL fetching is handled by client-specific tools, multi-query parallel search is orchestrated by the client, and research/synthesis is done by the LLM layer.
Usage
Three modes are supported:
- HTTP mode (default): deploy once, and any client connects via http://YOUR_HOST:YOUR_PORT/mcp/ . After setting API_KEY, the x-api-key header or HTTP Basic Auth can be enabled (when logging in via browser, leave the username blank and enter the API key as the password).
- Local mode: no server required; runs as a stdio MCP server within the client.
- uvx mode: if you already have a SearXNG instance, you can set SEARXNG_URL (default http://127.0.0.1:8080)后运行。需 Python 3.14+.
Client configuration varies by client: field names may be mcpServers, mcp.servers, a top-level mcp key, servers, mcp_servers, etc.; Claude Code requires "type": "http", Cline requires "type": "streamableHttp", Windsurf uses serverUrl instead of url, and Codex and Hermes use mcp_servers (TOML/YAML). The documentation provides configuration examples for clients such as Claude Desktop, Claude Code CLI/JSON, Codex, Cursor, VS Code, Windsurf, Cline, OpenCode, Hermes, ZCode, Kilo Code, Pi, and more.
Accessible at http://YOUR_HOST:YOUR_PORT/ Configure SearXNG's search engines, language, and other settings; mount the configuration directory for persistence. SearXNG generates settings.yml on first startup, and the container automatically enables the JSON format output required by the MCP tool.
Use Cases
Suitable for developers and users who need privacy-friendly, multi-engine aggregated search in AI clients; supports use as a plugin for Claude Code, GitHub Copilot CLI, and OpenAI Codex CLI. The plugin includes the /web-search-via-searxng skill, the web-searcher research subagent (multilingual parallel search, source credibility grading, cross-validation, WebFetch in-depth reading, multi-round iterative search, timeliness assessment, footnote citations), and more.
Limitations
- Specific fees and pricing information are not yet provided.
- The uvx mode and plugin operation require Python 3.14+ and an existing SearXNG instance.
- The Docker stdio plugin mode requires Docker to be installed.
- The remote plugin mode requires setting the SEARXNG_MCP_URL and SEARXNG_API_KEY environment variables.
- Configuration changes in the Web UI are retained only for the container's lifetime unless the configuration directory is mounted.
- The project code is licensed under MIT, while SearXNG itself is licensed under AGPL-3.0-or-later.