Skip to content
Hidden Logic Lab

tbank-mcp can move real money. The debit button is real; a card reveal is not behind it.

Published

tbank-mcp is an unofficial MCP server for T-Bank (Т-Банк, formerly Tinkoff) mobile banking. Once you have a session, a coding agent can read accounts and documents, hold tickets, send messenger messages, and — through a documented confirmation path — transfer money, pay bills, and check out a grocery cart. Publisher: GitHub user icyberdeveloper. Commits are authored as Nikolay Islamov (NeonDelph@gmail.com). License: MIT, copyright 2026 icyberdeveloper. The project states, in its README and PRIVACY.md, that it is not affiliated with or endorsed by T-Bank. There is no separate product site; the GitHub repository is the homepage.

This review pins two trees that still share the version string 0.2.2 and do not ship the same program:

  • The build pip, uv, pipx, the GitHub Release, and the official MCP Registry actually give you: tag v0.2.2, commit 65249a0abd14ef850d83dbc900f292b702e8aecc (Ship skills in the wheel, add install buttons, refresh README (0.2.2)). Commit and release date 24 August 2026, 00:41 Asia/Hong_Kong. That wheel declares 90 tools. It does not contain tbank_mcp/elicitation.py, mcp_apps.py, stdio.py, or tbank_mcp/ui/confirmation.html.
  • Default-branch HEAD: 19cc5ac7ce8cfd4fc42a207d772b071cc3a9fc21 on master (commit date 21 November 2026, 02:06:16 Asia/Hong_Kong). Message: Merge pull request #12 from icyberdeveloper/fix/mcp-app-resource-metadata. The v0.2.2 tag is an ancestor of HEAD. HEAD is 42 commits later, about three months of work, and enumerates 91 tools. pyproject.toml, server.json, and the Claude plugin manifest at HEAD still say 0.2.2.

At research time on 22 November 2026, 08:00:56 Asia/Hong_Kong, GitHub showed 57 stars and 10 forks. The repository is not archived. Created 24 July 2026, 07:25:54 Asia/Hong_Kong. Requires Python >= 3.11. Tool docstrings, skills, and tool output are in Russian.

How we reviewed this. Static review of a clone at 19cc5ac, a file comparison of the PyPI / GitHub 0.2.2 wheel (SHA-256 b0ee119640eff883e49c5d061fa8c6eee0ff94910904a8b7e28d6d5bb8d88382, 389,921 bytes — the PyPI and GitHub assets matched, and unpacked wheel files were byte-identical to the tag tree), the official MCP Registry entry, the two raw VPS scripts from master (downloaded, not executed; SHA-256 matched the HEAD working tree), and first-party docs. We queried GHCR tag manifests for :tunnel and sha-19cc5ac… and did not pull or unpack image layers. We did not run the MCP server, the login CLI, Docker Compose, or the test runner; did not log into T-Bank or any MCP client; did not send live bank or MCP calls; and did not fetch T-Bank’s own consumer terms. Review date 22 November 2026, Asia/Hong_Kong.

Verdict in plain language

Malware: We found no evidence of a malicious program in first-party source at 19cc5ac, in the v0.2.2 wheel and sdist, or in the two raw master VPS scripts (high confidence, not absolute). There is no postinstall hook, no verify=False in the runtime package, and no developer telemetry client in that package. The Python client talks to T-Bank production hosts; install and VPS paths also touch PyPI, GitHub, GHCR, and, in the Compose tunnel path, an operator-configured OpenAI tunnel. That is not a runtime “confirmed clean” certificate, and it does not cover GHCR image layers or a live Playwright browser download.

Permission scope: Default transport is stdio, not an unauthenticated loopback HTTP port. After a session exists at ~/.local/share/tbank-mcp/session.json (mode 0600, override TBANK_SESSION), 68 READ tools can pull balances, operations, messenger contents, identity documents, and card metadata and return them to whichever model your MCP client uses. Eight tools are classified MONEY: transfer, transfer_requisites, pay_bill, grocery_checkout, ticket_pay, train_pay, flight_book, and confirm_payment.

The debit gate on HEAD is real MCP elicitation, not an honor-system flag an agent can set in the tool arguments. Clients that do not declare the capability are refused at or above TBANK_CONFIRM_ABOVE (default 0, so every finite positive payment asks). grocery_checkout refuses a capability-less client at any threshold. That is stronger than a boolean the model can flip. It is not complete: a positive threshold skips the button on most money tools; confirm_payment takes a bank OTP as a tool argument and has no elicitation of its own; the server must trust that the MCP host actually showed a button and that a human pressed it. And a read tool, card_requisites(..., reveal=True), can put a full PAN and CVV in the model without that button.

