Runs on your machine from its package; the steps are below.
Not assessed yet.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx comdirect-mcp
MCP client config
{
"mcpServers": {
"comdirect": {
"command": "uvx",
"args": [
"comdirect-mcp"
]
}
}
}Read-only Model Context Protocol server and typed Python client for the comdirect REST API.
Let Claude, GitHub Copilot or any other MCP client look at your accounts, transactions, securities depot and postbox documents. The login is confirmed with your photoTAN app, and there is no tool that can move money.
Warning
This is an unofficial project, not affiliated with comdirect. It handles your banking credentials and sends your financial data to the AI model you connect it to. Read the warning below and SECURITY.md.
Leute es geht hier um euer Geld. Nutzt diese Bibliothek nur, wenn ihr den Code versteht und euch den Risiken bewusst seid.
Ich bin auch nicht perfekt, aber übernehme keine Haftung für Schäden, die durch die Nutzung dieser Software entstehen. Falls Euch was auffällt, gern PRs oder Issues.
Die API und damit das Repo hier nutzen aktuell nur lesende Endpunkte, aber Fehler können immer passieren. Comdirect kann die API ändern, Dependencies können im Zweifel auch Mist bauen (Supply-Chain Attacks) und 2FA hilft zwar, ist aber kein Freifahrtschein.
Bitte:
.env und committet die Datei nie.MCP-Server: Wenn ihr den Server an einen nicht-lokalen AI-Client hängt, gehen deine Daten raus. Je nach Client/Setup können Kontodaten/Transaktionen in Logs/Telemetry landen oder durch Prompt-Injection aus Dokumenten/Verwendungszwecken in komische Richtungen gehen (MCP Horror Stories: The GitHub Prompt Injection Data Heist). Nutzt MCP nur, wenn ihr der Umgebung wirklich vertraut, und gebt nur die Daten frei, die ihr dafür braucht.
Da der gemeine r/finanzen User eh schon seine Kontoauszüge in ChatGPT kopiert, könnt ihr damit machen, was ihr wollt, auf eure eigene Verantwortung!
Idealerweise ohne unnötige personenbezogene Daten. (Hauptsache, ihr lasst 'nen Stern da.)
The server runs on your machine, but every tool result is sent to the language model behind your MCP client. With cloud assistants (Claude, GitHub Copilot, ChatGPT, ...) your balances, transactions and documents leave your computer and are processed under that provider's data policy.
Details: Privacy and security · Use a local model
comdirect-mcp configure stores them once, client configs contain no secretscounterparty instead of SEPA roles, cleaned-up
payment texts, server-side summaries for cash flow questionspy.typed) for scripts and notebooks, independent of MCPio.github.mad4ms/comdirect-mcp| Tool | Description |
|---|---|
login | Starts a session; asks you to approve the push TAN |
logout | Ends the session and revokes it at comdirect (no further refresh) |
list_accounts | Accounts with type (Girokonto, Tagesgeld, ...) and balances |
get_wealth_overview | All product balances with bank-supplied EUR totals, including loans and savings |
list_depot_transactions | Securities purchases, sales and transfers with filters and continuation |
get_instrument | Security metadata; optional fund fees/ratings and derivative details |
list_transactions | Transactions with date, amount, counterparty and cleaned-up purpose; compact by default |
summarize_transactions | Cash flow and spending per month, counterparty or type, computed on the server |
list_cards | Card balances (Visa); the API has no card transactions |
list_depots | Securities accounts |
get_depot_positions | Positions (name, ISIN, WKN, values, P&L) and depot balance |
list_documents | Postbox documents (statements, order confirmations, tax documents) |
download_document | A document as embedded resource (comdirect marks it as read) |
get_account_balance | Balance and masked static data for one account |
get_depot_position | One securities position, with optional details |
summarize_portfolio | Largest positions and allocation percentages per currency |
list_orders / get_order | Read the order book and individual orders; never place or change orders |
get_order_dimensions | Available trading venues, currencies and order types |
get_document_cover | Bounded plain text from the document pre-page |
extract_document_text | Bounded PDF text with page continuation; downloading marks it as read |
Arguments and results: Tools reference.
New to this? Follow the Getting started tutorial.
uvx)uvx comdirect-mcp@0.5.1 configure
Prompts for Client ID, Client Secret, Zugangsnummer and PIN and stores them in the macOS Keychain, Windows
Credential Manager or Linux Secret Service. Other options (VS Code inputs, environment, .env):
Manage credentials.
Claude Desktop (Settings → Developer → Edit Config) and LM Studio (Program → Install → Edit mcp.json):
{
"mcpServers": {
"comdirect": {
"command": "uvx",
"args": ["comdirect-mcp@0.5.1"]
}
}
}
Claude Code
claude mcp add --transport stdio --scope user comdirect -- uvx comdirect-mcp@0.5.1
VS Code (MCP: Open User Configuration)
{
"servers": {
"comdirect": {
"type": "stdio",
"command": "uvx",
"args": ["comdirect-mcp@0.5.1"]
}
}
}
Ollama (via ollmcp)
uvx ollmcp mcp add --scope user comdirect -- uvx comdirect-mcp@0.5.1
uvx ollmcp -m <model>
Pinning the version (@0.5.1) means updates only happen when you decide. More clients:
Configure MCP clients.
Wie haben sich meine Ausgaben im letzten Monat entwickelt, und welche Depotposition läuft am schlechtesten?
The assistant calls login, your phone receives the push TAN, you approve it and confirm the dialog in
your client. Then the assistant can use the other tools. Problems: Troubleshoot.
The same client is available for your own scripts:
from comdirect_mcp import ComdirectClient
from comdirect_mcp.utils import default_push_tan_callback
client = ComdirectClient(
{"client_id": "...", "client_secret": "...", "username": "...", "password": "..."},
{"push_tan_cb": default_push_tan_callback},
)
client.login() # approve the push TAN, then press Enter
for account in client.list_accounts():
print(account.id, account.balance, account.currency)
See Use the Python library, the Python API reference and the examples.
The documentation is organized as tutorial, how-to guides, reference and explanation:
| Tutorial | Getting started |
| How-to | API access · Credentials · MCP clients · Local model · Troubleshoot · Python library · Develop |
| Reference | Tools · Configuration · Python API |
| Explanation | Login and sessions · Privacy and security · Design |
SECURITY.md describes the threat model and how to report vulnerabilities, CHANGELOG.md lists the changes per release.
Issues and pull requests are welcome, see CONTRIBUTING.md and the Code of Conduct. AI coding agents find their instructions in AGENTS.md.
This project is not affiliated with, maintained, or endorsed by comdirect bank AG. Use it at your own risk. There is no warranty and no liability for any financial losses or damages resulting from its use.
The software runs locally and does not send your credentials anywhere except to comdirect. Your MCP client and its model provider receive the data the tools return.