doubao-search-mcp
基于火山引擎豆包联网搜索 API 的 MCP 服务,提供 web_search 工具(网页 / 图片搜索),帮助大模型 / AI Agent 获取更准确、更新鲜的外部信息。
本包复刻自火山官方
volcengine/mcp-server的mcp_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 |
仅支持 web 或 image |
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 |
- 服务开通:https://console.volcengine.com/search-infinity/web-search
- API Key 创建:https://console.volcengine.com/search-infinity/api-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。
Metadata
Release files for doubao-search-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| doubao_search_mcp-0.1.0.tar.gz | 51.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| doubao_search_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.4 kB
Release files / doubao_search_mcp-0.1.0.tar.gz
| Download URL | doubao_search_mcp-0.1.0.tar.gz |
|---|---|
| Size | 51.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b30fe324f949dc3c420e67bc8bc059c23744940864ab2ec8697ebfe7451fe82
|
|
BLAKE2b-256 checksum How to use checksums |
ab00f1c4bb9281f8925463f5b26b80e6a31778eff04e95b6be89d430a2585e25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / doubao_search_mcp-0.1.0-py3-none-any.whl
| Download URL | doubao_search_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd459a6e4796afca7cf6b4e8aefd8a30e65e55638d1e349386fd99e0849c14d7
|
|
BLAKE2b-256 checksum How to use checksums |
e97f658abe60d55b720453c28069e90018901a464034d3b641580a098e2600ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for doubao-search-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.