brapi

dev.brapi/mcp · v1.0.0 · finance-and-payments

brapi is healthy: it completed an MCP handshake in 1880 ms and exposes 92 tools.

Brazilian market data: B3 quotes, price history, dividends, fundamentals, funds, macro indicators.

Endpoint: https://brapi.dev/api/mcp/mcp (streamable-http)

No repository listed · Website · JSON · Add to my inventory

Facts

Users (last 30 days)0
HandshakeHealthy
Auth neededNone
Tool count92
Latency1880 ms
Last checked (UTC)2026-11-30T04:15:26.152Z

Health history

Checked (UTC)StatusLatencyError
2026-11-30T04:15:26.152ZHealthy1880

Tools (92)

get_available_stocksGet list of available Brazilian stocks, indexes, and financial instruments with advanced filtering options Authentication: not required. Use the exact parameter names and formats shown in inputSchema.
get_available_currenciesGet list of available currency pairs for exchange rates Authentication: not required. Use the exact parameter names and formats shown in inputSchema.
get_available_cryptocurrenciesGet list of available cryptocurrencies Authentication: not required. Use the exact parameter names and formats shown in inputSchema.
get_available_inflation_countriesGet list of countries with available inflation data Authentication: not required. Use the exact parameter names and formats shown in inputSchema.
get_tickersSearch and filter available B3 tickers in brapi. Use for autocomplete, ticker validation, and discovering stocks, FIIs, ETFs, BDRs, units, and indexes. Authentication: not required. Use the exact parameter names and formats shown in inputSchema.
get_ticker_renamesList known B3 ticker renames with old ticker, current canonical ticker, and effective date. Authentication: not required. Use the exact parameter names and formats shown in inputSchema.
resolve_tickersResolve old B3 tickers to the current ticker recommended by brapi. Current tickers are returned unchanged. Authentication: not required. Use the exact parameter names and formats shown in inputSchema.
get_ticker_coverageCheck which brapi data surfaces are available for B3 tickers and get recommended endpoints. Accepts up to 20 comma-separated symbols per call. Authentication: not required. Use the exact parameter names and formats shown in inputSchema.
get_macro_series_availableList macroeconomic series available in brapi (slug, name, unit, frequency, category). Public - no auth required. Use this for discovery before calling get_macro_series. Optional `q` does case-insensitive substring search across slug, alias, name and description, with results ranked by relevance. Opt
get_dictionaryExplain brapi API fields with the Portuguese label, description, calculation, endpoint references, type, and unit. Use this tool when a response field is unclear instead of guessing. Filter by search term or category. Authentication: not required. Use the exact parameter names and formats shown in
get_account_capabilitiesGet the authenticated brapi account plan, request limits, valid historical ranges, and feature access. Call this once when a protected tool's limits are unclear. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and f
get_stock_quotesGet current and historical data for Brazilian stocks, indexes, or ETFs including price quotes, financial statements, and dividends Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_quoteGet v2 stock quote snapshots from /api/v2/stocks/quote: price, change, volume, market cap, day range, 52-week range, and logo. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_historicalGet v2 OHLCV historical prices from /api/v2/stocks/historical for one or more B3 tickers. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_dividendsGet v2 dividends/JCP for stock-like B3 tickers from /api/v2/stocks/dividends. Use get_fii_dividends for FIIs. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_insider_transactionsGet monthly CVM insider transaction reports from /api/v2/stocks/insider-transactions. Rows group controllers, board members, directors, fiscal council, and other statutory bodies with related persons. Rows do not name each person or the traded ticker. The ticker selects the reporting company, so PET
get_stock_shareholdersGet who owns B3 companies from /api/v2/stocks/shareholders: controllers and holders of 5% or more with their share of common (voting), preferred and total shares, treasury shares, other holders, free float, holder counts, the ultimate non-person controllers, chain (who owns the owners, as far as the
get_ownership_networkGet the ownership network between companies, funds, governments and people from /api/v2/stocks/ownership-network, for charts and for questions such as "who controls what" or "are there cross-holdings". nodes have id, kind (company, person, fund, government, foreign), name, ticker and market value in
get_stock_earnings_calendarGet quarterly (ITR) and annual (DFP) results release dates of B3 companies and of foreign companies with BDRs from /api/v2/stocks/earnings-calendar. Each row is one company and fiscal period, with its CNPJ, all its tickers, and, on the Pro plan, the codes of its debentures that have not matured (emp
get_stock_profileGet v2 company/profile fundamentals from /api/v2/stocks/profile. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_statisticsGet v2 stock statistics from /api/v2/stocks/statistics, either current or historical. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_financial_dataGet v2 stock financial data from /api/v2/stocks/financial-data, either current or historical. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_balance_sheetGet v2 balance sheet statements from /api/v2/stocks/balance-sheet. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_income_statementGet v2 income statements from /api/v2/stocks/income-statement. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_cash_flowGet v2 cash-flow statements from /api/v2/stocks/cash-flow. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_stock_value_addedGet v2 value-added statements from /api/v2/stocks/value-added. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Use the exact parameter names and formats shown in inputSchema.
get_revenue_sourcesGet annual revenue by reported segment from /api/v2/revenue-sources for B3 stocks, BDRs, FIIs and Fiagros; period=quarterly gives B3 companies' quarters instead. Each segment has a shared activity code, growth vs the prior year (fraction), revenue without concession construction revenue (growthExCon
get_revenue_sources_compareCompare revenue growth of every issuer with revenue in one activity (children included) from /api/v2/revenue-sources/compare. Segments of the same issuer are summed per fiscal year. Growth is a fraction; for concession activities it excludes construction revenue when known (basis exConstruction), el
get_stock_screenerFilter and rank B3 stocks by price and fundamentals from /api/v2/stocks/screener: P/L, P/VP, dividend yield, ROE, margins, debt, growth, and more. One call scans every asset. Each metric accepts {metric}Min and {metric}Max, inclusive, in the units of the response: fractions use 0.06 for 6% (dividend
get_debenture_listList Brazilian corporate debentures from /api/v2/debentures/list: issuer CNPJ, name and primary ticker (issuerTicker, when the issuer has listed shares), index (di, ipca, pre, igp-m, inpc, tr, usd, eur, none), indexPercent (e.g. 110 for 110% of DI), interestRate (% a year on top of the index), issue
get_debenture_profileGet the full terms of Brazilian corporate debentures from /api/v2/debentures/profile: the list fields plus profitability start date, CVM registration, earlyRedemptionAllowed, interest schedule (every, unit month or day, dayCount 252/360/365), amortization schedule (every, unit, percent per payment,
get_company_newsGet news about B3 companies and assets from /api/v2/news: earnings, dividends, M&A, financing, buybacks, ratings, analyst calls, management and legal events. Filter by tickers; a share ticker also matches the issuer's other classes (PETR4 finds PETR3). Each story has our own AI-written title, summar
get_market_newsGet Brazilian and Latin American market and economy news from /api/v2/news/market: interest rates and Selic, inflation, FX, public accounts, politics, the Ibovespa and economists' views. Each story has our own AI-written title, summary, keyPoints and (with includeArticle) a Markdown article, written
get_currency_ratesGet current exchange rates for currency pairs Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when limits are unclear. Use the exact parameter names and formats sh
get_crypto_pricesGet current and historical cryptocurrency prices with market data Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when limits are unclear. Use the exact parameter
get_macro_seriesGet historical observations for Brazilian macroeconomic series (Selic, IPCA, IGP-M, CDI, IBC-Br, etc.). Pass slugs in `symbols` (comma-separated, e.g. `selic,ipca,igpm`). Use get_macro_series_available to discover slugs. Currency pairs (USD-BRL etc.) are NOT served here - use the currency endpoints
get_macro_series_latestGet only the most recent observation for each requested macroeconomic series. Lighter than get_macro_series when you just need the current Selic / IPCA / CDI value. FX pairs are not served here - use the currency endpoints. Authentication: required. Sign in to brapi or provide a valid Bearer token
get_inflation_dataGet inflation data for Brazil (IPCA, IGPM) with period filtering options Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when limits are unclear. Use the exact par
get_prime_rate_dataGet Brazil's prime rate (SELIC) data with period and sorting options Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when limits are unclear. Use the exact paramet
get_option_expirationsList available option expiration dates for a given Brazilian underlying asset (stock, ETF, or index) Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when limits are
get_option_strikesList available option strike prices for a given Brazilian underlying asset on a specific expiration date Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when limits
get_option_chainGet the option chain (traded series with OHLCV snapshot) for a Brazilian underlying asset on a specific expiration date Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilit
get_option_historicalGet daily EOD historical price data (OHLCV, bid/ask, trades, financial volume) for a single option series identified by its symbol and expiration date Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid p
get_option_analyticsGet EOD implied volatility and Greeks for traded Brazilian option series for an underlying asset on a specific expiration date. Fields are null with nullReason when the calculation cannot be produced from observed data. Authentication: required. Sign in to brapi or provide a valid Bearer token befo
get_option_analytics_historyGet the daily EOD implied volatility and Greeks time series for a single Brazilian option series identified by symbol and expiration date. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call ge
get_option_positionsGet open interest (open contracts) per option series for a Brazilian underlying asset on a specific expiration date. Includes the covered, uncovered and blocked position breakdown. Open interest counts contracts still alive, unlike volume, which counts contracts traded during the session. Authentic
get_option_positions_historyGet the daily open interest time series for a single Brazilian option series identified by symbol and expiration date. Use it to see a position being built up or unwound over time. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: thi
get_futures_listList available Brazilian futures contracts (mini Ibovespa, mini Dolar, full index/dollar, DI rate, agribusiness: boi, café, milho, soja). Paginated with filters by underlying asset and segment. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Pla
get_futures_quoteGet EOD snapshot quote for one or more Brazilian futures contracts. Returns OHLC, daily settlement price (AdjstdQt), settlement rate (AdjstdQtTax - populated for DI/rate-quoted contracts only), oscillation, number of trades, contract quantity, and financial volume. Authentication: required. Sign in
get_futures_specsGet contract specifications (without pricing) for one or more Brazilian futures: expiration date, contract multiplier (e.g., WIN = 0.2, BGI = 330 arrobas, DI1 = 1), allocation round lot, ISIN, CFI, trading currency, delivery type, and quotation type (price vs rate). Authentication: required. Sign i
get_futures_historicalGet daily EOD time series for a single Brazilian futures contract. Each point has OHLC, settlement price, settlement rate (DI/DAP only), reference price, oscillation, trades, contract quantity and financial volume. For DI1/DAP/DI contracts, close/high/low fields hold the rate in %a.a., and settlemen
get_futures_term_structureGet the full term structure (all live contracts) for a Brazilian futures underlying asset. Returns one row per expiration, ordered by date ascending, each with the latest EOD pricing. Useful for plotting the DI yield curve, contango/backwardation in commodities, or the mini-Ibov forward curve. Auth
get_futures_option_expirationsList available option expiration dates for a Brazilian futures underlying (options on futures: e.g., options on BGI live cattle, ICF coffee, CCM corn, SJC soybean). These options have their own expiration calendar, often different from the underlying future. Authentication: required. Sign in to bra
get_futures_option_strikesList available strike prices for options on a Brazilian futures contract at a given expiration. Pair with get_futures_option_chain to fetch traded series with prices. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may
get_futures_option_chainGet the option chain (traded series with last EOD prices) for a Brazilian futures underlying at a specific expiration. Each series carries optionStyle (american/european), strike, contractMultiplier, allocationRoundLot, plus OHLC/volume/oscillation from the latest pregão. Authentication: required.
get_futures_option_historicalGet the daily EOD historical OHLC time series for a single option on a Brazilian futures contract. Returns the option specs (strike, optionStyle, expiration, multiplier) plus traded-day points (referencePrice + OHLC + oscillation + trades + financial volume). Days where the option didn't trade aren'
get_futures_option_analyticsGet EOD implied volatility and Greeks for options on Brazilian futures for an underlying asset at a specific expiration. European options use Black-76; American options use a binomial futures model. Fields are null with nullReason when the calculation cannot be produced from observed data. Authenti
get_futures_option_analytics_historyGet the daily EOD implied volatility and Greeks time series for a single option on a Brazilian futures contract. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities whe
get_futures_option_positionsGet open interest (open contracts) per option series for a Brazilian futures underlying at a specific expiration. Open interest counts contracts still alive, unlike volume, which counts contracts traded during the session. The covered/uncovered/blocked breakdown is null for most futures segments. A
get_futures_option_positions_historyGet the daily open interest time series for a single option on a Brazilian futures contract. Use it to see a position being built up or unwound over time. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a pa
get_fii_listList Brazilian Real Estate Investment Funds (FIIs) with optional filters by symbols, CNPJs, segment type, sector, mandate and management type. Returns paginated results with current indicators (price, P/VP, dividend yield) and administrator info. Use get_funds_list for FI-Infra/FIF, FIAGRO, FIDC and
get_fii_indicatorsGet current fundamental indicators for one or more Brazilian Real Estate Investment Funds (FIIs). Returns P/VP (price-to-NAV), dividend yield (12m and 1m), monthly return, equity, total assets, total investors, and administrator info. Authentication: required. Sign in to brapi or provide a valid Be
get_fii_indicators_historyGet monthly historical evolution of fundamental indicators (price, P/VP, dividend yield, monthly return, total investors, equity, total assets) for one or more Brazilian FIIs. Useful for charting trends and comparing periods. Authentication: required. Sign in to brapi or provide a valid Bearer toke
get_fii_historicalGet daily OHLCV historical price data for one or more Brazilian Real Estate Investment Funds (FIIs). Returns open, high, low, close, volume and adjusted close per day, grouped by symbol. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan acces
get_fii_propertiesGet FII physical properties with vacancy first-class: area, address, unit count, vacancy rate, delinquency rate, revenue share and consolidated area-weighted vacancy. Rate fields are decimal ratios (0.0328 = 3.28%). Best endpoint for brick-and-mortar FII vacancy analysis. Authentication: required.
get_fii_properties_historyGet quarterly time series of FII physical-property summaries: property count, total area, area-weighted vacancy, average vacancy and number of properties with vacancy data. Best for charting vacancy trends before drilling into get_fii_properties. Authentication: required. Sign in to brapi or provid
get_fii_portfolioGet normalized FII portfolio composition grouped by fund: summary, allocations, CRIs, FII fund holdings, properties, lands and rights. Best for FoFs, paper FIIs, issuer concentration and full holdings analysis. Authentication: required. Sign in to brapi or provide a valid Bearer token before callin
get_fii_portfolio_historyGet quarterly time series of normalized FII portfolio summaries: total items, declared value, property summary, financial-asset summary and allocations by asset class. Best for charting portfolio composition before drilling into get_fii_portfolio. Authentication: required. Sign in to brapi or provi
get_fii_reportsGet monthly CVM management reports for Brazilian FIIs with full asset composition (real estate, CRI, LCI, fund holdings, cash, government/private bonds), profitability (monthly return, monthly dividend yield), fees and liabilities. Most comprehensive endpoint for due diligence. Authentication: requ
get_fii_dividendsGet historical dividends (rendimentos and amortizações) for one or more Brazilian FIIs. Returns rate per share, cum-dividend date (lastDatePrior), payment date and label. Actual dates from the maintained FII dividend source take precedence; CVM competence dates are used only as fallback for funds wi
get_funds_listList Brazilian funds across FIIs, FIAGROs, FI-Infra/FIFs, FIDCs and FIPs. Use for discovery by symbol, CNPJ, search text or asset type. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_a
get_funds_indicatorsGet current indicators for specific Brazilian funds. Requires symbols or cnpjs; returns market price, NAV per share, P/NAV, equity, assets and investor count. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require
get_funds_nav_historyGet NAV history for specific funds. FI/FIF data is daily; FIDC data is monthly by quota class or series and includes official monthly return. Requires symbols or cnpjs; market OHLCV price is separate from NAV. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling
get_funds_profileGet monthly profile sections for specific FI/FIF funds. Requires symbols or cnpjs; includes investor breakdown, risk, liquidity, concentration and private-credit exposure. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset
get_funds_portfolioGet holdings for specific FI/FIF funds grouped into public bonds, fund holdings, credit assets, listed securities, receivables and payables. Requires symbols or cnpjs. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may
get_funds_holdingsGet the composition of a fund or ETF in one month: each asset with its weight in net assets, and totals by asset class, country and sector. Merges repeated positions. view=lookthrough (default) opens every position in another fund, ETF or ETF BDR down to the final assets, up to five levels, and merg
get_funds_exposureGet the final exposure of a portfolio: each position (B3 stock, unit, BDR, ETF, ETF BDR or fund CNPJ) opens to its final assets, and the result joins them by company, country, sector and asset class. A stock held directly joins the same company inside funds (NVIDIA through WRLD11, IVVB11 and NVDC34)
get_funds_crowdingGet how much money all Brazilian funds hold in each company in a month and the month's net buying or selling (flowValue: bought minus sold at the month's price, with the rules of get_funds_holders change). A company joins its share classes, units, BDRs and ADRs. value counts each position once: the
get_funds_holdersGet the funds that hold a B3 asset (symbol, e.g. PETR4), the quotas of a fund (cnpj of a fund), or the shares and debt of a company (cnpj of a company: all its tickers, its debentures and other debt it issued), with value and weight in each fund. One row per fund with values summed; positions lists
get_funds_holdings_historyGet the position of one fund in one asset month by month: weight in net assets, value and quantity. Fund by symbol or cnpj; asset by ticker (asset) or by assetCnpj (a fund's quotas, or a company's shares and debt as in get_funds_holders). A month the fund reported without the asset has zeros; a mont
get_index_compositionGet the assets and weights of an index (IBOV, SMLL, IDIV, IMAB, SP500, ...) from the holdings of the largest ETF that replicates it. Approximated: not the official index portfolio. Weights are on the ETF's invested part and add up to 100. Without symbols, lists the indexes. Authentication: required
get_funds_dividendsGet exact official dividend events for non-FII listed funds such as ETFs, FIAGRO, FI-Infra/FIF, FIDC and FIP. Returns declared date, ex-date (lastDatePrior), payment date, rate and label. Use get_fii_dividends for FIIs. Authentication: required. Sign in to brapi or provide a valid Bearer token befo
get_fiagro_reportsGet monthly FIAGRO reports for specific funds by symbol or CNPJ, including PL, NAV, investors and monthly DY. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when l
get_fiagro_portfolioGet grouped FIAGRO allocation sections for specific funds. Requires symbols or cnpjs; includes agro credit, maturity, liabilities and investor breakdown. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a pai
get_fidc_reportsGet monthly FIDC report rows for specific funds by CNPJ, or by symbol when listed mapping exists. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when limits are un
get_fidc_portfolioGet FIDC grouped portfolio/risk sections for specific funds. Requires symbols or cnpjs; includes sectors, maturity, delinquency, risk, quota classes and investors. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may req
get_fip_reportsGet structured FIP report rows for specific funds. Requires symbols or cnpjs; CNPJ is the canonical lookup key for most FIPs. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_cap
get_fii_financialsGet FII DFIN financial reports by symbol or CNPJ. Does not include FIAGRO, FI-Infra, FIDC or FIP rows. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_account_capabilities when limits a
get_fii_annual_reportsGet FII annual report rows by symbol or CNPJ. These are separate from monthly reports and quarterly portfolio/properties endpoints. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call get_accou
get_treasury_listList Tesouro Direto public bonds with current indicative rates and prices. Supports filtering by public symbol/name, indexer (selic, prefixado, ipca, igpm), coupon type, sorting and pagination. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Pla
get_treasury_indicatorsGet the latest indicative rates and prices for one or more Tesouro Direto public bonds. Symbols are public brapi slugs like tesouro-selic-01032031. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan
get_treasury_indicators_historyGet daily historical Tesouro Direto rates and unit prices for one or more public bonds. When dates are omitted, returns the last 12 months. Authentication: required. Sign in to brapi or provide a valid Bearer token before calling this tool. Plan access: this dataset may require a paid plan. Call g