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.
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",
"UV_LINK_MODE": "copy"
}
}
}
}
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",
"UV_LINK_MODE": "copy"
}
}
}
}
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 (
uvxis 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.4
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.4.tar.gz | 118.2 kB | Without provenance | Details for dlp_invest_mcp-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dlp_invest_mcp-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for dlp_invest_mcp-0.1.4-py3-none-any.whl |
Total release size: 132.6 kB
Release files / dlp_invest_mcp-0.1.4.tar.gz
| Download URL | dlp_invest_mcp-0.1.4.tar.gz |
|---|---|
| Size | 118.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89e7f9ef1f00cb67405781fb60e964aeed4b0efefd8ee0584a535280017d3610
|
|
BLAKE2b-256 checksum How to use checksums |
010300520d4866c844b191f6b5b217957c934b038efd0799b8e31d2526bd1b15
|
| 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.4-py3-none-any.whl
| Download URL | dlp_invest_mcp-0.1.4-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
294b16f8ebebb928682303e02db624bb3dc845e76bda47dce02562433e96b3a5
|
|
BLAKE2b-256 checksum How to use checksums |
4bf26e9ae06b768a3ef6a39ee38cfb4ee42b4bf83203e931d00e416f59a58265
|
| 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.4
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.