Skip to main content

Helpers for banks building MCP servers, shared bank2ai tool surface, models, and auth middleware

Project description

bank2ai

The open standard for AI driven banking.

The language of banking is universal (accounts, transactions, transfers, bill payments, recipients, loans, savings) and bank2ai codifies that language as a Model Context Protocol tool surface. Once a bank speaks bank2ai, any compliant AI client can read accounts, look up recipients, run spending summaries, and prepare/execute transfers, using the same vocabulary across every bank.

📖 Full documentation: bank2ai.com 📦 Specification: specs/ 🛒 Marketplace: github.com/bank2ai/marketplace

Stewarded by Bancony

bank2ai is freely usable by any bank or fintech. Its development is stewarded by Bancony, which also builds commercial implementations on top of the standard alongside other vendors and in-house teams. See Commercial implementations for the current list.

Install

uv add bank2ai

Quickstart

from fastmcp import FastMCP
from bank2ai import register_tools

app = FastMCP("my-bank")

# Every handler is optional, pass only the tools you've implemented.
register_tools(
    app,
    get_accounts=...,
    get_categories=...,
    # get_transactions=..., get_transaction=..., get_transactions_summary=...,
    # get_recipients=..., create_recipient=...,
    # prepare_transfer=..., execute_transfer=...,
)

Walk through a full example in the Quickstart guide.

What's in this repo

Path Contents
src/bank2ai/ The Python library (bank2ai on PyPI), Pydantic models + the register_tools MCP wiring.
specs/ Language-neutral specification, bank2ai.spec.md (narrative) and bank2ai.json (JSON Schemas).
examples/demo/ Reference MCP server backed by hardcoded data.
docs/ Source for bank2ai.com.

Contributing

Issues and PRs welcome at github.com/bank2ai/bank2ai. For anything that touches the spec, please open an issue first, see Contributing.

License

Apache 2.0, see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bank2ai-0.6.1.tar.gz (422.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bank2ai-0.6.1-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file bank2ai-0.6.1.tar.gz.

File metadata

  • Download URL: bank2ai-0.6.1.tar.gz
  • Upload date:
  • Size: 422.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for bank2ai-0.6.1.tar.gz
Algorithm Hash digest
SHA256 c6e50a0bdf1a5839d84841e73c32269452d176e60a15a0cc377f5ed4c9e1161d
MD5 7af62ccebdaf2be172f1c47b4237ac54
BLAKE2b-256 07239232a7b80e93a369243c1bab4ea3b5b63a26d16921edc0bf31b689405396

See more details on using hashes here.

File details

Details for the file bank2ai-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: bank2ai-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for bank2ai-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd9d63c63217d6f16970ac8ef421ff6cb52b2459cb52e0b73d18c5ac99ca056e
MD5 89f3a14f418b225470785cd76487ce84
BLAKE2b-256 f2adea9e464bd6a73d39fdc8b6e9a5d6d212972c1e0510e0561eb27258b70839

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page