BeClaude

smart-search

New
4Community RegistryGeneralby QLBQLB

Automatically route search queries to the optimal MCP engine (Exa, Metaso, Bocha, GitHub, Zai MCP, Fetch) based on query type and content analysis

First seen 5/22/2026

Summary

Smart Search automatically routes your search queries to the best MCP engine based on content analysis, ensuring you get the most relevant results for code, academic research, news, Chinese content, GitHub issues, images, or direct URLs.

  • It saves time by eliminating the need to manually select search tools for different query types.

Overview

Smart Search - Intelligent Search Routing

Automatically route queries to the most appropriate search service using keyword-based priority rules.


Quick Reference

PriorityServiceTrigger KeywordsToken/Count
P0Exacode, API, function, framework, library, tutorial, syntax5000
P1Metasopaper, research, study, journal, thesis, academic10
P2Bravetoday, this week, latest, recent, news10
P3Bocha中文, 国内, 百科, Chinese content18
P4GitHubgithub, repo, issue, PR, commit, branch10
P5Zai MCPimage, video, screenshot, OCR, analyze pictureN/A
P6Fetchhttp://, https:// (direct URL)5000
P7Brave(default fallback)10
P8ExaEnglish technical docs3000

Decision Flow

code
User Input
    │
    ├─ Contains http:// or https:// ──────────────→ Fetch (P6)
    │
    ├─ Image/Video/Screenshot/OCR ─────────────────→ Zai MCP (P5)
    │
    ├─ GitHub/Repo/Issue/PR/Commit ────────────────→ GitHub MCP (P4)
    │
    ├─ Academic/Paper/Research/Thesis ──────────────→ Metaso (P1)
    │
    ├─ Code/API/Framework/Library ──────────────────→ Exa (P0)
    │
    ├─ Today/Latest/News + "AI" ───────────────────→ Brave + Metaso + Top 8 digest
    │
    ├─ 中文/国内 ───────────────────────────────────→ Bocha (P3)
    │
    └─ Default ─────────────────────────────────────→ Brave (P7)

Token Control

Adjust search depth based on query complexity:

LevelTokens/CountUse Case
Quick5-10Simple queries, definitions
Regular10-20Common usage, examples (default)
Deep30-50Multi-condition, architecture

News Output Format (AI新闻输出格式)

When user searches for daily AI news (今日/当天 AI新闻/资讯), use Brave + Metaso combined and output:

code
# 今日AI资讯 Top 8

### 1. [新闻标题]

**摘要:** [新闻内容摘要,50-100字]

**来源:** [来源名](链接)

**标签:** #标签1 #标签2 #标签3

**相关性:** ★★★★★

---

### 2. [新闻标题]

**摘要:** ...

Timeliness Judgment (时效性判断)

Before including news, verify timeliness:

IndicatorFreshStale
Publish dateWithin 2 daysOlder than 7 days
Date string in URLContains current date (2026-02-*)No date or old date
Source freshnessNews sites, blogsStatic docs
Content keywords"今日", "最新", "just announced""历史", "回顾", "总览"

Priority: Prefer news with publish dates within 2 days. Stale news (>7 days) should be excluded.

Source attribution: Always include clickable source links.


Usage Guidelines

DO

  • Analyze keywords before routing
  • Implement fallback on failure (30s timeout)
  • For AI news: Use Brave + Metaso combined
  • Format each news item: 标题 + 摘要 + 来源 + 标签 + 相关性
  • Filter to recent 2 days: exclude news older than 48 hours
  • Always include clickable source links

DON'T

  • Use Exa for news → Brave
  • Use Metaso for code → Exa
  • Include news older than 2 days in "今日" digest
  • Omit source attribution for news
  • Combine MCPs redundantly

Fallback Strategy

PrimaryFallback 1Fallback 2
ExaBraveMetaso
MetasoBochaBrave
BraveBochaExa
BochaBraveExa
GitHubFetch-
FetchBrave-

Combination Rules

Only for complementary scenarios (max 3 concurrent):

ScenarioComboRationale
AI News DigestBrave + MetasoEnglish + Chinese comprehensive coverage
Technical researchExa + GitHubCode + repos
Deep researchMetaso + FetchAcademic + content
ComprehensiveBrave + BochaNews + Chinese

Install & Usage

1
Add a marketplace
/plugin marketplace add <org/repo>
2
Install the plugin

Add the configuration to /plugin install smart-search@<marketplace>

3
Manage with /plugin
/plugin

Use Cases

Quickly find code examples, API documentation, or library tutorials by typing a query with keywords like 'code' or 'function'.
Search for academic papers, research studies, or theses without switching to a separate scholarly search engine.
Get the latest news or recent updates on a topic by including words like 'today' or 'latest' in your query.
Find Chinese-language content or domestic Chinese resources by including Chinese keywords in your search.
Look up GitHub repositories, issues, pull requests, or commits by mentioning 'github' or 'repo' in your query.
Analyze images or videos by asking for OCR, screenshot analysis, or picture description.

Usage Examples

1

/smart-search find code for sorting algorithm in Python

2

/smart-search latest news on AI regulation this week

3

/smart-search 中文百科 人工智能 发展历史

View source on GitHub
mcp

Security Audits

LicenseUnknownSourceWarnRepositoryPass

Frequently Asked Questions

What is smart-search?

Smart Search automatically routes your search queries to the best MCP engine based on content analysis, ensuring you get the most relevant results for code, academic research, news, Chinese content, GitHub issues, images, or direct URLs. It saves time by eliminating the need to manually select search tools for different query types.

How to install smart-search?

To install smart-search: add a marketplace (/plugin marketplace add <org/repo>), then add the config to /plugin install smart-search@<marketplace>. Finally, /plugin in Claude Code.

What is smart-search best for?

smart-search is a plugin categorized under General. It is designed for: mcp. Created by QLBQLB.

What can I use smart-search for?

smart-search is useful for: Quickly find code examples, API documentation, or library tutorials by typing a query with keywords like 'code' or 'function'.; Search for academic papers, research studies, or theses without switching to a separate scholarly search engine.; Get the latest news or recent updates on a topic by including words like 'today' or 'latest' in your query.; Find Chinese-language content or domestic Chinese resources by including Chinese keywords in your search.; Look up GitHub repositories, issues, pull requests, or commits by mentioning 'github' or 'repo' in your query.; Analyze images or videos by asking for OCR, screenshot analysis, or picture description..