Is the Brave Search MCP server safe? What it can reach
What the Brave Search MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Brave maintains this server in its own GitHub organization. It runs locally over stdio by default and signs in with a Brave Search API key. All nine tools are searches, so it cannot change anything on an account. You can narrow it with an allowlist, and its HTTP mode has no authentication.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| brave/brave-search-mcp-server | Official | active |
It runs as a local process on your machine.
How it signs in
A Brave Search API key, passed as BRAVE_API_KEY or read from the file named in BRAVE_API_KEY_FILE. Searches count against that key’s plan.
What its tools can do
| Kind | Tools |
|---|---|
| Read | brave_web_search, brave_local_search, brave_video_search, brave_image_search, brave_news_search, brave_answers, brave_summarizer, brave_place_search, brave_llm_context |
| Write | none documented |
| Can’t be undone | none documented |
brave_summarizer is deprecated and remains for existing Pro AI subscribers. brave_answers is the preferred replacement.
Built-in limits
| Option | What it does |
|---|---|
BRAVE_MCP_ENABLED_TOOLS | A space-separated allowlist of tools to expose (also --enabled-tools). |
BRAVE_MCP_DISABLED_TOOLS | A space-separated blocklist of tools to hide (also --disabled-tools). |
BRAVE_API_KEY_FILE | Reads the key from a file instead of an environment variable. It takes precedence over BRAVE_API_KEY. |
BRAVE_MCP_HOST, BRAVE_MCP_ALLOWED_ORIGINS, BRAVE_MCP_ALLOWED_HOSTS | The HTTP transport binds to 127.0.0.1 by default and rejects unlisted browser origins. Host validation is opt-in. |
The risks
- Every query leaves your machine for Brave’s API, so an injected instruction can make the agent search for, and so leak, text from your session.
- Search results are untrusted web content, so a hostile page can carry instructions that the agent reads back as if they were yours.
- The HTTP transport has no authentication, so binding it to 0.0.0.0 lets anyone on the network spend your API quota.
- The API key is the only credential, and it carries your plan’s query limits and billing.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --env BRAVE_API_KEY=... brave-search -- npx -y @brave/brave-search-mcp-server --transport stdioClaude Code names MCP tools mcp__brave-search__<tool>. Once you know the tool names, deny the ones you won’t use and set the rest to ask in .claude/settings.json.
Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.brave-search]
command = "npx"
args = ["-y", "@brave/brave-search-mcp-server", "--transport", "stdio"]
env_vars = ["BRAVE_API_KEY"]Checklist
- Set BRAVE_MCP_ENABLED_TOOLS to only the search tools you use.
- Use BRAVE_API_KEY_FILE so the key stays out of config files.
- Keep the HTTP transport on 127.0.0.1.
- Treat search results as untrusted text.
Checked against the vendor documentation on November 25, 2026. brave/brave-search-mcp-server README · Repository metadata (GitHub API)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing