Bocha is an AI-focused search engine that enables your AI applications to access high-quality information from nearly 10 billion web pages and ecosystem content sources, covering various domains including weather, news, encyclopedias, medical information, train tickets, images, and more.
Before installing, you'll need to obtain an API key from the Bocha AI Open Platform by logging in and requesting access.
Clone the repository to your local machine:
git clone git@github.com:BochaAI/bocha-search-mcp.git
Configure the MCP server in your Claude Desktop configuration file:
On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows:
%APPDATA%/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"bocha-search-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/bocha-search-mcp",
"run",
"bocha-search-mcp"
],
"env": {
"BOCHA_API_KEY": "sk-****"
}
}
}
}
Be sure to replace /path/to/bocha-search-mcp
with the actual path where you cloned the repository, and sk-****
with your actual API key from the Bocha platform.
To debug and test your local MCP server installation:
npx @modelcontextprotocol/inspector uv --directory /path/to/bocha-search-mcp run bocha-search-mcp
Bocha offers two primary search tools:
This tool provides general web search capabilities, returning web page information including titles, URLs, summaries, website names, and more.
YYYY-MM-DD
, YYYY-MM-DD..YYYY-MM-DD
, noLimit
, oneYear
, oneMonth
, oneWeek
, oneDay
noLimit
This enhanced search tool builds on the web search capabilities and additionally returns structured modal cards for specific domains through AI-powered semantic recognition.
Same as Bocha Web Search:
The AI Search includes specialized cards for weather, encyclopedia entries, medical information, calendars, train schedules, horoscopes, precious metals, exchange rates, oil prices, mobile phones, stocks, automobiles, and more.
Bocha can be integrated with various platforms including Ark, Python applications, Claude, Cursor, and more.
Bocha Web Search offers general internet search capabilities, returning up to 50 results per search with detailed information about each webpage. Unlike traditional search engines that use keyword matching and paid ranking mechanisms, Bocha employs multimodal hybrid search and semantic ranking technology optimized for AI applications, delivering cleaner, more accurate, and higher-quality answers.
Bocha AI Search enhances the Web Search functionality by using AI to recognize search query semantics and return structured modal cards for vertical domains. These cards provide specialized information for weather, encyclopedias, medical data, calendars, train schedules, horoscopes, precious metals, exchange rates, oil prices, mobile phones, stocks, automobiles, and more. This significantly improves semantic recognition, result timeliness, and content richness.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "bocha-search-mcp" '{"command":"uv","args":["--directory","/path/to/bocha-search-mcp","run","bocha-search-mcp"],"env":{"BOCHA_API_KEY":"sk-****"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"bocha-search-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/bocha-search-mcp",
"run",
"bocha-search-mcp"
],
"env": {
"BOCHA_API_KEY": "sk-****"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"bocha-search-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/bocha-search-mcp",
"run",
"bocha-search-mcp"
],
"env": {
"BOCHA_API_KEY": "sk-****"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect