Content
<div align="center">
# Tool List
> *"You switched Claude Code to a Chinese LLM — and it can't browse the web anymore."*
[](LICENSE)
[](https://modelcontextprotocol.io)
[](#安装)
<br>
**One command to equip your Agent with Doubao Search: ByteDance’s exclusive info source, long-form snippets up to 2000 chars, publish time accurate to the second, 500 free searches/month.**
<sub>Doubao Search is a web search service built by Volcengine for AI agents, now open to developers.</sub>
<br>
[Why you need it](#why-you-need-it) · [Features](#features) · [Installation](#installation) · [Tool Parameters](#tool-parameters)
<br>
[English](#english)
</div>
---
## Why You Need It
Claude Code's built-in WebSearch is an Anthropic **server-side** tool. Point `ANTHROPIC_BASE_URL` at any Anthropic-compatible endpoint and your agent silently goes offline.
## Features
Here are some actual returns (raw output excerpts):
```
20 results returned, top 10 shown:
[1] "一人公司"与"手搓经济",两个新词寓春意-新华网
Source: 新华网 | 2026-03-19T09:00:22+08:00
URL: http://www.xinhuanet.com/tech/20260319/259b0a6eb28c...
When AI technology is making rapid progress, "machine replacing humans" anxiety is always there. The recently popular "一人公司" and "手搓经济" two new terms reveal another side of technological progress... (long-form snippet)
```
Some tested details:
- **Long-form snippets** (up to 2000 chars of article body per result) — consumable directly, no second crawl needed
- **Publish time down to the second** + source name on every result
- **Exclusive ByteDance sources**: Toutiao articles, Douyin Baike (top-ranked for entity lookups)
- **Cross-language**: English queries return first-party sources (official docs, changelogs)
- **`ContentTokenCount` per result** — budget your context window precisely
## Installation
### Step 1: Get an API Key
Go to [Doubao Search Console](https://console.volcengine.com/search-infinity/web-search-exp) to enable the service and create an API Key. **500 free searches/month**, paid by volume.
### Step 2: Add to Your Agent
**Claude Code** (one command):
```bash
claude mcp add doubao-search \
-e DOUBAO_SEARCH_API_KEY=your-key \
-- npx -y github:alchaincyf/doubao-search-mcp
```
Add `--scope user` to make it available for all projects.
**Cursor / Codex / other MCP clients** (config file):
```json
{
"mcpServers": {
"doubao-search": {
"command": "npx",
"args": ["-y", "github:alchaincyf/doubao-search-mcp"],
"env": {
"DOUBAO_SEARCH_API_KEY": "your-key"
}
}
}
}
```
**Simplified way**: just give your agent the repo link and say:
```
Help me install this MCP: https://github.com/alchaincyf/doubao-search-mcp
```
### Install from Source
```bash
git clone https://github.com/alchaincyf/doubao-search-mcp.git
cd doubao-search-mcp
npm install && npm run build
claude mcp add doubao-search \
-e DOUBAO_SEARCH_API_KEY=your-key \
-- node /absolute/path/doubao-search-mcp/dist/index.js
```
## Tool Parameters
The agent will have a new tool: `doubao_search(query, count, snippet_length, images)`.
| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | string | — | Search query, works in both English and Chinese |
| `count` | int 1-20 | 10 | Number of results to return |
| `snippet_length` | int 50-2000 | 600 | Maximum characters per snippet, adjust for in-depth reading |
| `images` | int 0-3 | 0 | Maximum images per result (CDN links, high bandwidth) |
## Background Story
As an AI native coder, I frequently use Claude Code and occasionally switch to Chinese LLMs. I hit a roadblock when searching went dark. Existing solutions had issues: dollar settlements, lack of Chinese content, and unstable domestic connections.
Doubao Search opened up to developers in July. After testing, I confirmed its API was designed with agents in mind — the token count field made it worth wrapping as an MCP.
## About the Author
**Huashu** — AI Native Coder, solo developer, notable project: 小猫补光灯 (Top1 on AppStore).
| Platform | Link |
|------|------|
| 🌐 Official Website | [bookai.top](https://bookai.top) · [huasheng.ai](https://www.huasheng.ai) |
| 𝕏 Twitter | [@AlchainHust](https://x.com/AlchainHust) |
| 📺 Bilibili | [花叔v](https://space.bilibili.com/14097567) |
| ▶️ YouTube | [@Alchain](https://www.youtube.com/@Alchain) |
| 📕 Xiaohongshu | [花叔](https://www.xiaohongshu.com/user/profile/5abc6f17e8ac2b109179dfdf) |
| 💬 WeChat | Search "花叔" or scan the QR code ↓ |
<img src="wechat-qrcode.jpg" alt="WeChat QR Code" width="360">
## License
MIT — free to use, modify, and distribute.
---
<div align="center">
<sub>Other projects by the author</sub>
[](https://github.com/alchaincyf/fanbox)
[女娲.skill — 蒸馏任何人的思维方式](https://github.com/alchaincyf/nuwa-skill) · [达尔文.skill — 让 Skill 无限进化](https://github.com/alchaincyf/darwin-skill) · [huashu-design — HTML 原生设计 skill](https://github.com/alchaincyf/huashu-design)
</div>
---
## English
> *"You switched Claude Code to a Chinese LLM — and it can't browse the web anymore."*
Claude Code's built-in WebSearch is an Anthropic **server-side** tool. Point `ANTHROPIC_BASE_URL` at any Anthropic-compatible endpoint and your agent silently goes offline.
**doubao-search-mcp** plugs that gap with [Doubao Search](https://console.volcengine.com/search-infinity/web-search-exp) — the search API Volcengine built for AI agents, now open to developers with **500 free searches/month**:
- **Long-form snippets** (up to 2000 chars of article body per result) — consumable directly, no second crawl needed
- **Publish time down to the second** + source name on every result
- **Exclusive ByteDance sources**: Toutiao articles, Douyin Baike (top-ranked for entity lookups)
- **Cross-language**: English queries return first-party sources (official docs, changelogs)
- **`ContentTokenCount` per result** — budget your context window precisely
Install (Claude Code):
```bash
claude mcp add doubao-search \
-e DOUBAO_SEARCH_API_KEY=your-key \
-- npx -y github:alchaincyf/doubao-search-mcp
```
Or add the JSON config above to any MCP client. Tool: `doubao_search(query, count, snippet_length, images)`.
MIT License © [Huashu](https://github.com/alchaincyf)