dlp-invest-mcp
MCP (Model Context Protocol) server exposing your DLPInvest portfolio as tools for AI assistants — Claude Desktop, Cursor, Claude Code, Windsurf, and any MCP-compatible client.
⚠️ Pré-requisito importante
Antes de configurar o MCP, certifique-se de ter o uv instalado em sua máquina. O uv é a ferramenta moderna e ultrarrápida que gerencia e executa este servidor automaticamente em segundo plano.
- Se você usa Windows (PowerShell):
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
- Se você usa macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
(Se já tiver o uv instalado, você pode ignorar este passo).
Configuração Rápida (Sem comandos de terminal)
Basta adicionar o bloco de configuração abaixo no arquivo de configuração da sua IDE ou assistente de IA, substituindo DLP-seu-token-aqui pelo seu token da API do DLPInvest.
Cursor
Adicione em .cursor/mcp.json (na raiz do projeto ou nas configurações globais):
{
"mcpServers": {
"dlp-invest": {
"command": "uvx",
"args": ["dlp-invest-mcp"],
"env": {
"DLP_INVEST_API_TOKEN": "DLP-seu-token-aqui"
}
}
}
}
Claude Desktop
Cole no arquivo de configuração do Claude:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"dlp-invest": {
"command": "uvx",
"args": ["dlp-invest-mcp"],
"env": {
"DLP_INVEST_API_TOKEN": "DLP-seu-token-aqui"
}
}
}
}
Ferramentas Disponíveis
O assistente de IA terá acesso automático a 11 ferramentas financeiras:
| Tool | Description | Key Parameters |
|---|---|---|
obter_operacoes |
List operations/trades | carteira, status, data_inicial, data_final, limite, offset |
obter_carteira |
Retrieve portfolio summary | — |
obter_posicao |
Current asset holdings | carteira |
obter_rentabilidade |
Portfolio returns over a period | carteira, data_inicial, data_final |
obter_extrato |
Financial transactions statement | carteira, data_inicial, data_final, limite, offset |
obter_proventos |
Dividends & income received | carteira, data_inicial, data_final |
obter_ativos |
List available assets | — |
obter_ativos_detalhes |
Asset details by ticker | ticker (required, e.g. PETR4) |
obter_corretoras |
List registered brokerages | — |
obter_estrategias |
List investment strategies | — |
obter_subestrategias |
List sub-strategies | — |
Variáveis de Ambiente
| Variable | Default | Required | Description |
|---|---|---|---|
DLP_INVEST_API_TOKEN |
(empty) | Recommended | Your DLPInvest API token. |
DLP_INVEST_API_BASE_URL |
https://users.dlpinvest.com.br |
No | Base URL of the DLPInvest REST API. |
⚠️ Solução de Problemas (Windows / OneDrive)
Se você está no Windows e o Cursor/Antigravity falha ao instalar o pacote com o erro os error 396 (hardlink incompatível), é porque o uv tenta criar links físicos em pastas que estão sincronizadas na nuvem (OneDrive, Google Drive) ou em particionamentos diferentes.
Solução: Adicione a variável de ambiente "UV_LINK_MODE": "copy" no bloco de configuração do seu cliente. Isso força o uv a fazer cópias normais em vez de hardlinks.
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"dlp-invest": {
"command": "uvx",
"args": ["dlp-invest-mcp"],
"env": {
"DLP_INVEST_API_TOKEN": "DLP-seu-token-aqui",
"UV_LINK_MODE": "copy"
}
}
}
}
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"dlp-invest": {
"command": "uvx",
"args": ["dlp-invest-mcp"],
"env": {
"DLP_INVEST_API_TOKEN": "DLP-seu-token-aqui",
"UV_LINK_MODE": "copy"
}
}
}
}
Licença
MIT — see LICENSE.
Metadata
Release files for dlp-invest-mcp 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dlp_invest_mcp-0.1.6.tar.gz | 118.6 kB | Without provenance | Details for dlp_invest_mcp-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dlp_invest_mcp-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for dlp_invest_mcp-0.1.6-py3-none-any.whl |
Total release size: 133.1 kB
Release files / dlp_invest_mcp-0.1.6.tar.gz
| Download URL | dlp_invest_mcp-0.1.6.tar.gz |
|---|---|
| Size | 118.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bbb89b971c2762a10714142edbcea864ef5bb9b35f117f636f59ca5fd2b9c99
|
|
BLAKE2b-256 checksum How to use checksums |
f1d47152142c7f05b31b8ae98af6a5d0a9b27ad2df02d14a22b26e70c4b7f3d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / dlp_invest_mcp-0.1.6-py3-none-any.whl
| Download URL | dlp_invest_mcp-0.1.6-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb07e1b3837b9f2b637c52d9b8f760b25aa72b1344b4bf5b2723d44cfdd65065
|
|
BLAKE2b-256 checksum How to use checksums |
296bc0b9c1bdc4cde3135ca1ab6eb23239ce7de19850c07d9a628ab5e76fd076
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for dlp-invest-mcp 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.