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.

What is this?

MCP is an open protocol that lets AI assistants interact with external tools and data sources.

This package enables your AI to safely read and query your DLPInvest investment portfolio (positions, trades, statements, dividends, performance) in real-time, without writing code or running installation scripts.


Quick Setup (Zero Terminal Commands)

You do not need to install Python packages manually. Just add the configuration block below to your AI client's settings.

Cursor

Add to .cursor/mcp.json in your project root or in your global Cursor settings:

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

Claude Desktop

Paste into your configuration file:

  • 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-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Claude Code

Run once:

claude mcp add dlp-invest --scope user --env DLP_INVEST_API_TOKEN=DLP-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -- uvx dlp-invest-mcp

Requirement: Requires uv installed on your machine (uvx is included automatically with uv).


Available Tools

Once configured, your AI assistant automatically gains access to 11 financial tools:

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 —

Environment Variables

Variable Default Required Description
DLP_INVEST_API_TOKEN (empty) Recommended Your DLPInvest API token. If omitted, queries return a clear notice asking for the token.
DLP_INVEST_API_BASE_URL https://users.dlpinvest.com.br No Base URL of the DLPInvest REST API.
DLP_INVEST_REQUEST_TIMEOUT_SECONDS 30 No Timeout in seconds for HTTP requests.

Troubleshooting

Problem Cause Solution
uvx: command not found uv is not installed Install uv once on your machine (uv installation guide).
"Token de API nao configurado" DLP_INVEST_API_TOKEN missing Add your token in the env section of your MCP configuration JSON.
Tools don't appear in AI client Incorrect configuration JSON Ensure the JSON is saved inside your client's config file and restart the client.

License

MIT — see LICENSE.

Metadata

Release files for dlp-invest-mcp 0.1.3

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.3
File Size Uploaded Provenance Actions
dlp_invest_mcp-0.1.3.tar.gz 118.1 kB Without provenance Details for dlp_invest_mcp-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 132.5 kB

Release files / dlp_invest_mcp-0.1.3.tar.gz

Download URL dlp_invest_mcp-0.1.3.tar.gz
Size 118.1 kB
Tags Source
SHA-256 checksum
How to use checksums
211916fa02b5a7573baec4a75368397d9926b444d42376c083881eb236eba31b
BLAKE2b-256 checksum
How to use checksums
fdd745c9b87337bec5ac5fb855f3817bbc423921706e63ade9a62c163346231c
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.3-py3-none-any.whl

Download URL dlp_invest_mcp-0.1.3-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40b2c7012526f9a2637a0348181071414054828ed235a8b83b6f9058099d66b0
BLAKE2b-256 checksum
How to use checksums
b428d8e6728b6d2d03a415e24bfbfada053586905ae14efefdcad9b4564ca8cb
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.3

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