参见: 百度千帆官网

配置 MCP Server

~/.claude.json 文件中添加mcp配置

注意: 将 "type": "streamableHttp" 更改为 "type": "http"

百度搜索mcp

"web-search-mcp-server": {
	"type": "http",
	"description": "根据用户提问,搜索实时网页信息",
	"url": "https://qianfan.baidubce.com/v2/tools/web-search/mcp",
	"headers": {
		"Authorization": "Bearer 你的API Key"
	}
}

百度百科mcp

"baike-mcp-server": {
  "name": "baike-mcp-server",
  "type": "http",
  "description": "根据用户输入词条名或者词条ID去百度百科查询跟该词条相关的内容",
  "isActive": true,
  "timeout": "4",
  "url": "https://qianfan.baidubce.com/v2/mcp/baike",
  "headers": {
	"Authorization": "Bearer 你的API Key"
  }
}

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