Brave 官方服务器,接入 Brave Search API,支持网页、本地商户、图片、视频和新闻搜索以及 AI 摘要。
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add brave-search -- npx -y @brave/brave-search-mcp-server --transport stdio~/.codex/config.toml
[mcp_servers.brave-search]
command = "npx"
args = ["-y", "@brave/brave-search-mcp-server", "--transport", "stdio"]
# codex mcp add brave-search -- npx -y @brave/brave-search-mcp-server --transport stdio~/.cursor/mcp.json
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
]
}
}
}.vscode/mcp.json
{
"servers": {
"brave-search": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server",
"--transport",
"stdio"
]
}
}
}远程托管
claude mcp add --transport http brave-search https://server.smithery.ai/brave/mcp --header 'Authorization: Bearer <SMITHERY_API_KEY>'~/.codex/config.toml
[mcp_servers.brave-search]
url = "https://server.smithery.ai/brave/mcp"
bearer_token_env_var = "BRAVE_SEARCH_SMITHERY_API_KEY"
# codex mcp add brave-search --url https://server.smithery.ai/brave/mcp --bearer-token-env-var BRAVE_SEARCH_SMITHERY_API_KEY
# export BRAVE_SEARCH_SMITHERY_API_KEY=<SMITHERY_API_KEY>~/.cursor/mcp.json
{
"mcpServers": {
"brave-search": {
"url": "https://server.smithery.ai/brave/mcp",
"headers": {
"Authorization": "Bearer <SMITHERY_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"brave-search": {
"type": "http",
"url": "https://server.smithery.ai/brave/mcp",
"headers": {
"Authorization": "Bearer <SMITHERY_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"brave-search": {
"httpUrl": "https://server.smithery.ai/brave/mcp",
"headers": {
"Authorization": "Bearer <SMITHERY_API_KEY>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://server.smithery.ai/brave/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer <SMITHERY_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"brave-search": {
"url": "https://server.smithery.ai/brave/mcp",
"headers": {
"Authorization": "Bearer <SMITHERY_API_KEY>"
}
}
}
}