MCP Brave Search Server An MCP (Model Context Protocol) server that integrates with the Brave Search API to provide web and local search capabilities for Large Language Models (LLMs). Features
brave_web_search: Performs general web searches for news, articles, and online content. brave_local_search: Searches for local businesses and places, with fallback to web search if no local results are found. Rate limiting to respect Brave API constraints. Asynchronous HTTP requests using httpx.
Installation pip install mcp-brave-search
Requirements
Python 3.9 or higher A Brave Search API key (set as BRAVE_API_KEY environment variable)
Setup
Obtain a Brave Search API key from Brave Search API. Set the API key in a .env file or as an environment variable:export BRAVE_API_KEY="your-api-key"
Install the package:pip install mcp-brave-search
Usage Run the server: mcp-brave-search
To integrate with an MCP client like Claude Desktop, add the following to claude_desktop_config.json: { "mcpServers": { "brave_search": { "command": "uvx", "args": ["mcp-brave-search"] } } }
If you’re not using uvx, adjust the command to use python or the path to your Python executable: json
{ "mcpServers": { "brave_search": { "command": "python", "args": ["-m", "brave_search.server"] } } }
Tools
brave_web_search: Search the web with pagination support. Inputs: query (string), count (1-20, default 10), offset (0-9, default 0) Example: brave_web_search(query="python tutorials", count=5)
brave_local_search: Search for local businesses or places. Inputs: query (string), count (1-20, default 5) Example: brave_local_search(query="pizza near Central Park")
Development To contribute or modify the server:
Clone the repository:git clone https://github.com/your-repo/mcp-brave-search.git
Install dependencies:pip install -r requirements.txt
Run the server locally:python -m brave_search.server
License MIT License
Metadata
Release files for mcp-brave-search 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_brave_search-0.1.1.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_brave_search-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / mcp_brave_search-0.1.1.tar.gz
| Download URL | mcp_brave_search-0.1.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
babedaf03c1126520a77a921ac73498392f01cee1ec898db006a303cad44daa8
|
|
BLAKE2b-256 checksum How to use checksums |
0931152cb1a5c2f9bae8b5748a0e80009f3e6efcd746e9dbff299547e5f04eb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / mcp_brave_search-0.1.1-py3-none-any.whl
| Download URL | mcp_brave_search-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebcbd0de5093773be878e656a4e46b14a4d95fa774f5bdb56f8599a8329dca9b
|
|
BLAKE2b-256 checksum How to use checksums |
7f0fd653089ca1fab63624f902e609f72d3c7eb8006fceb1966b43ec89dcc2db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for mcp-brave-search 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.