# Brapi [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-brapi  
**GitHub Stars:** 0  
**npm Downloads (last month):** 918  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/brapi

## Description
brapi.dev MCP — Brazilian stock + crypto + ETF quotes.

## Tools
Capabilities this server exposes over MCP:

- **quote_list** — brapi.dev — paginated directory of all Brazilian market tickers (stocks, ETFs, FIIs) with optional text search, sector filter, and sort. Use to discover or enumerate B3-listed symbols.
- **quote** — brapi.dev — live quote for one or more Brazilian market tickers (comma-separated, e.g. 'PETR4,VALE3'): price, change, volume, and optional OHLC history range/interval and fundamental data.
- **available** — brapi.dev — complete list of all available Brazilian market ticker symbols supported by the quote endpoint.
- **crypto** — brapi.dev — crypto price quote for a coin (e.g. 'BTC') in a target currency (default BRL). Returns price, 24h change, market cap, and volume sourced from Brazilian market data.
- **currency** — brapi.dev — currency conversion rate for a pair (e.g. 'USD-BRL'): current bid/ask rate and daily change. Covers major pairs against BRL and other currencies.
- **inflation** — brapi.dev — inflation index series (IPCA/CPI) for Brazil or other countries. Optional historical flag plus start/end date range returns monthly inflation readings over time.
- **prime_rate** — brapi.dev — prime/benchmark interest rate series (Selic/base rate) for Brazil or other countries. Optional historical flag plus start/end date range returns rate readings over time.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "brapi": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-brapi"]
  }
}
```

## Documentation

## What Brapi MCP server does

Brapi MCP server exposes Brazilian financial-market and economic data as MCP tools. It connects through the Pipeworx gateway to `https://brapi.dev/api`, an upstream source for Brazilian stocks, ETFs, FIIs, crypto, currency rates, inflation data, and benchmark interest rates.

The integration is independent and unofficial; it is not affiliated with or endorsed by the upstream provider. It fits agents that need to inspect B3-listed symbols, retrieve market snapshots, compare currencies, or work with Brazilian macroeconomic series.

## How it works

The hosted connection is available at `https://gateway.pipeworx.io/brapi/mcp`. An MCP client can connect to that URL directly, while applications without an MCP client can call individual tools through the Pipeworx HTTP API.

A local npm package, `@pipeworx/mcp-brapi`, provides a stdio bridge. The client starts the package with `npx`, and the bridge forwards requests to the same hosted endpoint. Both approaches require network access and do not provide an offline mode.

The pack endpoint also exposes shared Pipeworx gateway tools, including routing and discovery functions. Set `PIPEWORX_META_TOOLS=1` for those tools when using the local bridge. The full gateway endpoint is available separately when an agent should access all Pipeworx data packs directly.

## Setup and configuration

For a hosted MCP connection, add the following endpoint to an MCP client configuration:

```json
{
  "mcpServers": {
    "brapi": {
      "url": "https://gateway.pipeworx.io/brapi/mcp"
    }
  }
}
```

For the local stdio option, configure the npm package as the command:

```json
{
  "mcpServers": {
    "brapi": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-brapi"]
    }
  }
}
```

Anonymous use is available with a daily call limit. A Pipeworx account and `PIPEWORX_API_KEY` increase the daily allowance; the key is sent as a Bearer token and usage is metered. When a client runs behind an HTTPS proxy, newer Node.js versions can use the proxy environment setting with `NODE_USE_ENV_PROXY=1`.

## Tools and capabilities

- `quote_list` searches and paginates Brazilian market symbols, with filtering by type, sector, and sorting options.
- `quote` retrieves one or more ticker quotes, including price, change, volume, optional OHLC ranges and intervals, and optional fundamental or dividend data.
- `available` returns the ticker symbols supported by the quote endpoint.
- `crypto` returns a coin quote in a selected currency, including price, 24-hour change, market cap, and volume.
- `currency` provides bid and ask rates plus daily change for currency pairs such as USD-BRL.
- `inflation` returns inflation readings, including optional historical monthly series and date filtering.
- `prime_rate` provides benchmark interest-rate readings, including historical ranges.

Questions can also be sent to the gateway through `ask_pipeworx`, which selects a tool and fills its arguments from a natural-language request.

## Limitations and notes

The local bridge has no offline mode. Anonymous calls are capped at 50 per day, while a free account raises the limit to 200 per day. The pack endpoint lists its Brapi tools alongside shared gateway tools, so the visible tool count can exceed the pack-specific list. The connection's initialization response defines the exact tools available at connection time.

_Full upstream README: https://allmcps.com/mcp/brapi/readme_

