Skip to main content

bolsai MCP Server

Brazilian financial market data for AI assistants. Query stock prices, fundamentals, dividends, FIIs, and macro indicators from the Brazilian market (B3, CVM, BCB) directly from Claude.

Quick Start

  1. Get a free API key at usebolsai.com

  2. Install:

pip install bolsai-mcp
  1. Add to Claude Desktop (claude_desktop_config.json):
{
  "mcpServers": {
    "bolsai": {
      "command": "uvx",
      "args": ["bolsai-mcp"],
      "env": {
        "BOLSAI_API_KEY": "sk_your_key_here"
      }
    }
  }
}

Or for Claude Code (.mcp.json):

{
  "mcpServers": {
    "bolsai": {
      "command": "bolsai-mcp",
      "env": {
        "BOLSAI_API_KEY": "sk_your_key_here"
      }
    }
  }
}

Tools

Tool Description Example Prompt
get_stock_quote Current price, daily change, 52w range "What's PETR4 trading at?"
get_fundamentals 27+ indicators: P/L, P/VP, ROE, margins "Show me VALE3 fundamentals"
compare_stocks Side-by-side comparison of up to 5 stocks "Compare PETR4 vs VALE3 vs ITUB4"
get_dividends Dividend yield, annual summary, payments "What dividends did BBDC4 pay?"
search_companies Find companies by name or sector "Find banks listed on B3"
get_price_history OHLCV prices since 1986 with adjustments "PETR4 prices last month"
get_fii_details FII fundamentals + distributions "Show me HGLG11"
get_macro_indicator SELIC, IPCA, CDI, USD/BRL "What's the current SELIC rate?"
get_financial_statements Raw CVM income/balance/cash flow "PETR4 income statement 2024"
screen_stocks Filter stocks by metrics "Find stocks with DY > 8%"

Example Conversations

"What's PETR4 trading at?"

PETR4
Price: R$ 36.19
Change: +R$ 0.53 (+1.49%)
Date: 2024-12-30
52-week: R$ 28.44 – R$ 42.15
YTD: +12.34%

"Compare PETR4 vs VALE3"

Comparison: PETR4 vs VALE3

Metric              PETR4       VALE3
─────────────────────────────────────
P/L                  4.89        5.23
P/VP                 1.12        1.45
EV/EBITDA            3.21        3.87
ROE                33.20%      27.70%
Net Margin         24.50%      23.10%
DY                 12.30%       9.90%
Price           R$ 36.19    R$ 58.42

Data Coverage

  • 350+ stocks listed on B3
  • 400+ FIIs (Real Estate Investment Funds)
  • 40 years of price history (since 1986)
  • 15+ years of fundamentals (since 2010)
  • 27 indicators including P/L, P/VP, EV/EBITDA, ROE, ROIC, margins
  • Macro data: SELIC, IPCA, CDI, USD/BRL
  • Updated daily from official sources (B3, CVM, BCB)

Configuration

Environment Variable Required Default Description
BOLSAI_API_KEY Yes API key from usebolsai.com
BOLSAI_BASE_URL No https://usebolsai.com/api/v1 API base URL

API Tiers

  • Free: 200 requests/day. Stock quotes, current fundamentals, company search.
  • Pro (R$ 29/month): 10,000 requests/day. All tools including history, dividends, financials, macro.

Development

cd mcp-server
pip install -e ".[dev]"
pytest
ruff check . && ruff format .

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bolsai_mcp-0.1.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bolsai_mcp-0.1.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file bolsai_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: bolsai_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bolsai_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ea29f0dac497816c169aaf3807a24d0e3651f14b28e658f6e676c1355da961d2
MD5 48a800e1a8b3754084f391e62383a6ce
BLAKE2b-256 82e82f7d0169036226c8c3b4f9ffa4ed5bd5221557262f701c9b238d27fd60bd

See more details on using hashes here.

File details

Details for the file bolsai_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: bolsai_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bolsai_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 134d1c4b0343eb73ca28570799e03c8bd6029a5ee4868c3c8b0aed20a7c7f2ff
MD5 9e14671df590fb8c7b141c13cf216e2d
BLAKE2b-256 8428e863d697ce5ec1989f7f29fba92992b402776b7ea3dba87a534522166106

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page