Zero-config MCP web search for AI agents: 11 engines (8 free, no API key), Chinese search, waterfall multi-source verification, content extraction, news search & Streamable HTTP. Works with Claude Code, Cursor, Codex.
claude mcp add agent-search-mcp -- npx -y agent-search-mcp{
"mcpServers": {
"agent-search-mcp": {
"command": "npx",
"args": ["-y", "agent-search-mcp"]
}
}
}MCP Servers overview
# Agent Search MCP
> 🔍 **11 search engines (8 free), one MCP server.** Zero API keys. Chinese search. Multi-source verification. Waterfall progressive search, content extraction, news & CLI. `npm install` is enough.
[](https://www.npmjs.com/package/agent-search-mcp)
[](https://www.npmjs.com/package/agent-search-mcp)
[](https://github.com/lennney/agent-search-mcp/stargazers)
[](https://github.com/lennney/agent-search-mcp/actions)
[](LICENSE)
[](package.json)
[](https://github.com/lennney/agent-search-mcp)
[](https://glama.ai/mcp/servers/lennney/agent-search-mcp)
**Works with Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Codex, Hermes, and any MCP-compatible client.**
> ⭐ **[Star on GitHub](https://github.com/lennney/agent-search-mcp)** — it helps others discover the project!
[English](#quick-start) · [中文](README_zh.md) · [Tools](#tools) · [CLI](#cli) · [Engines](#engines) · [Config](#configuration)
---
## Quick Start
### Prerequisites
- **Node.js >= 18** — that's it. No Python, no API keys, no Docker required.
### Install
```bash
# npx (no install)
npx agent-search-mcp
# Global install
npm install -g agent-search-mcp
```
### Configure Your Client
<details>
<summary><b>Claude Code</b></summary>
```json
{
"mcpServers": {
"agent-search": {
"command": "npx",
"args": ["agent-search-mcp"]
}
}
}
```
</details>
<details>
<summary><b>Claude Desktop</b></summary>
```json
{
"mcpServers": {
"agent-search": {
"command": "npx",
"args": ["agent-search-mcp"]
}
}
}
```
</details>
<details>
<summary><b>Cursor</b></summary>
```json
{
"mcpServers": {
"agent-search": {
"command": "npx",
"args": ["agent-search-mcp"]
}
}
}
```
</details>
<details>
<summary><b>VS Code / Cline / Roo Code</b></summary>
```json
{
"mcpServers": {
"agent-search": {
"command": "npx",
"args": ["agent-search-mcp"]
}
}
}
```
</details>
<details>
<summary><b>Windsurf</b></summary>
```json
{
"mcpServers": {
"agent-search": {
"command": "npx",
"args": ["agent-search-mcp"]
}
}
}
```
</details>
<details>
<summary><b>Hermes</b></summary>
```yaml
mcp_servers:
agent-search:
command: npx
args: ["agent-search-mcp"]
```
</details>
<details>
<summary><b>Codex</b></summary>
```json
{
"mcpServers": {
"agent-search": {
"command": "npx",
"args": ["agent-search-mcp"]
}
}
}
```
</details>
---
## Why Agent Search MCP
**AI agents need to search the web. But existing options have problems:**
| Solution | Price | The Catch |
|----------|-------|------------|
| Tavily | $0.01/search | Monthly cost: $20-50+ |
| Exa | $50/mo | Powerful semantic search, but expensive |
| Brave Search | $3/1K after 2K free | Free quota runs out fast |
| DDG MCP | Free | Single source, no verification, results vary |
| Serper | $0.30/1K | Google SERP, no content extraction |
**Agent Search MCP is different:**
| Capability | Why It Matters |
|------------|----------------|
| **8 free engines, zero API keys** | DuckDuckGo, Sogou, Bing, Baidu, Wikipedia, Startpage, Yandex, Mojeek — all work out of the box |
| **Waterfall progressive search** | Runs engines in confidence-gated phases. Stops early when results are sufficient — saves 50-75% calls |
| **Multi-source verification** | Cross-checks results across engines. Each result scored 1-3 based on how many sources agree |
| **Chinese search** | Sogou + Baidu for native Chinese web search. Not a translation layer |
| **Content enrichment** | Auto-extracts full page content for low-confidence results via Jina Reader |
| **MCP 2025 compliant** | Streamable HTTP transport, `readOnlyHint`/`idempotentHint` annotations, explicit capabilities |
| **Token optimized** | Smart truncation + dedup saves ~40-50% tokens vs raw search |
| **Self-hostable** | No third-party data sharing. Run on your own VPS |
| **Security built-in** | SSRF protection, prompt injection detection, URL validation |
---
## Engines
| Engine | Free | Strengths |
|--------|:----:|-----------|
| **DuckDuckGo** | ✅ | Privacy-focused, English web. Python ddgs preferred, cheerio HTML fallback |
| **Sogou** | ✅ | Chinese web search, WeChat content |
| **Bing** | ✅ | Multilingual, strong English results |
| **Baidu** | ✅ | Chinese web search, Baidu Baike |
| **Wikipedia** | ✅ | Clean JSON API, structured knowledge |
| **Startpage** | ✅ | Google results via privacy proxy |
| **Yandex** | ✅ | Russian web search |
| **Mojeek** | ✅ | Independent crawler, privacy-focused |
| Brave Search | ❌ | High-quality web results, 2K free/month |
| Tavily | ❌ | Agent-optimized search, 1K free/month |
| Exa | ❌ | Neural semantic search, 1K free/month |
---
## Tools
| Tool | Description | Best For |
|------|-------------|----------|
| `free_search` | Multi-engine search with auto-fallback | Quick fact-finding, general queries |
| `free_search_advanced` | Filtered search with waterfall, domain filtering, enrichment | High-confidence results, date ranges, domain filtering |
| `free_search_news` | News search across DDG News + Bing News | Recent news, current events |
| `search_with_synthesis` | Deep search with `prompt_hint` for LLM synthesis | Complex queries needing multi-source verification |
| `free_extract` | Extract full page content as Markdown | Reading a specific page from search results |
| `fetch_github_readme` | Fetch README from a GitHub repo | Quick project documentation |
| `fetch_csdn_article` | Fetch content from CSDN blog | Chinese developer articles |
| `fetch_juejin_article` | Fetch content from Juejin | Chinese developer articles |
**Quick reference:** `free_search`, `free_search_advanced`, `free_search_news`, `search_with_synthesis`, `free_extract`, `fetch_github_readme`, `fetch_csdn_article`, `fetch_juejin_article`
All tools are read-only and idempotent with MCP 2025 annotations.
### Key Features
**Waterfall Search** (3 phases, confidence-gated):
1. Phase 1: DDG + Sogou → check confidence
2. Phase 2: Bing + Baidu → check
3. Phase 3: Brave + Tavily + Exa (paid only)
Stops as soon as results are sufficient. Saves 50-75% engine calls.
**Confidence Scoring** (1-3):
- **1**: Single source
- **2**: Verified by 2+ sources (recommended)
- **3**: Highly verified by 3+ sources
**Structured Errors**: Engine failures return typed errors (`timeout`, `rate_limited`, `permission_denied`, etc.) with actionable suggestions — agents can self-recover.
---
## Configuration
### Environment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| `BRAVE_API_KEY` | — | Brave Search API key (2K free/month) |
| `TAVILY_API_KEY` | — | Tavily API key (1K free/month) |
| `EXA_API_KEY` | — | Exa API key (1K free/month) |
| `LOG_LEVEL` | `info` | Log level: `info`, `debug` |
| `MODE` | `stdio` | Transport: `stdio`, `http`, `both` |
| `PORT` | `3000` | HTTP server port (MODE=http/both) |
**Zero config works** — no API keys needed for the 8 free engines.
### Tool Visibility
Control which tools your agent can see:
```bash
# Only search tools
ENABLED_TOOLS=free_search,free_search_advanced,free_search_news
# Disable specific tools
DISABLED_TOOLS=free_extract,fetch_github_readme
# Enable only one fetch tool
ENABLED_TOOLS=fetch_csdn_article
```
| Variable | Description |
|----------|-------------|
| `ENABLED_TOOLS` | Comma-separated list of tools to enable. If set, only these are registered |
| `DISABLED_TOOLS` | Comma-separated list of tools to disable. Takes priority over `ENABLED_TOOLS` |
### Engine Filtering
```bash
# Only use Chinese engines
ALLOWED_ENGINES=sogou,baidu
# Exclude specific engines
DENIED_ENGINES=yandex,mojeek
```
---
## CLI
`agent-search-mcp` also works as a standalone CLI tool (`fasm`).
```bash
# Search
fasm search "TypeScript MCP server"
fasm search "query" --count 5 --engines bing,baidu --json
# Extract
fasm extract "https://example.com"
fasm extract "https://example.com" --json
# HTTP server
fasm serve --port 8080
```
---
## Architecture
```
Agent (Claude Code, Cursor, etc.)
↓ MCP Protocol (stdio / Streamable HTTP)
MCP Server
├── Tools Layer
│ ├── free_search / free_search_advanced / free_search_news
│ ├── search_with_synthesis
│ ├── free_extract
│ └── fetch_github_readme / fetch_csdn_article / fetch_juejin_article
├── Aggregation Layer
│ ├── Waterfall Search (3-phase confidence-gated)
│ ├── Cross-Engine Scoring (frequency + domain authority)
│ ├── Dedup (URL + title)
│ ├── Content Enrichment (Jina Reader)
│ └── Query Expansion (rule-based, 4 strategies)
├── Engine Layer (11 engines)
│ ├── Free: DDG, Sogou, Bing, Baidu, Wikipedia, Startpage, Yandex, Mojeek
│ └── Paid: Brave, Tavily, Exa
└── Infrastructure
├── Health Tracker (per-engine circuit breaking)
├── Rate Limiter (adaptive concurrency)
├── Cache (LRU, 60s TTL, 1000 entries)
├── SSRF Protection (URL validation)
└── Security (injection detection, boundary markers)
```
---
## Development
```bash
git clone https://github.com/lennney/agent-search-mcp.git
cd agent-search-mcp
npm install
npm run build
npm test # 448 tests, 40 files
npm run dev # stdio mode
npm run dev:http # HTTP mode (port 3000)
```
---
## Stats
| Metric | Value |
|--------|-------|
| Tests | 448 passing, 40 files |
| Engines | 11 (8 free, 3 paid) |
| MCP Tools | 8 |
|What people ask about agent-search-mcp
What is lennney/agent-search-mcp?
+
lennney/agent-search-mcp is mcp servers for the Claude AI ecosystem. Zero-config MCP web search for AI agents: 11 engines (8 free, no API key), Chinese search, waterfall multi-source verification, content extraction, news search & Streamable HTTP. Works with Claude Code, Cursor, Codex. It has 9 GitHub stars and was last updated today.
How do I install agent-search-mcp?
+
You can install agent-search-mcp by cloning the repository (https://github.com/lennney/agent-search-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is lennney/agent-search-mcp safe to use?
+
lennney/agent-search-mcp has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.
Who maintains lennney/agent-search-mcp?
+
lennney/agent-search-mcp is maintained by lennney. The last recorded GitHub activity is from today, with 2 open issues.
Are there alternatives to agent-search-mcp?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy agent-search-mcp to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/lennney-agent-search-mcp)<a href="https://claudewave.com/repo/lennney-agent-search-mcp"><img src="https://claudewave.com/api/badge/lennney-agent-search-mcp" alt="Featured on ClaudeWave: lennney/agent-search-mcp" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!