Integrations
Supports environment variable configuration through .env files, enabling customization of API endpoints, authentication credentials, and application settings.
Provides access to Baidu Baike (Baidu Encyclopedia) content, allowing retrieval of discussion data from encyclopedia entries and rendering structured data into readable analysis content.
Uses npm for package management, dependency installation, and running build and development scripts for the MCP server.
MCP-Baike-Render
MCP-Baike-Render 是一个用于访问和渲染百度百科内容的 MCP Server。它提供了两个主要功能:
- 通过
request_baike
工具获取百度百科讨论数据 - 通过
render_baike
提示模板将结构化数据渲染为易读的分析内容
安装
环境变量配置
复制 .env.example
文件并重命名为 .env
,然后根据需要修改其中的配置。
Cookie配置说明
BAIKE_COOKIE
环境变量用于存储百度百科的Cookie信息,这对于获取某些受限内容或防止请求被限制非常重要。要获取Cookie:
- 使用浏览器登录百度百科
- 使用浏览器开发者工具(F12),在网络请求中查看任意百科API请求的Cookie头
- 复制完整的Cookie值,放入
.env
文件的BAIKE_COOKIE
字段中 - Cookie示例格式:
PSTM=1709884903; BIDUPSID=AC7D9378915FB2E7A091826DB946A7BA; ...
注意:Cookie包含敏感信息,请勿将其提交到版本控制系统或分享给他人。
使用方法
启动服务器
开发模式
功能
request_baike 工具
该工具允许获取特定百度百科词条的讨论数据。
参数:
url
: 百度百科URL或词条ID,例如 "https://baike.baidu.com/item/DeepSeek" 或 "65258669"
render_baike 提示模板
该提示模板基于获取的百科讨论数据,生成一份全面的分析,包括:
- 讨论的主要话题
- 主要观点及其倾向
- 热门讨论
- 反映的社会热点或技术趋势
- 词条主题的重要性和影响力
示例
This server cannot be installed
A MCP server that fetches and renders Baidu Baike (Chinese Wikipedia) discussion content, allowing users to access encyclopedia article discussions and generate readable analysis of the structured data.