Is the SearXNG MCP server safe? What it can reach
What the SearXNG MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
This is a community server from the ihor-sokoliuk GitHub account that connects an agent to a SearXNG search instance you choose. It runs locally over stdio by default and needs no API key. It has four tools, all reads, and one of them fetches any public page. Point it at an instance you run or trust, because that operator sees every query.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| ihor-sokoliuk/mcp-searxng (community) | Community | active |
It runs as a local process on your machine.
How it signs in
No key is needed for local stdio. The server acts as an anonymous client of the SearXNG instance in SEARXNG_URL, or with HTTP Basic credentials if you put them in that URL or in AUTH_USERNAME and AUTH_PASSWORD.
What its tools can do
| Kind | Tools |
|---|---|
| Read | searxng_web_search, searxng_search_suggestions, searxng_instance_info, web_url_read |
| Write | none documented |
| Can’t be undone | none documented |
web_url_read fetches the page directly from your machine, not through SearXNG. It blocks private and internal URLs by default.
Built-in limits
| Option | What it does |
|---|---|
MCP_HTTP_ALLOW_PRIVATE_URLS | Defaults to false. web_url_read blocks localhost, private ranges, link-local and cloud metadata addresses, and checks redirects. Leave it off. |
MCP_HTTP_AUTH_TOKEN | A static bearer token required on MCP requests in hardened HTTP mode. OAuth is the other option. |
MCP_HTTP_ALLOWED_HOSTS and MCP_HTTP_ALLOWED_ORIGINS | Allowlists for the HTTP transport. Hosts default to loopback names only. |
URL_READ_MAX_CHARS and URL_READ_MAX_CONTENT_LENGTH_BYTES | Cap how much text web_url_read returns and how large a response it reads (5 MiB by default). |
FETCH_TIMEOUT_MS | Aborts a web_url_read fetch after this many milliseconds (10000 by default). |
The risks
- The search operator sees every query. On a public instance, anything the agent puts in a query may be logged by someone you do not know.
- Search results and pages read by web_url_read are untrusted web text, so a hostile page can try to steer the agent.
- web_url_read can request any public URL, so an injected instruction can make it call a URL that carries text from your session in the query string.
- The default Docker Compose HTTP override has no authentication, so exposing it beyond the host lets others use your search and page-reading access.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --env SEARXNG_URL=... searxng -- npx -y mcp-searxngClaude Code names MCP tools mcp__searxng__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"ask": [
"mcp__searxng__web_url_read"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.searxng]
command = "npx"
args = ["-y", "mcp-searxng"]
env_vars = ["SEARXNG_URL"]Checklist
- Set SEARXNG_URL to an instance you operate or trust.
- Keep MCP_HTTP_ALLOW_PRIVATE_URLS at its default of false.
- Use stdio. If you run HTTP, set MCP_HTTP_AUTH_TOKEN or OAuth and an allowlist.
- Ask before web_url_read fetches a page you did not choose.
Checked against the vendor documentation on November 25, 2026. ihor-sokoliuk/mcp-searxng README · mcp-searxng configuration reference · Repository metadata (GitHub API)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing