Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to Brave Search to perform comprehensive web searches, including web results, images, news, and videos through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with Brave Search

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

# Create a Strata MCP server with Brave Search
response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.BRAVE_SEARCH],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate with API Key

klavis_client.mcp_server.set_strata_auth(
    strata_id=response.strata_id,
    server_name=McpServerName.BRAVE_SEARCH,
    auth_data={
        "api_key": "YOUR_BRAVE_SEARCH_API_KEY"
    }
)
🎉 Your Brave Search MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Available Tools

Tool NameDescription
brave_web_searchPerform a Brave web search with rich filtering and personalization options including country, language, safesearch, and pagination
brave_image_searchSearch for images on Brave with support for safesearch filtering, language and country localization, and pagination
brave_news_searchSearch for news articles with safesearch filtering, language and country localization, pagination, and freshness filter to get recent news
brave_video_searchSearch for videos with safesearch filtering, language and country localization, pagination, and freshness filter to get recent videos
For more details about tool input schema, use the get_tools API.

Next Steps

I