If you take the Features bullet “password/PIN stay OUT of the LLM context” as true of every documented login path, that is not what README Option 2 does.

What the server actually is

At 19cc5ac, this is a capture-driven client for T-Bank’s mobile and webview APIs, wrapped as a FastMCP 1.x server (mcp>=1.2,<2 is load-bearing in pyproject.toml). TOOL_KINDS in tbank_mcp/server.py lists 91 tools (68 READ, 15 WRITE, 8 MONEY), and the @mcp.tool() definitions match that table.

Login starts with SMS, then OTP / password / PIN. refresh_session can silently remint a session from a stored SSO_SESSION cookie without a new OTP — the package docstring says about every two hours. Grocery checkout is a headless Chromium / Playwright flow against a www.tbank.ru checkout URL, with mobile session cookies injected into the browser. dry_run=True quotes and does not charge. Hotel booking through MCP is refused in the tree; an internal transfer between your own accounts is documented as not implemented.

This usefulness description is from reading the tree, not from exercising a live account. Using an unofficial client against a production bank API may have account or terms consequences; this review did not retrieve T-Bank’s current terms and does not answer that question.

pip and git are not the same 0.2.2

A user who follows the common “pip install tbank-mcp” path gets the August wheel. A user who installs the Claude Code plugin, or clones master and runs pip install -e ., or who follows the VPS guide, gets HEAD-class code. Both will report version 0.2.2.

The post-tag work pip users do not get includes the modern elicitation and MCP Apps confirmation transport — the modules that are simply absent from the wheel. SECURITY.md in the tree says only the latest PyPI release is supported. That line, read against a three-month lag, is a warning about what is officially supported, not evidence that HEAD is what PyPI serves.

The VPS path is thinner still. docs/VPS.md has you curl compose.yaml and the tbank helper from floating raw.githubusercontent.com/.../master/, with no checksum pin, then compose pull ghcr.io/icyberdeveloper/tbank-mcp:tunnel with pull_policy: always. On the morning we checked, the :tunnel index digest equaled the sha-19cc5ac… tag, so a pull that day would have been a HEAD-built image. The documented tag will move on the next successful master publish. Prefer a sha-<commit> image pin if you use Docker; the workflow already publishes those tags. We did not run the image.

The Claude plugin launcher, on first start, runs an unpinned pip install --upgrade pip and pip install -e of whatever git revision was cloned. tbank-mcp-skills copies skills into ~/.claude/skills by default and shutil.rmtrees any existing directory named tbank or tbank-* in the target first — it can delete a similarly named skill directory you already had.

The debit button is real protocol

On HEAD, money tools go through _money_gate / _transfer_gate in tbank_mcp/server.py and tbank_mcp/elicitation.py. If the amount is in scope and the client has not declared elicitation, the tool returns NO_ELICITATION_REFUSAL (“ПЛАТЁЖ НЕ ВЫПОЛНЕН…”) before the payment body. Comments and unit tests in tests/test_elicitation.py pin that a capability-less client is refused, “not waved through.” grocery_checkout is stricter: a non-dry-run call refuses a capability-less client before the Playwright quote, at any threshold.

The ruble threshold is TBANK_CONFIRM_ABOVE, default 0, read from the server environment, not from a tool argument. Junk, NaN, or negative values fail toward asking. Below a positive threshold, most money tools proceed without a button, in any client. That exception is documented in the README. It is the operator’s setting, not a hidden switch.

Accept is a protocol-level elicitation result (or, in mcp-apps mode, a card action). Decline, cancel, error, and timeout do not authorize a debit. Continuations use a one-use, connection- and argument-bound handle with a five-minute TTL. The server can only see what the MCP client declared and what accept or decline it returned. It cannot independently prove a human saw a button and pressed it. That is trust in the MCP host, not a tool-argument honor flag. Whether a given host actually hides _meta handles from the model, and never auto-accepts, is host behavior; we did not test any host.

confirm_payment is classified MONEY and has no elicitation gate. It completes a payment the bank already holds at WAITING_CONFIRMATION. The agent is told to collect the SMS or push code from the user and pass it as otp. An empty OTP returns a prompt; a filled OTP is posted to the bank. SECURITY.md’s line that every money-moving tool must end in an MCP elicitation showing the exact amount is stronger than this path: the second factor travels through the model unless the user types it somewhere the model cannot see. This is a residual on a payment that already passed an earlier gate (or a bank-side hold). It is not a recipe for skipping the first button.

A read tool can put a full card in the model

