Projects

MBBank MCP: The Boundary Between an Assistant and a Bank Account

Python
MCP
AI
Banking

Connecting an unofficial banking library to MCP—and why exposing a tool to an assistant requires more care than wrapping a Python function.

A banking dashboard on a desk beside a closed vault.

An API wrapper answers one question: how can an application call a service? Giving that wrapper to an AI assistant raises another: which operations should the assistant be allowed to choose?

MBBank MCP explores that second boundary. It exposes operations from my MBBank Python library through the Model Context Protocol, letting a compatible assistant request banking information through tools instead of relying on someone to paste it into a conversation.

From a Python method to an assistant tool

MCP gives the client a structured description of an operation and its arguments. The assistant can select a tool, the server can execute it, and the result can return to the conversation.

The server includes tools for balances, transaction history, cards, savings, interest rates, and bank lookup. These provide the underlying information an assistant might use to answer a question. They are not, by themselves, a budgeting engine or a guarantee that the assistant’s interpretation is correct.

That separation is important. Retrieving a transaction is a tool operation; deciding what it means is a model response. A reliable integration needs to keep the source data distinguishable from the explanation built on top of it.

Choosing where the server runs

The default transport is stdio, which fits clients that launch a local tool server themselves. The server entry point also exposes SSE and Streamable HTTP for other deployment arrangements.

Transport is more than a configuration preference when the tools can access financial information. A local process and a network-accessible service have different exposure. Credentials, access controls, logs, and the model provider receiving the returned data all need consideration; using MCP does not make those questions disappear.

The repository contains the current client configuration and command-line instructions. Keeping those instructions upstream avoids presenting an outdated configuration here as a tested deployment recipe.

Transfers changed the safety assumptions

This project is not completely read-only. The current server includes start_transfer and verify_transfer in addition to information-retrieval tools.

The first operation starts a transfer session and returns a QR code; the confirmation flow accepts an OTP through verify_transfer. Those are meaningful steps in the bank’s workflow, but their presence does not justify calling the entire integration safe by default.

For a monitoring-only assistant, the sensible boundary is narrower: expose only the information tools it needs. Any use involving transfers needs deliberate review of tool permissions, user confirmation, credential handling, and the consequences of an incorrect instruction. Financial actions should never be treated as just another conversational convenience.

What this project makes concrete

The interesting part of this integration is not that an assistant can ask for a balance. It is how quickly the design changes once the tool surface includes sensitive data and state-changing operations.

A useful tool description helps the model call an operation correctly. It does not establish authorization, protect data after it enters a conversation, or make the model’s financial analysis trustworthy. Those boundaries belong in the surrounding application and deployment decisions.

MBBank MCP is an unofficial project and is not endorsed by MB Bank. Use it only with authorized accounts and in accordance with the bank’s terms.

Explore the repository, or inspect the current tool definitions to see the actual capabilities available to a client.