经 AI Skill Hub 精选评估,XP投资组合MCP服务器 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.2 分,适合有一定技术背景的用户使用。
本地优先的只读MCP服务器,专为XP Investimentos巴西投资平台设计。允许用户通过Claude直接查询和分析自己的投资组合数据,实现AI驱动的财务决策支持,适合巴西投资者和金融科技爱好者。
XP投资组合MCP服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
本地优先的只读MCP服务器,专为XP Investimentos巴西投资平台设计。允许用户通过Claude直接查询和分析自己的投资组合数据,实现AI驱动的财务决策支持,适合巴西投资者和金融科技爱好者。
XP投资组合MCP服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/Satsuj1n/xp-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"xp----mcp---": {
"command": "npx",
"args": ["-y", "xp-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 XP投资组合MCP服务器 执行以下任务... Claude: [自动调用 XP投资组合MCP服务器 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"xp____mcp___": {
"command": "npx",
"args": ["-y", "xp-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"portfolio": {
"command": "npx",
"args": ["-y", "portfolio-mcp"]
}
}
}
Config file location:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonRestart Claude Desktop. Done.
See Development below for clone + build instructions if you want to hack on the server.
---
set_advisor_profile — saves the profile, enables outboundget_market_data { tickers: ["BBAS3","MXRF11"] } — quotesscreen_assets { asset_class: "FII", criteria: { sort_by: "dividend_yield", order: "desc", filters: { min_dividend_yield_pct: 8 }, limit: 10 } }---
After connecting the server, just chat with Claude:
You: Liste minhas posições agrupadas por classe de ativo.
Claude (using portfolio-mcp.get_positions):
TESOURO (53.28%) R$ 16,644.31
• Tesouro Selic 2031 R$ 14,556.80
• Tesouro Selic 2028 R$ 2,087.51
RENDA_FIXA_PRIVADA (20.98%) R$ 6,554.32
• CDB BANCO XP - AGO/2026 - 15,00% R$ 2,203.85
• CDB BANCO XP - SET/2026 - 14,95% R$ 2,197.10
• CDB BANCO XP - OUT/2026 - 14,55% R$ 1,083.63
• CDB BANCO XP - NOV/2027 - 100,00% CDI R$ 1,069.74
FUNDO (10.48%) R$ 3,273.71
ACAO ( 7.44%) R$ 2,325.12 (BBAS3)
FII ( 7.81%) R$ 2,439.20 (MXRF11, GTWR11)
Total: R$ 31,236.66
You: Quais CDBs vencem em 2026?
Claude (filters by asset_class + maturity_date):
3 CDBs maturing in 2026:
• Aug/2026 — 15.00% pre-fixed R$ 2,203.85
• Sep/2026 — 14.95% pre-fixed R$ 2,197.10
• Oct/2026 — 14.55% pre-fixed R$ 1,083.63
All issued by BANCO XP S.A. (within single-issuer FGC limit ✓)
You: Estou bem alocado em relação ao meu target?
Claude (using portfolio-mcp.calculate_allocation_drift):
Lendo ~/.xp-mcp/allocation.json (target: 40% Tesouro, 20% RF, 15% FII,
15% Ações, 5% ETF, 5% Fundos, tolerância ±2pp).
Mais fora do alvo:
• TESOURO: 53.28% (target 40%) → vender ~R$ 4.148
• ACAO: 7.44% (target 15%) → comprar ~R$ 2.362
• FII: 7.81% (target 15%) → comprar ~R$ 2.247
Dentro da banda:
• RENDA_FIXA_PRIVADA: 20.98% (target 20%) ✓
Fora da banda, magnitude menor:
• FUNDO: 10.48% (target 5%) — vender ~R$ 1.712
• ETF: 0.00% (target 5%) — comprar ~R$ 1.562
Net rebalance: -R$ 152 (aporte pequeno sugerido pra fechar).
You: Me dá um panorama do meu portfólio.
Claude (using portfolio-mcp.get_portfolio_summary):
Total: R$ 31.236,66 (12 posições, ref. 2026-05-21)
P&L: +R$ 2.736,66 (+9,60% sobre R$ 28.500 investidos · 8/12 com P&L computável)
Por classe:
TESOURO 53,28% R$ 16.644,31
RENDA_FIXA_PRIVADA 20,98% R$ 6.554,32 (+4,04%)
FUNDO 10,48% R$ 3.273,71
ACAO 7,44% R$ 2.325,12
FII 7,81% R$ 2.439,20
FGC: R$ 6.554,32 (20,98%) cobertos
Vencimentos: curto R$ 5.484 · médio R$ 16.625 · longo R$ 1.070 · sem maturity R$ 8.038
Reconciliação: declarado R$ 31.250,00 vs computado R$ 31.236,66
→ gap −R$ 13,34 (−0,04%, dentro de tolerância)
---
calculate_allocation_drift reads ~/.xp-mcp/allocation.json. A starter file is included at examples/allocation.example.json. Copy it once and edit the percentages:
mkdir -p ~/.xp-mcp
cp examples/allocation.example.json ~/.xp-mcp/allocation.json
The six valid keys are TESOURO, RENDA_FIXA_PRIVADA, FII, ETF, ACAO, FUNDO. Values must sum to 1.00 (±0.001). tolerance_pp is optional — when set, drifts within the band are reported as "ok" with no action.
---
The profile lives at ~/.xp-mcp/advisor-profile.json. Create or update it with set_advisor_profile:
{
"risk_tolerance": 6,
"horizon_years": 15,
"objective": "balanced",
"monthly_income_target_brl": 3000,
"excluded_classes": ["FUNDO"],
"excluded_tickers": ["XYZW3"],
"notes": "evitar tabaco, prefiro logística e shoppings",
"outbound_enabled": true,
"brapi_token": "..."
}
When you flip outbound_enabled to true, the tool requires accept_disclaimer: true in the same call and stamps accepted_disclaimer_at on the saved profile.
v0.4 uses brapi.dev as the sole market-data source. Anonymous calls work for personal use; if you hit rate limits, set brapi_token in the profile. Quotes are cached for 60 minutes, fundamentals for 24 hours, universe lists for 7 days. Override per call via cache_ttl_minutes.
MCP工具新星,专注巴西投资市场垂直整合。架构简洁、权限最小化,Claude生态完整方案,但用户基数和活跃度需观察。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:XP投资组合MCP服务器 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | xp-mcp |
| 原始描述 | 开源MCP工具:Local-first, read-only MCP server to talk to your XP Investimentos portfolio thr。⭐11 · TypeScript |
| Topics | 金融科技MCP服务器投资管理Claude集成巴西 |
| GitHub | https://github.com/Satsuj1n/xp-mcp |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-21 · 更新时间:2026-05-22 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端