searxng-mcp
Search the web through a self-hosted SearXNG instance, supporting categories (general, news, images, etc.), specific engines, language, and result limits.
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-mcpWhat are the top stories in technology today?"
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 connects to a self-hosted SearXNG instance and exposes web search capabilities over MCP HTTP (JSON-RPC).
Overview
This service enables your AI chatbot to search the internet for real-time information via SearXNG, a privacy-respecting metasearch engine.
Use cases:
Current weather, news, prices
Recent documentation and updates
Real-time information beyond the LLM's knowledge cutoff
Related MCP server: searxng-mcp
Environment
Required:
SEARXNG_URL- Base URL of your SearXNG instance (e.g.http://searxng:8080).MCP_INTERNAL_TOKEN- Shared secret betweenhomelab-chatbot-uiandsearxng-mcp. Alias:SEARXNG_MCP_INTERNAL_TOKEN.
Optional:
PORT- Server port. Defaults to3003.SEARXNG_TIMEOUT_MS- Request timeout in milliseconds. Defaults to10000.
Tools
web_search
Search the internet for current information.
Parameters:
Name | Type | Required | Description |
| string | Yes | The search query. Be specific for better results. |
| enum | No | Search category: |
| string[] | No | Specific search engines (e.g. |
| string | No | Language code for results (e.g. |
| number | No | Maximum results (1-20). Default: |
Response:
{
"status": "ok",
"query": "weather hong kong",
"resultCount": 5,
"results": [
{
"title": "Hong Kong Weather Forecast",
"url": "https://example.com/weather",
"snippet": "Current conditions: 24°C, partly cloudy...",
"source": "google",
"date": "2024-01-15"
}
],
"formatted": "[1] Hong Kong Weather Forecast\n URL: https://example.com/weather\n Current conditions: 24°C..."
}Endpoints
Method | Path | Description |
|
| Health check (no auth required) |
|
| SSE endpoint for streaming MCP clients |
|
| Streamable HTTP endpoint for stateless MCP requests |
|
| Legacy endpoint for backward compatibility |
Authentication
All MCP endpoints require authentication via:
Authorizationheader:Bearer <token>or plain<token>x-mcp-internal-tokenheader: plain<token>
Development
# Install dependencies
npm install
# Build
npm run build
# Run (requires env vars)
SEARXNG_URL=http://localhost:8080 \
SEARXNG_MCP_INTERNAL_TOKEN=test-token \
npm start
# Run tests
npm testDocker
# Build image
docker build -t searxng-mcp .
# Run container
docker run -p 3003:3003 \
-e SEARXNG_URL=http://searxng:8080 \
-e SEARXNG_MCP_INTERNAL_TOKEN=your-secret-token \
searxng-mcpKubernetes
Deploy alongside your SearXNG instance:
# ConfigMap
apiVersion: v1
kind: ConfigMap
metadata:
name: searxng-mcp-config
data:
PORT: "3003"
SEARXNG_URL: "http://searxng.app-searxng.svc.cluster.local:8080"
SEARXNG_TIMEOUT_MS: "10000"See deploy/k8s/base/ for full manifests.
Registering in Chatbot UI
Deploy this service
Go to Admin → Tools → Add Backend
Configure:
Type:
mcpTransport:
httpURL:
http://searxng-mcp.mcp-searxng.svc.cluster.local:3003/mcpAuth Type:
apiKeyAPI Key: Your
SEARXNG_MCP_INTERNAL_TOKENvalue
Click "Discover Tools" to auto-import the
web_searchtoolEnable the tool
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 Servers
- AlicenseBqualityCmaintenanceAn MCP server for connecting agentic systems to search systems via searXNG.421127MIT
- Alicense-qualityDmaintenanceAn MCP server that wraps a local SearXNG instance to provide private, customizable web search capabilities. It enables AI assistants to perform queries with support for specific parameters like results limits, language, and time ranges.223MIT
- FlicenseAqualityAmaintenanceAn MCP server for SearXNG that provides web search capabilities with concise model-visible output while preserving full result payloads in metadata. It supports search, parallel fetching, URL extraction, and research workflows through both local stdio and streamable HTTP transports.7
- Alicense-qualityAmaintenanceA minimal MCP server that exposes a private SearXNG instance as a search tool over streamable-HTTP, enabling web search from the llama.cpp WebUI or any compatible MCP client.1MIT
Related MCP Connectors
Serper MCP — wraps the Serper Google Search API (serper.dev)
MCP server for Google search results via SERP API
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
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/paulleungtc-git/mcp-searxng'
If you have feedback or need assistance with the MCP directory API, please join our Discord server