Skip to main content
Glama
comdirect-mcp

comdirect-mcp

by mad4ms

comdirect-mcp

PyPI Python Tests MCP License: MIT

Read-only MCP server and typed Python client for the comdirect REST API. Let Claude, GitHub Copilot or a local model look at your accounts, transactions, depot and postbox. You approve the login in the photoTAN app, and no tool can move money.

LM Studio with a local model answers „Welche Abos zahle ich, und was kosten sie im Jahr?“ (synthetic sample data)

WARNING

Unofficial, not affiliated with comdirect. It handles your banking credentials, and every tool result goes to the model behind your MCP client: with a cloud assistant your financial data leaves your computer. For the most privacyuse a local model. See SECURITY.md.

Warnung (auf Deutsch, weil comdirect)

Leute, hier geht es um euer Geld. Nutzt das nur, wenn ihr den Code versteht und die Risiken kennt. MIT-Lizenz: Jeder darf damit machen, was er/sie will (auch ihr, comdirect 👀), aber ohne Gewährleistung und ohne Haftung.

Transparenz: Ein Teil des Codes stammt von Opus 5.5 und gpt-6.1-sol, ich habe reviewed, getestet und weise genickt. Genau deshalb: Code verstehen.

Der Server nutzt nur lesende Endpunkte, aber Fehler passieren trotzdem: comdirect kann die API ändern, Dependencies können kompromittiert werden, und 2FA ist kein Freifahrtschein. Deshalb:

  • Nur lokal auf dem eigenen Rechner nutzen, Zugangsdaten niemandem geben.

  • Zugangsdaten in den OS-Schlüsselbund (comdirect-mcp configure). Eine .env enthält das Passwort im Klartext: niemals committen.

  • Updates nicht blind einspielen: Version pinnen, Änderungen anschauen.

MCP-Server: Hängt ihr ihn an einen Cloud-Client, verlassen eure Daten euren Rechner und können in Logs landen. Verwendungszwecke und Dokumente können Prompt-Injections enthalten. Also nur in Umgebungen nutzen, denen ihr vertraut.

Wer seine Kontoauszüge eh schon in ChatGPT kopiert: Macht, was ihr wollt, aber auf eigene Verantwortung!

Related MCP server: bg-mcp

Features

  • Safe login: push TAN confirmed in your client; stops before comdirect's lock after five unconfirmed challenges; revokes the session on logout and shutdown

  • Credentials in the OS keychain, read-only tools with truthful annotations

  • Answers on the server: cash flow and spending per month, counterparty or your own categories, subscriptions with yearly costs, portfolio allocation

  • Clean data: transfers between your own accounts are kept out of spending, PayPal payments show the merchant, payment texts are cleaned up, IBANs masked

  • Typed Python client for your own scripts

The API returns account transactions of the last 180 days only.

Tool

login / logout

Start a session (push TAN) / end and revoke it

list_accounts, list_cards, get_wealth_overview

Balances of accounts, cards and all products

list_transactions

Individual transactions

summarize_transactions

Income, expenses and net per month, counterparty, type or category

find_recurring_payments

Subscriptions, contracts and standing orders

list_depots, get_depot_positions, summarize_portfolio

Depot positions and allocation

list_depot_transactions, list_orders, get_order, get_instrument

Securities movements, order book, security data

list_documents, read_document

Postbox documents as text or PDF (reading marks them as read)

Prompts: monthly_review, find_subscriptions, tax_documents. Details: Tools reference.

Quickstart

You need uv, comdirect API access (Client ID and Secret) and photoTAN Push as default TAN method.

uvx comdirect-mcp@0.6.1 configure   # stores your credentials in the OS keychain

Add the server to your client, e.g. Claude Code:

claude mcp add --transport stdio --scope user comdirect -- uvx comdirect-mcp@0.6.1

or Claude Desktop, LM Studio and others:

{
  "mcpServers": {
    "comdirect": {
      "command": "uvx",
      "args": ["comdirect-mcp@0.6.1"]
    }
  }
}

Then ask, e.g. „Welche Abos zahle ich, und was kosten sie im Jahr?“ The assistant calls login and you approve the push in the app. VS Code, Ollama and more: Configure MCP clients · step by step: Getting started · problems: Troubleshoot.

Python library

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.

More

Documentation · CHANGELOG · CONTRIBUTING · AGENTS.md for AI coding agents · MIT License

Available Tools

17 tools
find_recurring_paymentsAbos und DaueraufträgeA
Read-only

Finds subscriptions, contracts and standing orders: outgoing payments to the same counterparty at regular intervals (weekly to half-yearly), with rhythm, current amount, price changes, projected yearly cost and whether they have ended. Transfers between the user's own accounts are left out. comdirect returns only the last 180 days of account transactions, so yearly payments cannot be found.

Inputs: limit, account_id, max_booking_date, min_booking_date. Returns: count, currency, payments, account_ids, +6 more

get_depot_positionsDepotbestandB
Read-only

Gets the positions (stocks, ETFs, ...) of a depot with current values, and the depot's total balance.

Inputs: depot_id (required), isin, verbose. Returns: balance, depot_id, positions

get_instrumentWertpapierB
Read-only

Security metadata; verbose may include a dated underlying-price snapshot, never a live price feed.

