Skip to main content

dlp-invest-mcp

PyPI Python License CI

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.

  • Windows (PowerShell):
    powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  • macOS / Linux:
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

Configuração no Cursor (.cursor/mcp.json)

Você pode configurar o MCP de duas formas:

Exemplo 1: Via PyPI (Recomendado para uso normal)

Baixa e executa a última versão publicada no PyPI.

{
  "mcpServers": {
    "dlp-invest": {
      "command": "uvx",
      "args": ["dlp-invest-mcp"],
      "env": {
        "DLP_INVEST_API_TOKEN": "DLP-seu-token-aqui"
      }
    }
  }
}

Exemplo 2: Desenvolvimento Local (Usando a wheel gerada)

Útil se você estiver testando modificações locais no código sem precisar publicar no PyPI. Primeiro gere a wheel com uv build no seu terminal e aponte para o arquivo .whl gerado na pasta dist/.

{
  "mcpServers": {
    "dlp-invest-local": {
      "command": "uvx",
      "args": ["--from", "C:/caminho/para/dlp-invest-mcp/dist/dlp_invest_mcp-0.1.6-py3-none-any.whl", "dlp-invest-mcp"],
      "env": {
        "DLP_INVEST_API_TOKEN": "DLP-seu-token-aqui"
      }
    }
  }
}

Se ao iniciar o MCP você receber o erro os error 396 (hardlink incompatível), adicione --link-mode e copy nos argumentos (args), evitando problemas em pastas sincronizadas na nuvem:

{
  "mcpServers": {
    "dlp-invest": {
      "command": "uvx",
      "args": ["--link-mode", "copy", "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:

  • obter_operacoes, obter_carteira, obter_posicao, obter_rentabilidade, obter_extrato, obter_proventos, obter_ativos, obter_ativos_detalhes, obter_corretoras, obter_estrategias, obter_subestrategias.

Licença

MIT — see LICENSE.

Metadata

Release files for dlp-invest-mcp 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dlp-invest-mcp 0.1.7
File Size Uploaded Provenance Actions
dlp_invest_mcp-0.1.7.tar.gz 118.3 kB Without provenance Details for dlp_invest_mcp-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dlp-invest-mcp 0.1.7
File Interpreter ABI Platform Actions
dlp_invest_mcp-0.1.7-py3-none-any.whl Python 3 none any Details for dlp_invest_mcp-0.1.7-py3-none-any.whl

Total release size: 132.4 kB

Release files / dlp_invest_mcp-0.1.7.tar.gz

Download URL dlp_invest_mcp-0.1.7.tar.gz
Size 118.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c3b5ee30a9fdbf08eed268ec20d53221f79a724c1c09262c28881006ad684731
BLAKE2b-256 checksum
How to use checksums
60700d357b6bbc7640bef49c21cf9af61074dbd1394652de7d3385aa351f77da
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.7-py3-none-any.whl

Download URL dlp_invest_mcp-0.1.7-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5016a316e98283f8bcf0495957694c517a5fa8196bf773163fd989cddb58cb7b
BLAKE2b-256 checksum
How to use checksums
3d56dc5747907d028f3b35c96ddfba673cf475fa8827e28220421a99554f417f
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.7

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page