Skip to main content

MCP server for Brave Search API, providing web and local search capabilities

Project description

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"] } } }

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_brave_search-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_brave_search-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_brave_search-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_brave_search-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for mcp_brave_search-0.1.0.tar.gz
Algorithm Hash digest
SHA256 937e660fac21dcdcf85837365df9e33fb5164fda24cd930a87d03cbed69e1a5f
MD5 21a627c5203700386030dc4de68a018b
BLAKE2b-256 bdd858c1eb5f14182992ddbab5fdd5cd92e1cd4af9ebcf274327ac8d73c0151f

See more details on using hashes here.

File details

Details for the file mcp_brave_search-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_brave_search-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9793b5fd2b9d9a154cf829813b208a42496ec0b5ec66164594f033145795710b
MD5 c70c6e77e34d4c8944b7b87208a6eb70
BLAKE2b-256 b9da0b7baf785543a2c9ef8c460754c519d6005b27822f3a5c541a6eac793901

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page