Get the FREE Ultimate OpenClaw Setup Guide →

mcp -brave-search

MCP Server for Brave Search

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio zed-extensions-mcp-server-brave-search npx -y mcp-server-brave-search \
  --env BRAVE_API_KEY="YOUR_BRAVE_API_KEY"

How to use

This MCP server is a wrapper around Brave Search's MCP server, enabling Zed to communicate with Brave's search capabilities via the Brave Search MCP API. It requires a Brave API key to authenticate requests. Once started, the server exposes the usual MCP endpoints that Zed can use to run search-related commands and queries through Brave Search. The Brave API key should be provided in your environment or configuration so the server can authorize requests to Brave's service. You will typically configure the server name (mcp-server-brave-search) in your Zed context and supply the API key in the settings; the server will then route MCP calls to Brave Search accordingly.

How to install

Prerequisites:

  • Node.js and npm installed on your machine (Node >= 14 recommended).

Installation steps:

  1. Install the MCP Brave Search server via npx (no global install required): npm install -g npm npx -y mcp-server-brave-search

  2. Alternatively run directly in a project environment (local development): mkdir my-mcp && cd my-mcp npm init -y npm install --save mcp-server-brave-search npx -y mcp-server-brave-search

  3. Set your Brave API key as an environment variable or in the server configuration:

    • Environment variable (preferred for local dev): BRAVE_API_KEY=your_brave_api_key
    • Or provide in the server's config/settings as brave_api_key (see README example).
  4. Start the server and verify it is listening on the expected MCP port (default 8000 if not overridden) and accessible from your Zed instance.

Additional notes

Important notes:

  • This server requires a Brave API key. Sign up at Brave's Brave Search API page and generate an API key from the developer dashboard.
  • Ensure you respect Brave's usage quotas (Free tier provides a set number of queries per month).
  • In Zed settings, you must provide the brave_api_key value under the mcp-server-brave-search context to enable authenticated requests.
  • If you rotate your API key, update the BRAVE_API_KEY environment variable or the corresponding settings in your deployment.
  • If you encounter connectivity issues, verify network access to Brave's API endpoints and confirm the API key is correctly provided to the server.

Related MCP Servers

Sponsor this space

Reach thousands of developers