Self-hosted web search for AI agents: a CLI + MCP server that wraps SearxNG to aggregate Google, Bing, DuckDuckGo, Brave and more — no API key, no paid search API. Works with Claude Code, OpenClaw, Antigravity and any shell; optional Tavily backend. 给 AI Agent 用的自托管联网搜索(SearxNG)。
MCPpedia last refreshed this data
Ask Search is an MCP server that self-hosted web search for AI agents: a CLI + MCP server that wraps SearxNG to aggregate Google, Bing, DuckDuckGo, Brave and more — no API key, no paid search API. Works with Claude Code, OpenClaw, Antigravity and any shell; optional Tavily backend. 给 AI Agent 用的自托管联网搜索(SearxNG)。. Its tool list has not been published yet over stdio and http, requires no API key, and scores 60/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"ask-search": {
"env": {
"SEARXNG_URL": "http://localhost:8080",
"TAVILY_API_KEY": "tvly-YOUR_API_KEY"
},
"args": [
"/path/to/ask-search/mcp/server.py"
],
"command": "python3"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Self-hosted web search for AI agents — no search API key needed
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
uvx 'mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
### Summary In affected versions, the SDK's OAuth client support (`mcp.client.auth`) let the MCP server a client connected to decide where the client's OAuth credentials were sent: - the authorization server metadata `issuer` was not validated on every discovery path, and - stored or pre-provisioned client credentials were not bound to the authorization server they belong to. A malicious or compromised MCP server could therefore direct them to a token endpoint of its choosing: - by naming its
Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
### Summary In affected versions, the SDK's server-side bearer authentication had no way to check that a token was issued for your server (its audience). Where one authorization server issues tokens for several services, a valid token for another service was also accepted by your MCP server. ### Am I affected? Yes, if your HTTP server uses the SDK's bearer authentication (`auth=AuthSettings(...)` with `token_verifier=`), its authorization server also issues tokens for other services, and your `
Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
### Summary In affected versions, the SDK's Streamable HTTP and SSE client transports followed HTTP redirects to any host. If the configured MCP endpoint answered with a redirect to a different origin: - custom headers set on the client (for example an `X-API-Key` credential) were sent to that origin, and - on a `307` or `308` redirect the request body was re-sent there too. The SDK's OAuth client providers followed redirects on their own discovery, registration and token requests in the same
Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
### Summary In affected versions, when a connected MCP server declared an `outputSchema` for a tool, the SDK's client validated each `call_tool` result with `jsonschema`'s default resolver, which fetches any `$ref` it cannot resolve locally by opening the URL. A server could therefore put an `http://`, `https://` or `file://` reference in a tool's output schema and make the client: - request that URL, or read that local file, from the client's own network position on every call of the tool (the
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
### Summary In affected versions, a Streamable HTTP server in stateful mode (the default) never reclaimed session state: - sessions did not expire; - a client `DELETE` ended the session but left its entry registered; - a session whose first request was refused stayed registered with a running task. Each session also kept its parsed `initialize` parameters, and the number of sessions was unlimited. A client that could reach the endpoint could grow server memory without bound using ordinary shor
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in search / ai-ml
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
The official MCP server implementation for the Perplexity API Platform
Unified real-time search engine skill for AI agents.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
MCP Security Weekly
Get CVE alerts and security updates for Ask Search and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Self-hosted web search for AI agents — no search API key needed
Works in OpenClaw · Claude Code · Antigravity · Any CLI
ask-search is a self-hosted web search CLI and MCP server for AI agents. It wraps SearxNG so Claude Code, OpenClaw, Antigravity or any shell can search Google, Bing, DuckDuckGo, Brave and more without a paid search API key. Tavily is an optional backend.
给 AI Agent 用的自托管联网搜索:包装 SearxNG,一条命令 / 一个 MCP server 就能聚合 Google、Bing、DuckDuckGo、Brave 等搜索结果,无需付费搜索 API key。
Python: CLI 3.8+; MCP server 3.10+ (required by the mcp package).
Your AI agent wants to search the web, but:
You just want your local agent to search Google and friends without a paid API.
ask-search wraps SearxNG — a self-hosted meta search engine that aggregates Google, Bing, DuckDuckGo, Brave and many more sources. One command, all results, no per-query fees.
ask-search "Claude Code vs Cursor 2026"
[1] Example result title
https://example.com/article-1
Example snippet text...
[google,brave]
[2] Another example result title
https://example.com/article-2
...
(illustrative output)
| Environment | Integration | Status |
|---|---|---|
| OpenClaw | CLI Skill (SKILL.md) | ✅ |
| Claude Code | CLI command | ✅ |
| Antigravity | MCP Server | ✅ |
| Any shell | ask-search CLI | ✅ |
1. Start SearxNG (Docker Compose, recommended)
git clone https://github.com/ythx-101/ask-search
cd ask-search/searxng
cp .env.example .env # then set SEARXNG_SECRET (python3 -c "import secrets; print(secrets.token_hex(32))")
docker compose up -d
Or with plain docker run:
docker run -d --name searxng \
-p 127.0.0.1:8080:8080 \
-e SEARXNG_SECRET=your-secret-key \
-v "$PWD/searxng/searxng.yml:/etc/searxng/settings.yml" \
searxng/searxng
2. Install the command
bash install.sh # or: sudo bash install.sh, or: bash install.sh ~/.local/bin
3. Search
ask-search "hello world"
git clone https://github.com/ythx-101/ask-search
cd ask-search
bash install.sh
export SEARXNG_URL=http://localhost:8080 # if not the default
ask-search "hello world"
Your SearxNG must have json enabled in search.formats in settings.yml:
search:
formats:
- html
- json
ask-search "query" # top 10 results
ask-search "query" --num 5 # limit results
ask-search "AI news" --categories news # news only
ask-search "query" --lang zh-CN # language filter
ask-search "query" --urls-only # URLs only (pipe to web_fetch)
ask-search "query" --json # raw JSON
ask-search "query" -e google,brave # specific engines
| Variable | Default | Description |
|---|---|---|
SEARXNG_URL | http://localhost:8080 | SearxNG endpoint |
SEARCH_PROVIDER | searxng | Search backend: searxng or tavily |
TAVILY_API_KEY | (none) | Tavily API key (required when SEARCH_PROVIDER=tavily) — get one at app.tavily.com |
# SearxNG (default)
export SEARXNG_URL="http://localhost:8080"
ask-search "query"
# Tavily (opt-in)
export SEARCH_PROVIDER=tavily
export TAVILY_API_KEY=tvly-YOUR_API_KEY
ask-search "query"