mcp-searxng: Private Web Search for AI Assistants via SearXNG
TypeScript MCP server connects Claude, Cursor, and any MCP client to a self-hosted or trusted SearXNG instance — no vendor API key required.
Developer Ihor Sokoliuk has published mcp-searxng, an open-source Model Context Protocol server that bridges AI assistants to the SearXNG metasearch engine. The TypeScript project lets Claude, Cursor, and any MCP-compatible client run web searches against a SearXNG instance the user controls or trusts, eliminating dependence on commercial search APIs. The repository has gathered 1,365 GitHub stars and is listed in the official GitHub MCP Registry.
Four tools for search and retrieval
The server registers four MCP tools at startup. searxng_web_search executes queries with pagination, time-range filters (day, month, year), language selection, and configurable safe-search levels. searxng_search_suggestions returns query completions to refine prompts. searxng_instance_info exposes the connected SearXNG instance's categories, engines, and defaults so the model can adapt its strategy. web_url_read fetches a known URL and returns HTML, structured text, or bounded PDF extracts, with optional heading or section inspection.
STDIO and HTTP transport options
By default the server runs over local STDIO, started directly by the MCP client. An alternative Streamable HTTP mode serves long-lived or remote connections; modern stateless requests and a legacy stateful session mode are both supported. In the legacy mode clients must send DELETE /mcp to terminate a session before reinitialising. The HTTP deployment can be hardened with static bearer tokens or full OAuth integration using an external authorisation server.
Replica failover and browser solvers
A semicolon-separated list of SearXNG replicas enables automatic failover or fan-out across interchangeable instances. For sites that block automated fetches, the server integrates FlareSolverr and Byparr browser solvers — FlareSolverr is tried first, with guarded replay and bounded failover for eligible read failures. Safe rendered HTML and explicit Byparr PDF content are returned directly; ambiguous content triggers the replay path.
Installation via npm or Docker
Node.js 22 or later is required for the npm distribution. A global install (npm install -g mcp-searxng) places the mcp-searxng binary on PATH; the NPX one-liner npx -y mcp-searxng works without installation. The Docker image isokoliuk/mcp-searxng:latest bundles its own Node runtime and publishes signed artefacts verifiable with Cosign. Docker Compose examples in the repository are STDIO-only by design — MCP clients launch them with docker compose run --rm -T to keep JSON-RPC on raw stdin/stdout.
Configuration reference and OAuth
The only mandatory setting for the default local setup is SEARXNG_URL, pointing to a SearXNG instance with JSON search enabled. Optional environment variables control caching TTL, request timeouts, proxy routing, TLS verification, replica lists, and browser-solver endpoints. The configuration reference documents every variable with defaults. For HTTP deployments, an external OAuth provider can protect the endpoint; the guide covers token validation, scope mapping, and deployment verification steps.
Privacy model depends on the SearXNG deployment
mcp-searxng itself does not log queries. Privacy is determined by the chosen SearXNG instance: an operator-controlled deployment avoids third-party logging, while a public instance receives and may log the query. The project makes no anonymity claims — it provides the plumbing for self-hosted, API-key-free search, a combination that distinguishes it from the Brave, Exa, and Firecrawl MCP servers, all of which require vendor credentials and cannot be fully self-hosted.
Related reading
- Anthropic MCP Update: Stateless Protocol and New Extensions
- Qwen 4 Free Access: QoDuck Model Beats Qwen 3.8 in Qoder App
- DeepSeek Open Sources DeepInfer Engine for Faster, Cheaper Inference
Sources
Related news
Model Context ProtocolGoogle Releases MCP Toolbox: Open-Source MCP Server Connects AI Agents to Enterprise DatabasesThe googleapis/mcp-toolbox repository provides a Model Context Protocol server that lets AI agents and IDEs query databases directly through prebuilt tools or custom configurations, with SDKs for Java·same source: github.com
- Model Context Protocoltelegram-mcp connects Telegram to Claude and Cursor via Model Context ProtocolOpen-source Python server exposes 80+ Telegram operations — chats, messages, contacts, media — as MCP tools for AI assistants.·same source: github.com
AI AgentsGive local LLMs web access with SearXNG, Firecrawl, and CamofoxA three-tool stack lets local models search, scrape, and interact with live websites.·by shared tag
- Open SourceOpenBot: Open-Source Workspace for AI CoworkersCopilotKit released OpenBot, a modular platform that provides AI agents with their own isolated computers, browsers, and file systems for enterprise-ready automation.·by shared tag
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.