loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

search-router

MCP Tool

colaboy519/search-router

Smart search routing for AI agents — routes queries to the best provider based on language, query type, and provider capabilities

Install

$ npx loaditout add colaboy519/search-router

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "search-router": {
      "command": "npx",
      "args": [
        "-y",
        "search-router"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

Search Router

Smart search routing for AI agents — automatically picks the best search provider based on query language, type, and provider availability.

What it does

Search Router is a lightweight HTTP service that sits between your AI agent and multiple search APIs. When a query arrives, it classifies the language and query type, then routes to the most appropriate provider (Google via Serper, Bocha for Chinese-language search, Baidu via SearchAPI.io, or Parallel Search). If a provider fails or lacks an API key, it automatically falls back to the next best option. The result is a single, stable /search endpoint your agent can call regardless of which underlying providers you have configured.

Quick Start

Install:

pip install search-router

Configure API keys:

mkdir -p ~/.search-router
cat > ~/.search-router/config.yaml << 'EOF'
api_keys:
  google: ""           # Serper API key — https://serper.dev
  parallel_search: "" # Parallel Search API key
  bocha: ""           # Bocha API key — https://bochaai.com
  baidu: ""           # SearchAPI.io key for Baidu — https://www.searchapi.io
telemetry: false
host: "127.0.0.1"
port: 8100
EOF

Fill in the keys for the providers you want to use. At least one key is required.

Run:

search-router

The server starts at http://localhost:8100.

Configuration

~/.search-router/config.yaml:

api_keys:
  google: "your-serper-api-key"
  parallel_search: "your-parallel-search-key"
  bocha: "your-bocha-api-key"
  baidu: "your-searchapi-io-key"
telemetry: false          # set true to opt in to anonymous usage stats
host: "127.0.0.1"         # bind address
port: 8100                # port

You only need to provide keys for the providers you want to use. Unconfigured providers are skipped automatically.

API Endpoints
POST /search
curl -s -X POST http://localhost:8100/search \
  -H "Content-Type: application/json" \
  -d '{"query": "latest AI 

Tags

aiai-agentsfastapillmmcpmcp-servermodel-context-protocolsearchsearch-enginesearch-routing

Reviews

Loading reviews...

Quality Signals

0
Installs
Last updated26 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
read
Network Accessnone

Details

Sourcegithub-crawl
Last commit3/22/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/colaboy519/search-router)](https://loaditout.ai/skills/colaboy519/search-router)