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.
examples/meniga/ Reference MCP server backed by a real bank API.
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.0.tar.gz (430.1 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.0-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bank2ai-0.6.0.tar.gz
  • Upload date:
  • Size: 430.1 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.0.tar.gz
Algorithm Hash digest
SHA256 f2b29640c31a70b778b6ec90607b00012cf1166d88c70ef5a165a8d4c340728a
MD5 35363431848a8ec152b1bdb966ed8e20
BLAKE2b-256 aedf764ec71ec6ad9c37a777b42f8550bad32adef02a0913d8a06e13a75199f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bank2ai-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 37.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f4e8b822b0bd7d0c3c74c31eec110b041e7b4b0c91495347ee34d690039f37e
MD5 88aee6bcee24a7a0eacda6ac07958be7
BLAKE2b-256 c91e7567b085cdbf0167ba21eed1e27d8a5bca654dce143c37d4085a88460f65

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