Brapi logo

Brapi

Access Brazilian stocks, ETFs, FIIs, crypto, currency, inflation, and interest-rate data through MCP.

Install Brapi

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "brapi": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-brapi"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio brapi -- npx -y @pipeworx/mcp-brapi

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @pipeworx/mcp-brapi

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Brapi MCP server connects AI agents to brapi.dev data through the Pipeworx gateway, covering Brazilian market quotes, crypto, currencies, inflation, and benchmark rates. Its tools support ticker discovery, live quotes, optional historical and fundamental data, and economic time series. Use the hosted streamable-HTTP endpoint for a quick connection, or run the npm package as a local stdio bridge. The integration is keyless for initial use and requires network access.

Use cases

  • Discover B3-listed stock, ETF, and FII symbols
  • Retrieve quotes for one or more Brazilian tickers
  • Compare crypto prices in BRL or another currency
  • Check Brazilian inflation and benchmark interest-rate history
  • Convert major currency pairs involving BRL

Key features

  • Paginated ticker discovery with search, sector, type, and sorting filters
  • Multi-ticker quotes with optional OHLC and fundamental data
  • Crypto quotes with market and 24-hour change metrics
  • Currency conversion rates for major pairs
  • Historical inflation and benchmark interest-rate series
  • Hosted HTTP and local stdio connection options

Tools7

What Brapi lets your agent do. Expand a tool for its parameters.

Verified live~744 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 77d

What it can do

From the 7 tools this server returned when we ran it; 7 declare their own safety hints.

Makes network requests · 7Read-only tools · 7
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age52 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · @pipeworx/mcp-brapi (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads918Package downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed7Callable tools this server registers over MCP.

How Brapi works

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:

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

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

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Brapi

Brapi is an MCP server that connects AI agents to brapi.dev financial data through Pipeworx. Its main tools cover Brazilian stock, ETF, and FII ticker discovery and quotes, plus crypto prices, currency rates, inflation series, and benchmark interest rates. It supports hosted HTTP and local stdio connections.

Install it by adding the hosted MCP URL or running the npm stdio bridge with npx. Use `https://gateway.pipeworx.io/brapi/mcp` for a hosted connection, or configure `npx -y @pipeworx/mcp-brapi` as the MCP server command. Both options require network access.

Yes, Brapi works with Cursor through its hosted MCP endpoint or local stdio configuration. Add `https://gateway.pipeworx.io/brapi/mcp` as the server URL, or configure the npm bridge with `npx` and the `@pipeworx/mcp-brapi` package.

No, an API key is not required for initial anonymous calls. Anonymous usage is limited to 50 calls per day; a free Pipeworx account and `PIPEWORX_API_KEY` raise that allowance to 200 calls per day.

Yes, Brapi can return optional OHLC history for market quotes and historical series for inflation and prime rates. Quote requests accept range and interval options, while economic-series requests support historical mode and start and end dates.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBrapi AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/brapi?style=directory)](https://allmcps.com/mcp/brapi)
HTML Embed
<a href="https://allmcps.com/mcp/brapi"><img src="https://allmcps.com/api/badge/brapi?style=directory" alt="Brapi on AllMCPs" /></a>