Web, image, video, news, local POI and LLM context search via the Brave Search API.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add brave-search-mikechao --env BRAVE_API_KEY='<BRAVE_API_KEY>' -- npx -y brave-search-mcp~/.codex/config.toml
[mcp_servers.brave-search-mikechao]
command = "npx"
args = ["-y", "brave-search-mcp"]
env = { BRAVE_API_KEY = "<BRAVE_API_KEY>" }
# codex mcp add brave-search-mikechao --env BRAVE_API_KEY='<BRAVE_API_KEY>' -- npx -y brave-search-mcp~/.cursor/mcp.json
{
"mcpServers": {
"brave-search-mikechao": {
"command": "npx",
"args": [
"-y",
"brave-search-mcp"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"brave-search-mikechao": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"brave-search-mcp"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"brave-search-mikechao": {
"command": "npx",
"args": [
"-y",
"brave-search-mcp"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"brave-search-mikechao": {
"command": "npx",
"args": [
"-y",
"brave-search-mcp"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"brave-search-mikechao": {
"command": "npx",
"args": [
"-y",
"brave-search-mcp"
],
"env": {
"BRAVE_API_KEY": "<BRAVE_API_KEY>"
}
}
}
}需要的环境变量
BRAVE_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。