pypi bolsai-mcpstdioMITupdated 2mo ago
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.
bolsai mcp 能做什么?
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
-
Get a free API key at usebolsai.com
-
Install:
pip install bolsai-mcp
- 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$ 49/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
安装
把 bolsai mcp 添加到你的客户端。选择你正在使用的那个。
claude mcp add bolsai-mcp -- uvx bolsai-mcpcodex mcp add bolsai-mcp -- uvx bolsai-mcpamp mcp add bolsai-mcp -- uvx bolsai-mcp{
"mcpServers": {
"bolsai-mcp": {
"command": "uvx",
"args": [
"bolsai-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"bolsai-mcp": {
"command": "uvx",
"args": [
"bolsai-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"bolsai-mcp","command":"uvx","args":["bolsai-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"bolsai-mcp": {
"command": "uvx",
"args": [
"bolsai-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"bolsai-mcp": {
"command": "uvx",
"args": [
"bolsai-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"bolsai-mcp": {
"command": "uvx",
"args": [
"bolsai-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"bolsai-mcp": {
"type": "local",
"command": "uvx",
"args": [
"bolsai-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"bolsai-mcp": {
"command": {
"path": "uvx",
"args": [
"bolsai-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx bolsai-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
10 个工具
bolsai mcp 向已连接的智能体提供 10 个工具。
- get_stock_quote
- Current price, daily change, 52w range
- get_fundamentals
- 27+ indicators: P/L, P/VP, ROE, margins
- compare_stocks
- Side-by-side comparison of up to 5 stocks
- get_dividends
- Dividend yield, annual summary, payments
- search_companies
- Find companies by name or sector
- get_price_history
- OHLCV prices since 1986 with adjustments
- get_fii_details
- FII fundamentals + distributions
- get_macro_indicator
- SELIC, IPCA, CDI, USD/BRL
- get_financial_statements
- Raw CVM income/balance/cash flow
- screen_stocks
- Filter stocks by metrics
评分
71 / 100
良好
- 文档22/25
- 维护16/25
- 可信度13/20
- 能力8/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 56 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 10 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.1.4最新 | 2026年7月7日 |