Skip to content

v0.1.0 - Initial release

Choose a tag to compare

@iqbalmh18 iqbalmh18 released this 09 Jul 18:42
7a0727c

Initial release

This release introduces the first public version of brave-api-python.

An async Python client for Brave Search, providing streaming AI answers and structured web search through a single, typed interface — with built-in Model Context Protocol (MCP) server support.

Features

  • Ask (AI)
  • Search (Web)
  • MCP Server

Installation

uv add brave-api-python

With MCP server support:

uv pip install "brave-api-python[mcp]"

Quick start

import asyncio

from brave_api import BraveClient


async def main():
    async with BraveClient() as client:
        # AI answer
        result = await client.ask("what is quantum computing?")
        print(result.text)

        # Web search
        search = await client.search("python asyncio tutorial")

        for item in search.web:
            print(item.title, item.url)


asyncio.run(main())

MCP

uv run python -m brave_api.mcp.server

# or via the CLI entry-point

source .venv/bin/activate
brave-api-mcp