Agent Search MCP

Agent Search MCP

Free multi-source web search server for AI agents, with confidence scoring and token optimization.

Category
Visit Server

README

Agent Search MCP

๐Ÿ” Free multi-source search for AI agents โ€” multi-source verification, token savings, MCP native.

License Node.js MCP

Works with Hermes, Claude Code, Cursor, Windsurf, OpenClaw, and any MCP-compatible client.


English ยท ไธญๆ–‡ ยท ๅฎ‰่ฃ… ยท ๆ–‡ๆกฃ


Quick Start

# Option 1: npx (recommended)
npx agent-search-mcp

# Option 2: global install
npm install -g agent-search-mcp

Platform Setup

<details> <summary><b>Hermes</b></summary>

# ~/.hermes/config.yaml
mcp_servers:
  agent-search:
    command: npx
    args: ["agent-search-mcp"]

</details>

<details> <summary><b>Claude Code</b></summary>

// ~/.claude/mcp.json
{
  "mcpServers": {
    "agent-search": {
      "command": "npx",
      "args": ["agent-search-mcp"]
    }
  }
}

</details>

<details> <summary><b>Cursor</b></summary>

// .cursor/mcp.json
{
  "mcpServers": {
    "agent-search": {
      "command": "npx",
      "args": ["agent-search-mcp"]
    }
  }
}

</details>

<details> <summary><b>Windsurf</b></summary>

// ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "agent-search": {
      "command": "npx",
      "args": ["agent-search-mcp"]
    }
  }
}

</details>

<details> <summary><b>OpenClaw</b></summary>

// openclaw.config.ts
{
  mcpServers: {
    "agent-search": {
      command: "npx",
      args: ["agent-search-mcp"]
    }
  }
}

</details>


Features

๐Ÿ†“ Free by Default

No API key required. Uses DuckDuckGo + Sogou search engines.

Engine Type API Key Coverage
DuckDuckGo Free โŒ Global
Sogou Free โŒ Chinese
Brave Search Paid (Free Tier) Optional Global
Tavily Paid (Free Tier) Optional Global

๐ŸŽฏ Multi-Source Verification

Results are verified across multiple search engines. Each result includes a confidence score (1-3) based on how many engines returned it.

{
  "title": "Build an MCP Server",
  "url": "https://example.com/mcp",
  "snippet": "How to build MCP servers...",
  "confidence": 2  // Verified by 2 engines
}

๐Ÿ’ฐ Save Tokens

Optimized output reduces token consumption by ~40-50%:

Optimization Savings
Top-1 snippet per URL ~25%
Title truncation (โ‰ค100 chars) ~15%
Snippet truncation (โ‰ค200 chars) ~15%
Deduplication ~10%
Confidence filtering ~10%

๐Ÿ”ง Progressive Disclosure

Three tools, discoverable by agents:

Tool Purpose When to Use
free_search Basic search Quick questions
free_search_advanced Filtered search Date ranges, domains, high confidence
free_extract URL extraction Read full page content

Tools

free_search

Basic web search with multi-source verification.

{
  "query": "TypeScript MCP server",
  "count": 5
}

free_search_advanced

Advanced search with filters.

{
  "query": "MCP server",
  "count": 10,
  "min_confidence": 2,
  "time_range": "week",
  "language": "zh",
  "include_domains": ["github.com"],
  "exclude_domains": ["reddit.com"]
}

Parameters:

  • min_confidence (1-3): Only return results verified by N+ sources
  • time_range: day, week, month, year
  • language: auto, en, zh
  • include_domains: Only search these domains
  • exclude_domains: Exclude these domains

free_extract

Extract full content from a URL as Markdown.

{
  "url": "https://example.com/article",
  "max_length": 5000
}

Resources

search://capabilities

Returns a Markdown document describing all available tools and features. Agents can discover capabilities on-demand.

search://health

Returns JSON with health status of each search provider:

[
  {
    "provider": "duckduckgo",
    "lastSuccess": 1719000000000,
    "errorCount": 0,
    "avgLatency": 450,
    "isHealthy": true
  }
]

Configuration

Environment Variables

Variable Description Required
BRAVE_API_KEY Brave Search API key (2000 free/month) No
TAVILY_API_KEY Tavily API key (1000 free/month) No
LOG_LEVEL Log level (info, debug) No

Zero config works โ€” no API keys needed for basic search.

With Paid Engines

Set environment variables to enable fallback to paid engines when free results are insufficient:

export BRAVE_API_KEY=your_key_here
export TAVILY_API_KEY=your_key_here

Architecture

Agent
  โ†“ MCP Protocol (stdio)
MCP Server
  โ”œโ”€โ”€ Tools Layer (progressive disclosure)
  โ”‚   โ”œโ”€โ”€ free_search (default)
  โ”‚   โ”œโ”€โ”€ free_search_advanced (optional)
  โ”‚   โ””โ”€โ”€ free_extract (optional)
  โ”œโ”€โ”€ Aggregation Layer
  โ”‚   โ”œโ”€โ”€ Top-1 Snippet merge
  โ”‚   โ”œโ”€โ”€ URL + Title dedup
  โ”‚   โ”œโ”€โ”€ Scoring + Confidence
  โ”‚   โ””โ”€โ”€ Output truncation
  โ”œโ”€โ”€ Fallback Chain
  โ”‚   โ”œโ”€โ”€ Phase 1: Free engines (DDG + Sogou)
  โ”‚   โ””โ”€โ”€ Phase 2: Paid engines (Brave + Tavily)
  โ””โ”€โ”€ Infrastructure
      โ”œโ”€โ”€ Cache (LRU, 60s TTL)
      โ”œโ”€โ”€ Rate Limiter (1s per provider)
      โ”œโ”€โ”€ Health Tracker
      โ””โ”€โ”€ SSRF Protection

Documentation / ๆ–‡ๆกฃ

Document Description
PRD Product Requirements Document
Architecture Technical Architecture
Plan Implementation Plan
Review Results 5-Team Review Results
Fork Plan Fork & Modification Plan
CHANGELOG Version History

Development

# Clone
git clone https://github.com/lennney/agent-search-mcp.git
cd agent-search-mcp

# Install
npm install

# Build
npm run build

# Test
npm test

# Run
npm start

License

Apache License 2.0

Based on open-websearch by Aas-ee.

Copyright 2025 Open-WebSearch MCP Server Contributors
Based on open-websearch by Aas-ee (Apache 2.0).
Modified by Agent Search MCP Contributors.
Copyright 2026 Agent Search MCP Contributors

Contributing

Contributions welcome! Please read CONTRIBUTING.md first.


Keywords

MCP server, Model Context Protocol, AI agent search, free web search, multi-source search, DuckDuckGo MCP, Sogou search, token optimization, Hermes MCP, Claude Code MCP, Cursor MCP, AI tool, web search for agents, search aggregation, confidence scoring

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured