Atlas / MCP servers / brave / Brave Search

Brave SearchSAFE

mcp/brave/brave-search-6

None

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
—
Transport
stdio · streamable-http
License
MIT
Stars
1,466
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

An MCP server implementation that integrates the Brave Search API, providing comprehensive search capabilities including web search, local business search, place search, image search, video search, news search, LLM context, and AI-powered summarization. This project supports both STDIO and HTTP transports, with STDIO as the default mode.

[](https://deepwiki.com/brave/brave-search-mcp-server)

Migration

1.x to 2.x

Default transport now STDIO

To follow established MCP conventions, the server now defaults to STDIO. If you would like to continue using HTTP, you will need to set the BRAVE_MCP_TRANSPORT environment variable to http, or provide the runtime argument --transport http when launching the server.

Response structure of brave_image_search

Version 1.x of the MCP server would return base64-encoded image data along with image URLs. This dramatically slowed down the response, as well as consumed unnecessarily context in the session. Version 2.x removes the base64-encoded data, and returns a response object that more closely reflects the original Brave Search API response. The updated output schema is defined in `src/tools/images/schemas/output.ts`.

Tools

Web Search (brave_web_search)

Performs comprehensive web searches with rich result types and advanced filtering options.

Parameters:

  • query (string, required): Search terms (max 400 chars, 50 words)
  • country (string, optional): Country code (default: "US")
  • search_lang (string, optional): Search language (default: "en")
  • ui_lang (string, optional): UI language (default: "en-US")
  • count (number, optional): Results per page (1-20, default: 10)
  • offset (number, optional): Pagination offset (max 9, default: 0)
  • safesearch (string, optional): Content filtering ("off", "moderate", "strict
Read from source at commit 6a43063316e7OBSERVED · 2026-09-24
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (npm)
claude mcp add brave-search-mcp-server --env BRAVE_API_KEY=${BRAVE_API_KEY} -- npx -y @brave/[email protected]
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (2 observation(s))
Network
declared (1 observation(s))
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (10)

LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierignore
.prettierignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/images/index.test.ts:3
import { useTestClient } from '../../testUtils/mcpTestHarness.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/images/index.ts:3
import API from '../../BraveAPI/index.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/llm_context/index.test.ts:3
import { useTestClient } from '../../testUtils/mcpTestHarness.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/llm_context/index.ts:3
import API from '../../BraveAPI/index.js';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/local/index.test.ts:3
import { useTestClient } from '../../testUtils/mcpTestHarness.js';
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:427
- `npm run serve:http`: Build, then serve over HTTP at `http://127.0.0.1:8080/mcp`
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:429
- `npm run inspector:http`: Launch MCP Inspector against `http://127.0.0.1:8080/mcp`
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/protocols/http.test.ts:64
baseUrl = `http://127.0.0.1:${port}`;
LOWInventory / provenance · mcp.no_tools_extracted · CWE-1104
server.json
Why it matters. the tool list is enumerated at runtime by tools/list, not declared in source
Fix. the page says so rather than showing an empty table

Gates applied: no_behavioural_pass.

Audited 2026-09-24 · audit v0.4.1 · source sha 6a43063316e7full audit observations/trust-audit/mcp-server/brave__brave-search-6.json · Report an issue / request a re-scan
04

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-246a43063316e7SAFEB89first audit
05

Questions

What is the Brave Search MCP server?

None

Is Brave Search safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Brave Search need?

It reads BRAVE_API_KEY and BRAVE_API_KEY_FILE from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Brave Search run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @brave/brave-search-mcp-server at 2.1.4.

How current is this page?

The grade is for one exact copy of the source (6a43063316e7), read on 2026-09-24. The repository is watched and re-audited when it changes.

Advertisement