Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Banking Servercheck my account balance for account number 1234567890"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š¦ MCP Banking Server
A production-ready banking server built with FastMCP (Model Context Protocol) featuring modern API design patterns, real-time updates, and enterprise-grade features.
⨠Features
Feature | Description |
API Key Authentication | Secure endpoints with |
Idempotency Support | Prevent duplicate transactions with |
WebSocket Updates | Real-time transaction notifications |
CSV Export | Stream transaction history as CSV |
OpenAPI Docs | Auto-generated Swagger UI at |
Docker Ready | One-command containerized deployment |
MCP Integration | LLM-compatible tools for AI assistants |
Quick Start
Prerequisites
Python 3.10+
pip or uv package manager
Installation
Run the Server
The server will start and display:
š Your default API key (save this!)
š API documentation URL
Access the API
Swagger UI: http://localhost:8000/docs
ReDoc: http://localhost:8000/redoc
Health Check: http://localhost:8000/health
š Authentication
All endpoints (except health check and root) require an API key.
Include the X-API-Key header in your requests:
The default API key is displayed when the server starts.
Disabling Authentication (for Demo/Testing)
To run the server without authentication (useful for demos or when being scanned by other services):
When disabled, all endpoints become publicly accessible without needing the X-API-Key header.
š API Reference
Accounts
Create Account
Get Account Details
Transactions
Deposit (with idempotency)
Withdraw
Get Transaction History
Export Transactions as CSV
š” WebSocket Live Updates
Connect to receive real-time transaction notifications:
WebSocket Message Types
MCP Tools
For LLM integration, the following MCP tools are available:
Tool | Description |
| Create a new bank account |
| Add funds to an account |
| Remove funds from an account |
| Check account balance |
| View recent transactions |
Using with FastMCP CLI
Docker Deployment
Build and Run
Docker Compose (optional)
š Project Structure
Idempotency
The deposit and withdraw endpoints support idempotency to prevent duplicate transactions:
Include an
Idempotency-Keyheader with a unique identifierIf the same key is used again within 24 hours, the original response is returned
The
idempotent_replay: trueflag indicates a cached response