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 builds enterprise-ready MCP servers, an SDK, an in-channel chat agent (with Generative UI and RAG), and advisory agents on top of the standard. See the enterprise overview for details.

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.5.0.tar.gz (434.6 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.5.0-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bank2ai-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9e374382042df4d1fe9225a2abf0ed575c2c931f41c76d9666a2ade5ca03b449
MD5 0e500d4f670c4e4df3202ec28aa7aa98
BLAKE2b-256 eb3d0f3dace05783d659e33f01697e4a42ee9ce560fd0250bf434776fef3e050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bank2ai-0.5.0-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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51186bc3237f1376843cbf958adabd5980863e7e7dba0afc7b1ce83d18cfea04
MD5 1519faef2cd94f9e52894400b1d82aef
BLAKE2b-256 f60d4324e2887bd289a78d6dedc24ad2bae2c4000de379b14a81bc3298149287

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