Baidu Search MCP Server provides web search capabilities through Baidu, with additional features for content fetching and intelligent text extraction. It's designed to format search results specifically for large language model consumption while handling rate limiting and error processing automatically.
To install the Baidu Search Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Evilran/baidu-mcp-server --client claude
Install directly from PyPI using uv
:
uv pip install baidu-mcp-server
Download Claude Desktop
Create or edit your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration to your file:
{
"mcpServers": {
"baidu-search": {
"command": "uvx",
"args": ["baidu-mcp-server"]
}
}
}
The search tool allows you to perform web searches through the Baidu search engine:
async def search(query: str, max_results: int = 10) -> str
Parameters:
query
: The search query stringmax_results
: Maximum number of results to return (default: 10)Returns: A formatted string containing search results with titles, URLs, and snippets.
The content fetching tool retrieves and parses webpage content:
async def fetch_content(url: str) -> str
Parameters:
url
: The webpage URL to fetch content fromReturns: Cleaned and formatted text content from the webpage.
The server includes built-in rate limiting protection:
The server performs several optimizations on search results:
The server includes comprehensive error handling:
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 > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.