card_requisites(ucid, reveal=False) is classified READ. Default output masks the PAN and hides the CVV. reveal=True returns the full PAN and CVV — the docstring says that is enough to pay with the card — and emits an observability event that a reveal happened, not the values. The bank endpoint is https://api.t-bank-app.ru/v1/card_credentials. The only “gate” on reveal is a docstring instruction to the model. There is no elicitation. Because the tool is READ, annotations set readOnlyHint: true; a host that auto-runs read-only tools will not treat this as destructive.

documents() returns identity documents — passport, international passport, driver’s license, SNILS, INN, insurance, vehicle docs — as numbers in the tool result, not masked. include_others=True also shows relatives’ documents stored at the bank. If the owner’s birth-date lookup fails, the code warns that the relatives filter may not have run, rather than silently presenting a relative’s passport as yours. That warning is careful. The numbers still leave through the MCP client if the tool is used.

The Features bullet says “password/PIN stay OUT of the LLM context (local CLI or env var).” That is true of the recommended tbank-mcp-login / login_cli.py path, which uses getpass or TBANK_PASSWORD / TBANK_PIN and does not go through the MCP tool channel. The server still exposes confirm_password(password) and confirm_pin(pin) as WRITE tools. README Option 2 explicitly walks through confirm_password("YourPassword") via the agent and warns that the password then enters the model context and call logs. The login() docstring tells the agent the password is not entered through the agent — which conflicts with Option 2 and with the existence of the tool. Prefer the CLI. Do not treat the Features bullet as a hard control.

TLS is actually pinned on the requests path

This part of the docs holds up. tbank_mcp/tls.py describes a 2026-07-25 rewrite: the old code could run unverified openssl s_client on TLS failure and append whatever certs came back. Current code builds a bundle from the system store plus pinned roots only; rebuild_bundle(..., hosts=) ignores hosts. Certificates are not learned from the peer. The shipped Russian Trusted Root CA PEM is pinned by SHA-256 d26d2d0231b7c39f92cc738512ba54103519e4405d68b5bd703e9788ca8ecf31 in PINNED_ROOTS; we hashed the file and it matched. A file with that name that does not match the hash is refused. Extra unpinned PEMs dropped into ca/roots/ or TBANK_EXTRA_CA are trusted and logged — an operator escape hatch.

The requests session mounts that adapter. Playwright grocery checkout is a different trust store: Chromium is launched with default context options, and we found no hook in checkout.py that loads this bundle. The checkout URL is on www.tbank.ru, which the TLS module notes chains to publicly trusted roots, so the pin may be unnecessary on that host. It is still not the same “pinned roots only” story. We did not runtime-test either path.

PRIVACY.md (dated 2026-08-24, before the Docker work landed) says the only network traffic is to T-Bank production hosts. In the runtime package we did not find a developer telemetry client. The host-suffix claim is narrower than the endpoint table, and the Compose/VPS path additionally talks to OpenAI’s tunnel when the operator configures it.

When this is a poor fit

  • You wanted an official T-Bank integration, or you cannot accept an unofficial, capture-driven client talking to production banking hosts.
  • You install from PyPI and assumed you were running the confirmation-transport work that only exists on master, or you build from git and assumed the version string 0.2.2 meant you matched the supported wheel.
  • You set a positive TBANK_CONFIRM_ABOVE and thought every debit would still show a button.
  • You need a technical control that keeps PAN, CVV, passport numbers, or a bank password out of the model. reveal=True, documents(), Option 2, and confirm_payment’s OTP argument are all in the tool channel.
  • You planned to follow the VPS curl of master and an always-pull :tunnel tag, and you needed a pinned, auditable install.
  • Your MCP host does not implement elicitation (or MCP Apps cards, in that mode). Capability-less clients are refused for in-scope payments — which is the safe failure, and it also means the money tools will not work there.

Bottom line

tbank-mcp is a genuine unofficial banking MCP: the money tools are real, the default transport is stdio, and the HEAD debit gate is real protocol, not a flag the agent sets. No malware found in our static review of 19cc5ac, the v0.2.2 wheel and sdist, and the two raw VPS scripts. The honest risks are the three-month install-path skew still labeled 0.2.2, the residuals around that debit gate, and the high-sensitivity read and login paths that never go through it.

If you use it, know which SHA you actually run — pin a commit or a sha- image, and do not trust the version string alone; keep TBANK_CONFIRM_ABOVE at 0 unless you have a reason to allow smaller debits without a button; log in through the CLI, not Option 2; and treat card_requisites(reveal=True) and documents() as data leaving for your model provider, not as harmless lookups. The button this project implemented is a real improvement on an honor-system flag. It is not a vault door around every secret the server can return.

Official sources: github.com/icyberdeveloper/tbank-mcp, v0.2.2 release, commit 19cc5ac, PyPI tbank-mcp.

More skill reviews

← All skill reviews