Purpose
tbank-mcp is an unofficial MCP (Model Context Protocol) server for connecting to T-Bank (Т-Банк, formerly Tinkoff) mobile banking. It is aimed at MCP-capable agents such as Claude Code, Codex, ChatGPT, Hermes, and OpenClaw, enabling agents to read bank data and perform certain payment-related operations.
Main capabilities
The project provides about 90 tools, covering: accounts, bank cards, documents, transaction records, grocery ordering, movie and concert tickets, train and flight booking, hotel search, orders, transfers (including payment by bank payment details and payment by scanning an invoice QR code), instant messaging, and investments.
Each business vertical corresponds to a skill, entered through the tbank routing skill, including: grocery ordering, tickets, travel, transfers, bill payment, bank cards and documents, instant messaging, budget analysis, investment advisor, and login.
Among the read-type tools, get_data(section) covers dozens of read sections, such as subscriptions, repayment schedules, statements, loans, investment accounts, pensions, and more; invest_portfolio is a standalone tool rather than a section.
The grocery tools (grocery_search, grocery_plan_order, grocery_add_to_cart, grocery_set_cart, grocery_cart, grocery_checkout) require obtaining app_id and point_id from grocery_stores(); there is no default store, to ensure that adding to cart, the cart, and checkout always operate on the same cart.
How to use
Installation: pip install tbank-mcp.
When used as a Claude Code plugin, the server and all skills can be installed in one step. The plugin manifest cannot execute installation steps, so bin/tbank-mcp creates the venv and Python dependencies on the server's first startup, after which startup goes directly to the server.
The tbank-mcp console script starts the stdio server; the pinned CA root certificate, process references, and skills are all packaged inside the wheel, so it can run from any location. tbank-mcp-login and login_cli.py in the repository are the same login CLI, both write the session to the same file that the server reads. tbank-mcp-skills installs skills for Claude Code (by default ~/.claude/skills; another location can be specified with --target). Unlike a plain cp, it first deletes old copies under retired names, so it must be run again after an upgrade.
Grocery checkout requires a browser and is about 150 MB, so you need to choose to install it yourself: python -m playwright install chromium.
The manual method (cloning the repository, without using the plugin) also works.
Login security: the password and PIN are secrets and are not placed into the model context. Using the local CLI is recommended; the script asks for the password itself via getpass, does not echo it to the terminal, and does not pass it through the agent. The password can also be provided via an environment variable, for CI and scripts. Both methods require entering an SMS verification code, so there is no unattended login. TBANK_PASSWORD (and TBANK_PIN) are read only by the login CLI; the MCP server or the large model does not read them. TBANK_PHONE is not read anywhere: the phone number is always a command-line argument.
Other agents (Codex, ChatGPT, Hermes, OpenClaw): after pip install tbank-mcp, the entire entry can be simplified to "command": "tbank-mcp", with no path or cwd needed.
Cursor: can be added via the Install MCP Server button, the Customize page in the sidebar, or by creating ~/.cursor/mcp.json (global) / .cursor/mcp.json (per project). Cursor renders MCP elicitation, so the payment confirmation button in chat works.
Cherry Studio: Settings → MCP → MCP Servers → Add, type stdio, command tbank-mcp, no arguments. Save, enable, wait for healthy status. Cherry Studio does not yet render MCP elicitation, so reads work, but money-related tools will refuse to execute.
Goose: CLI uses goose configure → Add Extension → Command-line Extension, name tbank, command tbank-mcp; desktop sidebar → Extensions → Add custom extension, the value is the same. Goose renders elicitation in both the desktop version and the CLI, and its confirmation form times out after 5 minutes, so payments need to be confirmed promptly.
Reading is available in any MCP client. Payment requires the client to render MCP elicitation: funds-related tools confirm the amount via a button pressed by the user («Перевести/Отмена», «Оплатить …?»), and clients that do not support this capability are rejected before anything is sent (grocery_checkout is rejected at any threshold; its dry_run=True preview creates nothing and is still available). Hermes/Telegram and Claude Code (≥ 2.1.76) render it; Claude Desktop does not.
When to use
Suitable for users who want to query T-Bank accounts, bank cards, documents, transaction history, investment portfolios, and other information through an MCP-enabled agent; also suitable for performing payment operations such as transfers, bill payments, ticket and travel bookings, and grocery orders in clients with elicitation capability. The tools, skills, and output are all in Russian, because the bank is Russian and the people reading the answers are also Russian speakers.
Limitations and safety
Payment tools (transfer, transfer_requisites, grocery_checkout, ticket_pay, pay_bill, train_pay, flight_book, confirm_payment) require confirmation of the specific amount; “buy it” does not constitute confirmation. Confirmation is a button displayed by the tool itself (elicitation), with the real total; the agent shows the details in advance (recipient, payment information, cart, seats, and fees) and does not ask “yes/no” in text. grocery_checkout quotes the final amount itself and charges strictly the amount shown on the button; if the quote has no price (empty cart, preview rejected by the store, no finite positive total), it returns a preview and does not charge.
TBANK_CONFIRM_ABOVE is the ruble threshold at which instant-charge payment tools display a confirmation button (default 0: every payment asks). This is a server-side setting, not a tool parameter. Does not support elicitation's client will not be allowed through: when the threshold is reached or exceeded, the tool refuses before recording or sending anything («ПЛАТЁЖ НЕ ВЫПОЛНЕН…»). Below a positive threshold it does not ask, and any client can continue paying — except for grocery_checkout, which refuses clients that do not support elicitation at any threshold, because it is the only payment tool that must load the checkout page to learn the amount, and doing so means requiring the store to hold a delivery slot.
Device profile: payments carry a 3DS/anti-fraud block whose device facts (screen size, language, timezone, hardware model) by default come from the device that captured the traffic. They can be overridden via TBANK_DEVICE_SCREEN_HEIGHT / _WIDTH / TBANK_DEVICE_LANGUAGE / TBANK_DEVICE_TIMEZONE / TBANK_DEVICE_MODEL.
Request shape switches: TBANK_QUERY_PROFILE=legacy restores sending wuid to all hosts and injecting vendor / client_version on every read; the default is now the scoped form. TBANK_ACCEPT_PROFILE can be json (default) | auto | a comma-separated host list, off by default, and must be rolled out per host category.
Session file: the canonical path of session.json is ~/.local/share/tbank-mcp/session.json (can be overridden with TBANK_SESSION), permissions 0600, readable only by the owner, and it stores the token. The login CLI and the MCP server read the same file. At startup, MCP logs only the path, size, and permissions, and never logs tokens or cookies.
Diagnostic files: events.jsonl and attempts.jsonl are located in ~/.local/share/tbank-mcp/ and contain steps, http_status, blame, amount, and order id, and never contain tokens, cookies, addresses, phone numbers, emails, or account numbers. calls.jsonl has one line per tool call, recording the tool, arguments, duration, and the first line of the answer; free-text arguments or credentials are only measured, not stored, and long digit strings are replaced. Enabled by default; TBANK_TRACE=0 disables it; TBANK_TRACE_FILE can be moved, with 5 MB rotation.
There are no secrets in the repository. tbank_mcp/ca/roots/.pem are public CA root certificates, pinned by SHA-256; tests/fixtures/.json are sanitized request contracts with real structure and synthetic personal data. Raw captures are gitignored and never leave the local machine.
Tests: there is no pytest; the tests are standalone scripts, and running all of them is sufficient. Each test runs in a separate process, and the runner redirects attempt/event logs to a temporary directory, so test runs do not write to ~/.local/share/tbank-mcp/.
MyT (work calendar and parking) has been migrated to a separate MCP: tbank-myt, with different accounts, sessions, and login_cli.py.