Baidu Baike MCP
Provides tools for searching Baidu Baike (百度百科) lemmas and retrieving structured encyclopedia entries (summary, infobox, catalog, body text) by title, lemma ID, or Baike URL, with UTF-8 Chinese content returned verbatim.
Falls back to Chinese Wikipedia (zh.wikipedia.org) to retrieve encyclopedia content when Baidu's endpoints are blocked by WAF or otherwise unavailable.
Baidu Baike MCP (百度百科)
Baidu Baike MCP by Nishant Dilip Sharma (NishantDilipSharma/baidu-baike) — login-free Chinese encyclopedia search & structured entries for any MCP app.
Generic Model Context Protocol (MCP) server by Nishant Dilip Sharma for searching and reading Baidu Baike.
One server for any MCP-compatible app — Claude Desktop, Claude Code, Cursor, Codex, ChatGPT MCP clients, custom agents, and more.
No login
No API key
Stdio MCP
Capabilities
Tool | What it does |
| Search lemmas; titles, lemma IDs, blurbs, URLs |
| Structured entry (summary, infobox, catalog, body) by lemma, ID, or Baike URL |
Fallbacks when cloud IPs hit Baidu WAF: Baike desktop → Baidu OpenAPI → Chinese Wikipedia (zh.wikipedia.org).
Chinese text is returned UTF-8 verbatim.
Related MCP server: bingcn
Author
Nishant Dilip Sharma · GitHub: NishantDilipSharma
Install from PyPI
pip install baidu-baike-mcp
# or
uvx --from baidu-baike-mcp baidu-baike-mcpThen point your MCP client at the baidu-baike-mcp console script (or python -m baidu_baike_mcp).
1. Install the server (once)
git clone https://github.com/NishantDilipSharma/baidu-baike.git
cd baidu-baike/server
uv syncRequirements: uv (recommended) or Python 3.12+.
Keep the absolute path to …/baidu-baike/server handy — every app below needs it.
2. How to add it to your app
All apps run the same stdio command. Only the config file / UI differs.
Shared MCP block (copy this)
Replace /absolute/path/to/baidu-baike/server with your real path:
"baidu-baike": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/baidu-baike/server",
"python",
"-m",
"baidu_baike_mcp"
],
"env": {
"PYTHONIOENCODING": "utf-8",
"PYTHONUTF8": "1"
}
}Full file example: mcp.stdio.example.json.
Claude Desktop
Open Claude Desktop → Settings → Developer → Edit Config
Open
claude_desktop_config.jsonUnder
mcpServers, paste the shared block above (add commas as needed)Save and fully quit/reopen Claude Desktop
Confirm
baidu-baiketools appear in the MCP tools list
Claude Code
Open Claude Code MCP settings (or edit its MCP config JSON)
Add the same
baidu-baikeserver block undermcpServersRestart Claude Code / reload MCP servers
Run a prompt that needs Baike lookup to verify
baike_search/get_baike_entry
Cursor
Open Cursor Settings → MCP (or edit your MCP config JSON)
Add the same
baidu-baikestdio server blockSave and reload MCP servers
Optional: this repo also ships plugin metadata (
.cursor-plugin/,plugin.json) for plugin loaders — still the same MCP underneath
Codex / ChatGPT (MCP-compatible hosts)
Open the host’s custom MCP / tools / connectors settings
Choose add stdio MCP server (wording varies)
Command:
uvArgs:
run--directory/absolute/path/to/baidu-baike/serverpython-mbaidu_baike_mcpEnv:
PYTHONIOENCODING=utf-8,PYTHONUTF8=1Save and refresh tools
Other MCP apps / custom agents
If the app accepts an MCP JSON config, merge:
{
"mcpServers": {
"baidu-baike": { "...shared block..." }
}
}If it only has UI fields, map:
Field | Value |
Command |
|
Arguments |
|
Transport | stdio |
Docker (any host that can run a container over stdio)
cd server
docker build -t baidu-baike-mcp .
docker run -i --rm baidu-baike-mcpIn the app config, set command/args to that docker run -i --rm baidu-baike-mcp invocation instead of uv.
Cloud/proxy notes: server/AGENT_SETUP.md.
3. Suggested agent workflow
Call
baike_searchto disambiguate multi-sense titlesCall
get_baike_entrywith the chosen lemma (andlemma_idwhen available)Quote Chinese content verbatim; keep fallback source attribution if present
License
MIT © Nishant Dilip Sharma
This server cannot be deployed
Maintenance
Related MCP Connectors
Baidu search results and Chinese SERP data via the Apify Baidu Search Scraper, hosted MCP.
Web search, scraping, RAG answers with citations, and translation as MCP tools.
Web Content Extract Mcp connects AI agents to real public APIs via MCP. Tools include
Chinese web novel MCP: 36 tools (outline, prose, review, coach, KD export). BYOK, no API key.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides web search capabilities through Baidu with content fetching and parsing features, allowing LLMs to search the web and extract webpage content.146 PyPI28MIT
- AlicenseBqualityDmaintenanceA Chinese Bing search tool based on MCP protocol, which supports calling through AI tools such as Claude, and can obtain webpage content without API keys.22Apache 2.0
- FlicenseNot gradedqualityDmaintenanceWraps the Kimi Coding Search and Fetch APIs into MCP tools for web searching and content retrieval. It enables LLMs to perform targeted searches and crawl web pages using standardized interfaces.1-
- AlicenseAqualityCmaintenanceProvides Bing Chinese search and webpage crawling tools, enabling AI assistants to fetch real-time web information without API keys.2318 npm70MIT