searxng-mcp
searxng-mcp is an MCP server providing web search, content extraction, and research workflows powered by a SearXNG backend, with compact model-visible output and full payloads in hidden metadata.
search– Single web search query with options for engines, language, categories, safe search, time range, and pagination.search_many– Run multiple queries in parallel, deduplicate, and return a merged, ranked list — ideal for broader topic coverage.search_and_fetch– Combine search with automatic content extraction of top results; supports browser rendering for JS-heavy pages.research– Multi-query parallel search + batch fetch of top sources with citations — the most comprehensive single-call research tool.fetch_url– Fetch a single URL and extract readable content; auto-falls back to browser rendering for complex pages.fetch_many– Parallel fetch and content extraction from multiple URLs with caching and optional browser rendering.health– Check the status of the SearXNG backend, local cache, and browser render support.
Provides web search capabilities through SearXNG, offering tools for concise search results with full metadata preservation, parallel search operations, URL content extraction, and research workflows with batch fetching.
Click on "Install 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 for latest AI developments in quantum computing"
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
An MCP server for SearXNG that keeps the model-visible output short, preserves full result payloads in hidden metadata, and supports both local stdio clients and deployed streamable-http use.
What you get
searchfor concise web search with full raw payloads in_metasearch_manyfor parallel fan-out, dedupe, and merged rankingsearch_and_fetchfor search plus source extraction in one callresearchfor multi-query search with batch fetches and merged sourcesfetch_urlfor readable page extraction with citationsfetch_manyfor parallel URL extraction with cachinghealthfor backend, cache, and render status
The server is designed to be thin. SearXNG does the search work; searxng-mcp handles tool shaping, caching, extraction, and transport.
Quick Start
Install from a checkout
uv sync
uv run searxng-mcpInstall with uvx
searxng-mcp is distributed from this repository (no PyPI release). The shortest path is:
uvx --from git+https://github.com/88plug/searxng-mcp searxng-mcpRendered fetch is included in the default install. If the host already has Chromium or Chrome, searxng-mcp uses it. Otherwise the first rendered fetch bootstraps Playwright Chromium into the user cache automatically.
Run with Docker
docker build -t searxng-mcp .
docker run --rm -p 8811:8811 --add-host=host.docker.internal:host-gateway \
-e SEARXNG_MCP_BASE_URL=http://host.docker.internal:8890 \
searxng-mcpClaude Desktop example
{
"mcpServers": {
"searxng-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/88plug/searxng-mcp", "searxng-mcp"],
"env": {
"SEARXNG_MCP_BASE_URL": "http://127.0.0.1:8890",
"SEARXNG_MCP_TRANSPORT": "stdio"
}
}
}
}Deployment Modes
Local stdio
Use this for desktop clients and private workflows. It is the simplest and safest mode.
SEARXNG_MCP_TRANSPORT=stdio uv run searxng-mcpStreamable HTTP
Use this for a private service, a team deployment, or a reverse-proxied internal endpoint.
SEARXNG_MCP_TRANSPORT=streamable-http uv run searxng-mcp --host 0.0.0.0 --port 8811Hardened Docker and Compose
For a longer-running self-hosted service, use the hardened container variant and the provided Compose stack.
docker build -f Dockerfile.prod -t searxng-mcp:prod .
cp docker-compose.env.example .env
docker compose up --build -dSecurity and Trust
This project is safe for local and trusted-network use. It is not a drop-in public Internet service.
fetch_urlandfetch_manycan fetch arbitrary URLs supplied by the clientrendered extraction may launch Chromium against untrusted pages
streamable-httpshould be put behind auth or a reverse proxy for any shared deploymentSEARXNG_MCP_FETCH_VERIFY_TLS=0is only for private or self-signed backend setups
If you expose the HTTP transport, treat it like an internal service and add the controls you would expect for any SSRF-capable tool.
Why This Exists
compact model-visible output, with full details preserved in hidden metadata
faster research workflows through parallel search and fetch fan-out
rendered extraction for JS-heavy pages without extra install flags
self-hostable deployment for people who want their own SearXNG-backed MCP server
MCP Surface
searxng://configexposes current settings, transport mode, and render supportsearxng://guidesummarizes the available tools and when to use themquick_lookup,deep_research, andresearch_workfloware optional compatibility prompts for clients that support prompt surfaces
Environment
Key variables:
SEARXNG_MCP_BASE_URL: SearXNG base URL, defaulthttp://127.0.0.1:8890SEARXNG_MCP_FALLBACK_BASE_URLS: optional comma-separated fallback SearXNG instancesSEARXNG_MCP_TRANSPORT:stdio,streamable-http, orsseSEARXNG_MCP_SEARCH_TIMEOUT: backend search timeout in secondsSEARXNG_MCP_FETCH_TIMEOUT: fetch timeout in secondsSEARXNG_MCP_SEARCH_CACHE_TTL: search cache TTL in secondsSEARXNG_MCP_FETCH_CACHE_TTL: fetch cache TTL in secondsSEARXNG_MCP_FETCH_VERIFY_TLS: set to0to skip TLS verification on fetchesSEARXNG_MCP_RENDER_TIMEOUT: browser navigation timeout for rendered fetchesSEARXNG_MCP_RENDER_WAIT_MS: extra wait after DOM content load for rendered fetchesSEARXNG_MCP_RENDER_CONCURRENCY: concurrent rendered fetch limitSEARXNG_MCP_RENDER_HEADLESS: set to0to show the browserSEARXNG_MCP_RENDER_BROWSER_PATH: explicit Chromium or Chrome binary pathSEARXNG_MCP_RENDER_SANDBOX: set to1to keep Chromium sandboxing enabledSEARXNG_MCP_RENDER_BLOCK_RESOURCES: set to0to allow images, fonts, stylesheets, and media during renderSEARXNG_MCP_RENDER_AUTO_FALLBACK: set to0to disable automatic rendered fallbackSEARXNG_MCP_RENDER_AUTO_MIN_WORDS: lower this to make auto-render more aggressiveSEARXNG_MCP_RENDER_AUTO_MIN_CHARS: lower this to make auto-render more aggressiveSEARXNG_MCP_CACHE_DIR: cache directory path
Benchmarks
uv run searxng-mcp-bench --rounds 3The benchmark reports:
raw SearXNG backend latency
token-visible search output size
merged multi-query search latency
multi-query research latency
fetch extraction latency
rendered fetch latency
batch fetch extraction latency
rendered batch fetch latency
Documentation
Build and Test
uv sync --all-groups
uv run pytest -q
uv run python -m compileall src
uv run mkdocs build --strictDependency Maintenance
Manual checks:
uv lock --upgrade --dry-run
uvx --from pip-audit pip-auditAutomated checks:
weekly Dependabot PRs for
uvdependencies and GitHub Actionsweekly
Dependency Healthworkflow for vulnerability scanning and upgrade dry runs
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/88plug/searxng-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server