Skip to main content

doubao-search-mcp

基于火山引擎豆包联网搜索 API 的 MCP 服务,提供 web_search 工具(网页 / 图片搜索),帮助大模型 / AI Agent 获取更准确、更新鲜的外部信息。

本包复刻自火山官方 volcengine/mcp-servermcp_server_askecho_search_infinity(MIT 协议),修复了 mcp SDK 2.x 下的导入崩溃问题,并独立发布到 PyPI。

功能

提供 web_search 工具:

参数 类型 默认 说明
Query str 搜索 query,1~100 个字符(必填)
Count int 10 返回条数;web 最多 50,image 最多 5
SearchType str web 仅支持 webimage
TimeRange str OneDay/OneWeek/OneMonth/OneYear 或日期区间 YYYY-MM-DD..YYYY-MM-DD
AuthLevel int 0 权威等级过滤;0 默认,1 非常权威

安装运行

需要 Python 3.12 / 3.13 与 uv

# 免安装直接运行(首次自动从 PyPI 拉取)
uvx doubao-search-mcp

# 或安装成常驻工具
uv tool install doubao-search-mcp
doubao-search-mcp

传输方式

默认 stdio;也支持 SSE / streamable-http:

uvx doubao-search-mcp -t sse
uvx doubao-search-mcp -t streamable-http

鉴权

二选一,通过环境变量提供(两者都不配置会启动失败,日志提示 Authentication missing):

方式 环境变量
API Key ASK_ECHO_SEARCH_INFINITY_API_KEY
火山引擎 AK/SK VOLCENGINE_ACCESS_KEY + VOLCENGINE_SECRET_KEY

客户端配置

Claude Code

claude mcp add doubao-search-mcp \
  -e ASK_ECHO_SEARCH_INFINITY_API_KEY=你的Key \
  -- uvx doubao-search-mcp

通用 mcp.json / claude_desktop_config.json

{
  "mcpServers": {
    "doubao-search-mcp": {
      "command": "uvx",
      "args": ["doubao-search-mcp"],
      "env": {
        "ASK_ECHO_SEARCH_INFINITY_API_KEY": "你的Key"
      }
    }
  }
}

为什么锁 mcp<2

官方源码依赖 mcp>=1.9.4 未锁上限,而 mcp Python SDK 2.x 移除了 mcp.server.FastMCP 的导入路径,导致服务启动即崩溃。本包将依赖锁定为 mcp>=1.9.4,<2,保证在最新 1.x 上稳定运行;待上游适配 2.x 后再考虑升级。

License

MIT。源码源自 volcengine/mcp-server

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doubao_search_mcp-0.1.0.tar.gz (51.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doubao_search_mcp-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file doubao_search_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: doubao_search_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 51.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for doubao_search_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b30fe324f949dc3c420e67bc8bc059c23744940864ab2ec8697ebfe7451fe82
MD5 45f0c7bbf4cef5659e29c25dad1afade
BLAKE2b-256 ab00f1c4bb9281f8925463f5b26b80e6a31778eff04e95b6be89d430a2585e25

See more details on using hashes here.

File details

Details for the file doubao_search_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for doubao_search_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd459a6e4796afca7cf6b4e8aefd8a30e65e55638d1e349386fd99e0849c14d7
MD5 0d51f4c42f8551b0295efbe3c1706006
BLAKE2b-256 e97f658abe60d55b720453c28069e90018901a464034d3b641580a098e2600ea

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page