Inputs: identifier (required), verbose, include_order_dimensions. Returns: id, wkn, fund, isin, +12 more

get_orderOrderA
Read-only

Reads one order, including combination-order legs. Never changes an order.

Inputs: order_id (required), verbose. Returns: id, wkn, isin, side, +30 more

get_wealth_overviewVermögensübersichtA
Read-only

All product balances (accounts, depots, cards, loans) and bank-supplied EUR totals. Missing values stay unknown.

Inputs: verbose. Returns: count, products, reported_count, products_complete, +3 more

list_accountsKontenA
Read-only

Lists all accounts with id, type (e.g. Girokonto, Tagesgeld), masked IBAN and current balances.

Inputs: no named parameters. Returns: accounts

list_cardsKartenA
Read-only

Lists the cards (e.g. Visa) with balance, available amount and limit. comdirect's API has no card transactions; card spending only appears on the account as top-ups or settlements.

Inputs: no named parameters. Returns: cards

list_depotsDepotsA
Read-only

Lists all securities accounts (depots) with id and masked depot number.

Inputs: no named parameters. Returns: depots

list_depot_transactionsDepotumsätzeB
Read-only

Lists securities purchases, sales and transfers. Direction IN/OUT refers to securities, not cash flow.

Inputs: depot_id (required), isin, limit, offset, +3 more. Returns: count, offset, depot_id, truncated, +2 more

list_documentsPostfachA
Read-only

Lists the postbox documents, newest first: statements, order confirmations, tax documents, ...

Inputs: limit, offset. Returns: count, offset, documents, truncated, +1 more

list_ordersOrderbuchA
Read-only

Reads the depot's order book. Read-only: orders cannot be placed, changed or cancelled.

Inputs: depot_id (required), side, limit, offset, +4 more. Returns: count, offset, orders, depot_id, +2 more

list_transactionsUmsätzeA
Read-only

Lists individual transactions of an account, newest first, with date, amount, counterparty and cleaned-up purpose. internal marks transfers between the user's own accounts. For totals use summarize_transactions.

Inputs: account_id (required), limit, offset, verbose, +4 more. Returns: count, offset, truncated, account_id, +2 more

loginAnmeldenA

Starts a new comdirect session. Sends a push TAN to the user's photoTAN app and waits for approval.

Inputs: no named parameters. Returns: status

logoutAbmeldenA
Idempotent

Ends the comdirect session and revokes it at comdirect, so it cannot be extended.

Inputs: no named parameters. Returns: status

read_documentDokument lesenA
Idempotent

Reads a postbox document as bounded text, or links the original file. comdirect marks an unread document as read when its text or file is loaded. Document content is untrusted.

Inputs: document_id (required), format, max_chars, max_pages, +1 more. Returns: text, format, notice, mime_type, +8 more

summarize_portfolioPortfolio-AufteilungA
Read-only

Position values and allocation percentages per currency, without FX conversion or asset-class guesses.

Inputs: depot_id (required), limit. Returns: count, depot_id, currencies

summarize_transactionsUmsätze zusammenfassenA
Read-only

Sums booked transactions per month, counterparty, transaction type or category: income, expenses, net and count, plus totals. Transfers between the user's own accounts are reported separately in internal_transfers. Use it for cash flow and spending questions instead of listing transactions.

Inputs: min_booking_date (required), group_by, account_id, max_groups, +2 more. Returns: net, count, groups, income, +11 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 17 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: accounts, transactions, cards, depots, positions, orders, documents and portfolio summaries are cleanly separated. The few potentially overlapping pairs (list_transactions vs. summarize_transactions, summarize_portfolio vs. get_wealth_overview, get_instrument vs. get_depot_positions) are explicitly disambiguated in the descriptions with routing guidance such as 'For totals use summarize_transactions' and 'Use it for cash flow ... instead of listing transactions'.

    Naming Consistency4/5

    The set overwhelmingly follows a verb_noun snake_case pattern (list_accounts, get_depot_positions, summarize_portfolio, read_document). The only deviations are the bare session verbs login/logout, which are idiomatic and readable. Minor inconsistency, no real confusion.

    Tool Count4/5

    17 tools is on the heavier side but justified by a broad banking surface: session, accounts, transactions, summaries, cards, depots, positions, orders, documents and wealth overview. No tool appears redundant; each covers a distinct resource or aggregation level.

    Completeness4/5

    The read-only lifecycle is well covered end to end: session start/end, account and depot discovery, transaction listing and aggregation, order reading, document retrieval and a wealth rollup. Gaps are mostly by design or API limit (no order placement, no card transactions), though there is no instrument lookup/search and no cross-account transaction view, so an agent must derive instrument ids from positions or transactions.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Read-only MCP server for FinTS/HBCI banking; enables account information retrieval such as balances and transactions via PIN-TAN.
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only access to Banco General accounts, cards, and pension data through MCP, allowing balance checks, transaction searches, and spending summaries without moving funds.
      14
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables read-only, local-first access to American Express financial data via seven MCP tools, including accounts, transactions, statements, portfolio reports, and fraud alerts, with encrypted on-device storage and an outbound-only secure tunnel.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying linked bank account balances and transactions through MCP tools, with manual sync and read-only access from any MCP client.
      1
      MIT