baidu_searchLABSCO SUMMARY
One call to Baidu's Wenxin search, with the model and the freshness of results under your control.
baidu_search is the only tool. Set search_mode to required when the answer must come from the web, turn on deep search for harder questions, and add a recency filter when older pages would mislead. There is no page fetch: you get search results and their sources, not the full text of a page.
What it is
A one-tool Baidu client: baidu_search sends your query to Baidu's Wenxin (ERNIE) search API and returns search results with their reference sources.
What you get
- Search through Baidu's Wenxin API with a choice of model — ernie-3.5-8k by default, or ernie-4.0-8k, deepseek-r1 or deepseek-v3 — which suits Chinese-language questions.
- Control over how the search runs: search_mode auto, required or disabled, an optional deep search, and a recency filter of a week, a month, half a year or a year.
Requirements
A Baidu AI Cloud API key in BAIDU_API_KEY — create an application at cloud.baidu.com to get one.
Setup effort
Build from source
USE CASES
Answering a question that needs current Chinese-language sources
Results come back as titles, summaries and links in one pass, which is usually enough to answer or to choose what to open.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation. The npm package baidu-search-mcp, which reports 2 tools, belongs to a different project. This one documents a single tool, baidu_search, and installs by building from source.
Requires
BAIDU_API_KEY in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
git clone https://github.com/appleinmusic/baidu-search-mcp
cd baidu-search-mcpInstall dependencies
npm installCompile the TypeScript
npm run buildMCP Clients
Any MCP client
{
"mcpServers": {
"baidu-search": {
"command": "node",
"args": [
"<YOUR_PATH_TO_BAIDU_SEARCH_MCP>/build/index.js"
],
"env": {
"BAIDU_API_KEY": "<YOUR_BAIDU_API_KEY>"
},
"disabled": false,
"autoApprove": []
}
}
}