searxng-mcp
Provides web search, news search, and page extraction through a self-hosted SearXNG instance, including configurable engines, time ranges, safesearch, and readable-text extraction from URLs.
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 best practices for MCP servers and extract the top result."
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
A Model Context Protocol server that gives any MCP-capable agent (Claude Desktop, AiderDesk, OpenCode, Goose, …) web search and page reading through a self-hosted SearXNG instance — no API key, no per-query metering, and your queries never leave your network before SearXNG fans them out.
Built as a drop-in replacement after two metered search-API keys ran out of quota on the same day.
Tools
Tool | What it does |
| General search. Categories, time range, language, safesearch, engines, paging, |
| News-category shortcut with a recency window (default: past week). |
| Fetch up to 10 URLs and return readable text — scripts/styles/nav stripped, |
| Search, then fetch the full text of the top n results in one call (the "advanced search depth" pattern). |
Behaviour worth knowing:
Silent-zero detection. SearXNG returns HTTP 200 with an empty result list when its upstream engines are CAPTCHA-blocked or rate-limited. The server treats that as a miss and retries through fallback engine sets (
bing,yandex→google,duckduckgo,brave,startpage→mojeek,wikipedia,wiby) before returning, and reports which set answered.Engine names are category-specific in SearXNG (
bingvsbing news); the server picks the right defaults per category.Extraction refuses non-text content types and pages over 3 MB, and truncates at a configurable character limit with an explicit marker.
Related MCP server: local-web-search-service
Setup
You need a SearXNG instance with the JSON format enabled (search.formats: [html, json] in
settings.yml). The quickest way is the official Docker image on port 8080.
npm install
SEARXNG_URL=http://your-searxng:8080 node server.mjsRegister it with your MCP client (stdio transport):
{
"mcpServers": {
"searxng": {
"command": "node",
"args": ["/path/to/searxng-mcp/server.mjs"],
"env": { "SEARXNG_URL": "http://your-searxng:8080" }
}
}
}Environment
Variable | Default | Purpose |
|
| Base URL of your instance |
|
| Per-request timeout |
|
| Primary engines for general search |
|
| Primary engines for news |
Smoke test
npm test # spawns the server over stdio and exercises all four tools against your instanceLicense
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Scrape, crawl and search the web for AI agents via MCP.
Multi-engine search for AI agents. Trust scoring, local corpus, MCP-native. Self-hostable, BYOK.
Docs: https://docs.keenable.ai/mcp-server Keenable is a free, remote MCP server that gives agents access to the web index. Search the web with ranked results and date/site filters, then fetch any indexed page as clean markdown. Works out of the box with no account or API key.
Serper MCP — wraps the Serper Google Search API (serper.dev)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to perform privacy-respecting web searches through SearXNG, with support for multiple search engines, categories, and advanced filtering options.25-
- AlicenseNot gradedqualityCmaintenanceSelf-hosted web search and page fetch service using SearXNG metasearch and Scrapling browser rendering, exposing MCP tools for direct agent use.MIT
- FlicenseNot gradedqualityDmaintenanceEnables web search and content scraping from multiple engines via a local SearXNG instance, allowing AI assistants to retrieve and extract web content.1-
- AlicenseAqualityCmaintenanceEnables keyless multi-engine web, news, image, and video metasearch plus full-page markdown extraction for AI agents over MCP, with resilient fallback across DuckDuckGo, Bing, Brave, Google, and other backends.6MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/mattmaas/searxng-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server