searxng-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@searxng-mcpsearch the web for the latest MCP protocol updates"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
searxng-mcp
π·πΊ Π ΡΡΡΠΊΠ°Ρ Π²Π΅ΡΡΠΈΡ
MCP server that exposes SearxNG web search and a handful of fetch tools (web page, GitHub README, article) over the Model Context Protocol.
Features
web_search_xngβ search via one or two SearxNG instances, with routing controlled by theinstanceargumentfetch_web_contentβ download a page and strip HTMLfetch_github_readmeβ fetch a repo README from GitHubfetch_articleβ download an article and extract the main textTwo transports: SSE (
/sse+/messages) and direct HTTP (/mcp)Configured entirely via environment variables
Related MCP server: websharp-mcp
Instance routing
| Behaviour |
| Only the RU instance. Errors are returned as-is. |
| Only the VPS instance. |
| Try RU; on error or empty result, try VPS. |
| Try RU, then VPS unconditionally. |
If only one instance is configured, the instance argument is ignored
and every call goes to that instance.
Configuration
Variable | Default | Description |
|
| URL of the primary ("RU") SearxNG instance |
|
| URL of the secondary ("VPS") SearxNG instance |
|
| HTTP port |
At least one of the two instance URLs must be set, otherwise the server exits on startup.
Installation
Docker (recommended)
docker pull ghcr.io/dolphin2702/searxng-mcp:latest
Run
docker run -d
--name searxng-mcp
-p 3006:3006
-e SEARXNG_INSTANCE_RU=https://search.example.ru
-e SEARXNG_INSTANCE_VPS=https://search.example.com
ghcr.io/dolphin2702/searxng-mcp:latest
Deployment examples
Two instances (RU + VPS): examples/docker-compose.two-instances.yml One instance: examples/docker-compose.one-instance.yml
MCP client configuration
SSE transport
{ "mcpServers": { "searxng": { "url": "http://localhost:3006/sse" } } }
Streamable HTTP
{ "mcpServers": { "searxng": { "type": "streamable", "url": "http://localhost:3006/mcp" } } }
Tools
web_search_xng
Search the web via SearxNG.
Arguments:
q (string, required) β search query
count (number, default 5) β number of results
instance (string, default default) β default / ru / vps / all
Returns: markdown-formatted list of results.
fetch_web_content
Fetch a page and return its text content with HTML stripped.
Arguments:
url (string, required)
max_chars (number, default 30000)
fetch_github_readme
Fetch README.md from a GitHub repository (tries main, then master).
Arguments:
url (string, required) β repository URL
fetch_article
Fetch an article and extract the main text (strips header, footer, nav, scripts).
Arguments:
url (string, required)
HTTP API
Method | Path | Description |
GET | /sse | SSE stream endpoint |
POST | /messages?sessionId=... | SSE message channel |
POST | /mcp | Direct JSON-RPC |
Development
git clone git@github.com:dolphin2702/searxng-mcp.git cd searxng-mcp npm install SEARXNG_INSTANCE_VPS=https://search.example.com node server.js
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Scrape, crawl and search the web for AI agents via MCP.
Search the agentic web. 4,100+ sites, 11 tools incl. check_url + verify_mcp for probe-before-use.
Web MCP: scrape/crawl sites, web search, brand assets, app stores, YouTube, Reddit, Hacker News.
Web search, URL content extraction to Markdown, site mapping, and recursive web crawler.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables fetching and extracting text from URLs, searching the web via DuckDuckGo and Yandex, and retrieving page links through MCP tools.22MIT
- AlicenseNot gradedqualityDmaintenanceProvides web search and readable page extraction tools via MCP, using SearXNG metasearch and SmartReader content extraction, with Docker support for local deployment.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables web search through a SearXNG instance via MCP, returning search result summaries.4MIT
- AlicenseAqualityBmaintenanceEnables production-grade web research through MCP, combining local SearXNG search with hosted fallback providers, fetch and crawl tools, summarization, and budget guardrails.7MIT