An MCP (Model Context Protocol) server for Bocha AI web search functionality. This server provides a powerful search tool that returns web content and related images, supporting both human-readable Markdown output and raw JSON data.
Bocha AI (博查AI) is a legal and compliant AI search service operating in the People's Republic of China (PRC), specifically designed for searching Chinese internet content. It provides comprehensive search capabilities while adhering to all relevant Chinese regulations and standards.
bocha_web_search
A powerful web search tool that retrieves content from Chinese internet sources.
query
(required): Search keywordsfreshness
(optional): Time range for search resultssummary
(optional): Enable detailed text summariescount
(optional): Number of results to returnraw_json
(optional): Return format controlMake sure you have Node.js and npm installed already.
git clone [email protected]:yoko19191/bocha-ai-mcp-server.git
cd bocha-ai-mcp
cp .env.example .env # configure your bocha api key
npm install
npm run build
mcp.json
{
"mcpServers": {
"bocha-ai-search": {
"command": "node",
"args": ["/ABSOLUTE/PATH/bocha-ai-mcp-server/build/index.js"],
"env": {
"BOCHA_API_KEY": "<YOUR_BOCHA_API_KEY>"
}
}
}
}
env BOCHA_API_KEY=YOUR_BOCHA_API_KEY node /ABSOLUTE/PATH/bocha-ai-mcp-server/build/index.js
This project currently implements the Web Search API functionality of Bocha AI. Future updates will include support for:
MIT