
Baidu Search MCP Server
Enables AI assistants to perform intelligent web searches using the Baidu Wenxin API, supporting multiple models, search modes, and providing search results with reference sources.
README
Baidu Search MCP Server
这是一个用于 Model Context Protocol (MCP) 的百度搜索服务器实现,它允许AI助手使用百度文心API进行智能搜索。
功能特性
- 支持使用百度文心API进行智能搜索
- 支持多种模型选择(ernie-3.5-8k, ernie-4.0-8k, deepseek-r1, deepseek-v3)
- 提供搜索结果和参考来源
- 支持深度搜索和时效性过滤
安装
npm install @modelcontextprotocol/sdk axios
配置
-
首先需要获取百度文心API密钥:
- 访问 百度智能云
- 创建应用并获取API密钥
-
设置环境变量:
export BAIDU_API_KEY=your_api_key_here
使用方法
作为独立服务器运行
node build/index.js
在MCP配置中使用
在你的MCP设置文件中添加以下配置:
{
"mcpServers": {
"baidu-search": {
"command": "node",
"args": ["/path/to/baidu-search-mcp/build/index.js"],
"env": {
"BAIDU_API_KEY": "your_api_key_here"
},
"disabled": false,
"autoApprove": []
}
}
}
API
baidu_search
搜索工具支持以下参数:
query
(必需): 搜索查询文本model
: 使用的模型名称- 可选值: "ernie-3.5-8k", "ernie-4.0-8k", "deepseek-r1", "deepseek-v3"
- 默认值: "ernie-3.5-8k"
search_mode
: 搜索模式- 可选值: "auto", "required", "disabled"
- 默认值: "auto"
enable_deep_search
: 是否开启深度搜索(默认:false)search_recency_filter
: 搜索结果的时效性范围- 可选值: "week", "month", "semiyear", "year"
开发
- 克隆仓库
- 安装依赖:
npm install
- 编译TypeScript:
npm run build
许可证
MIT License
贡献
欢迎提交 Issues 和 Pull Requests!
免责声明
本项目不对API密钥的使用承担责任,请确保遵守百度文心API的使用条款和政策。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.