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: web-search-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.
Web search and page extraction across several independent search providers.
1Search the agentic web. 4,100+ sites, 11 tools incl. check_url + verify_mcp for probe-before-use.
Web search, URL content extraction to Markdown, site mapping, and recursive web crawler.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables fetching and extracting text from URLs, searching the web via DuckDuckGo and Yandex, and retrieving page links through MCP tools.3MIT
- FlicenseNot gradedqualityCmaintenanceProvides a free web search tool to MCP clients by connecting to a self-hosted SearXNG metasearch instance, enabling users to search the web with customizable parameters like categories and time range.-
- 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 and scraping through MCP, running locally with courtesy rate limiting and caching.2 npmISC