mcpField
B
baidu-search

baidu-search

github.com/countbot-aiProductivity7831.8k installsUpdated 2d ago
Repository

About baidu-search

baidu-search is an AI search skill built on the Baidu Qianfan platform. It supports command-line queries across web search, encyclopedia sources, and AI search, with JSON output, result limits, and current-date context.

Key features

  1. 01Web and AI-powered search
  2. 02Searches Baidu Baike and Miaodong Baike
  3. 03Outputs results as JSON
  4. 04Limits the number of results
  5. 05Adds current-date context automatically

Use cases

  1. 01Retrieve current web results from the command line
  2. 02Look up encyclopedia entries or Miaodong Baike videos
  3. 03Provide structured search results to an AI workflow

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/countbot-ai/countbot --skill baidu-search

After installing, type/baidu-searchin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

scripts/
baidu_search_manager.py
config.json
config.json.example
search.py

Details

From the project README

百度 AI 搜索

基于百度千帆平台的 AI 搜索服务,支持多种搜索模式。

配置

编辑 skills/baidu-search/scripts/config.json,填写 API Key:

{
  "api_key": "bce-v3/YOUR_API_KEY_HERE"
}

API Key 从 百度千帆平台 获取。

命令行调用

# 网页搜索(默认)
python3 skills/baidu-search/scripts/search.py "搜索关键词"

# JSON 输出(推荐 AI 使用)
python3 skills/baidu-search/scripts/search.py "人工智能最新进展" --json

# 限制结果数
python3 skills/baidu-search/scripts/search.py "Python教程" --limit 5

# 站点过滤
python3 skills/baidu-search/scripts/search.py "天气预报" --sites weather.com.cn

# 时间过滤(week/month/semiyear/year)
python3 skills/baidu-search/scripts/search.py "AI新闻" --recency week

# 百度百科
python3 skills/baidu-search/scripts/search.py "人工智能" --api-type baike

# 秒懂百科(视频)
python3 skills/baidu-search/scripts/search.py "深度学习" --api-type miaodong_baike

# AI 智能生成
python3 skills/baidu-search/scripts/search.py "什么是人工智能" --api-type ai_chat

API 类型

类型说明
web_search网页搜索(默认)
baike百度百科
miaodong_baike秒懂百科(视频)
ai_chatAI 智能搜索生成

注意事项

  • 免费额度:100 次/天
  • 网页搜索查询最长 72 字符
  • 自动包含当前日期上下文,方便处理时效性查询

Comments

Markdown supported