Mono Banking MCP Server

Mono Banking MCP Server

Enables AI assistants to perform Nigerian banking operations including account management, payments, and identity verification through the Mono Open Banking API.

Category
Visit Server

README

Mono Banking MCP Server

Try on FastMCP Cloud

A comprehensive Model Context Protocol (MCP) server for Nigerian banking operations using the Mono Open Banking API. Features integrated webhook support for real-time banking events and seamless deployment on FastMCP Cloud.

Table of Contents

Key Features

  • Complete Banking Operations - Account management, payments, BVN verification
  • Real-time Webhooks - Integrated webhook endpoints for live banking events
  • AI Assistant Ready - Seamless integration with Claude, ChatGPT, and other AI assistants
  • Cloud Deployment - Ready for FastMCP Cloud with automatic scaling
  • Enterprise Security - HMAC signature verification and secure API handling
  • Event Monitoring - Built-in webhook event storage and debugging tools

Architecture

sequenceDiagram
    participant User as šŸ‘¤ User
    participant AI as šŸ¤– AI Assistant<br/>(Claude/ChatGPT)
    participant MCP as ⚔ MCP Server<br/>(FastMCP + Webhooks)
    participant Client as šŸ”— Mono Client<br/>(httpx)
    participant API as šŸ¦ Mono API<br/>(Nigerian Banks)
    participant Webhook as šŸ“” Webhook Events

    User->>AI: "Check my account balance"
    AI->>MCP: list_tools()
    MCP-->>AI: 12 banking tools + webhook monitoring

    AI->>MCP: get_account_balance(account_id)
    MCP->>Client: get_account_balance(account_id)
    Client->>API: GET /accounts/{id}/balance
    API-->>Client: {"balance": 50000, "currency": "NGN"}
    Client-->>MCP: Account balance data
    MCP-->>AI: {"success": true, "balance": "₦500.00"}
    AI-->>User: "Your account balance is ₦500.00"

    Note over Webhook,MCP: Real-time Events
    API->>MCP: POST /mono/webhook (account.updated)
    MCP->>MCP: Verify HMAC signature
    MCP->>MCP: Store event in database

Technologies Used

  • Python 3.12+ - Modern Python with async/await support
  • FastMCP 2.12+ - Simplified MCP server with custom route support
  • Starlette - ASGI framework for webhook endpoints
  • httpx - Modern async HTTP client for API communication
  • SQLAlchemy - Database ORM for webhook event storage
  • Mono Open Banking API v2 - Nigerian banking infrastructure
  • python-dotenv - Environment variable management
  • uv - Fast Python package manager (recommended)

Project Structure

mono-banking-mcp/
ā”œā”€ā”€ mono_banking_mcp/           # Main package
│   ā”œā”€ā”€ server.py                 # FastMCP server with 12 tools + webhook endpoints
│   ā”œā”€ā”€ mono_client.py            # Mono API client with async httpx
│   └── database.py               # SQLAlchemy database for webhook events storage
ā”œā”€ā”€ tests/                     # Comprehensive test suite with webhook integration tests
│   ā”œā”€ā”€ conftest.py               # Test configuration and fixtures
│   └── test_mono_banking.py      # Unit and integration tests
ā”œā”€ā”€ pyproject.toml            # Modern Python project configuration (uv-based)
ā”œā”€ā”€ uv.lock                   # Dependency lock file with FastMCP 2.12+
ā”œā”€ā”€ pytest.ini               # Test configuration and markers
ā”œā”€ā”€ Makefile                  # Development workflow automation with webhook commands
ā”œā”€ā”€ README.md                 # This comprehensive documentation
└── .env.example              # Environment variables template

Webhook Integration

Real-time Event Processing

The server includes integrated webhook support for real-time banking events:

graph LR
    A[Mono API] -->|POST /mono/webhook| B[FastMCP Server]
    B -->|HMAC Verify| C[Signature Check]
    C -->|āœ… Valid| D[Store Event]
    C -->|āŒ Invalid| E[Reject]
    D --> F[SQLite Database]
    F --> G[get_webhook_events Tool]
    G --> H[AI Assistant]

Key Integration Points

  • /mono/webhook - Webhook endpoint for real-time Mono events
  • /health - Health check endpoint for monitoring

Supported Webhook Events

  • account.connected - New account linked
  • account.updated - Account information changed
  • account.unlinked - Account disconnected
  • job.completed - Data sync completed
  • job.failed - Data sync failed

Security Features

  • HMAC-SHA256 Signature Verification - Ensures webhook authenticity
  • Environment-based Secrets - Secure credential management
  • Request Validation - Malformed request rejection
  • Event Storage - Audit trail for all webhook events

Quick Start

Ready to use immediately! Connect your AI assistant to:

Try on FastMCP Cloud

https://mono-banking-mcp.fastmcp.app/mcp

Available Endpoints

  • MCP Server: https://mono-banking-mcp.fastmcp.app/mcp
  • Webhook Endpoint: https://mono-banking-mcp.fastmcp.app/mono/webhook
  • Health Check: https://mono-banking-mcp.fastmcp.app/health

Usage

Claude Desktop Integration

Add to your Claude Desktop configuration (~/.config/claude-desktop/config.json):

{
  "mcpServers": {
    "mono-banking": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-fetch", "https://mono-banking-mcp.fastmcp.app/mcp"]
    }
  }
}

Usage Examples

Once connected to an AI assistant (Claude, Gemini, etc.), you can use natural language commands:

Account Management

  • "List all my linked bank accounts"
  • "Show me the balance for account abc123"
  • "Get detailed information for my GTBank account"
  • "Show me the last 20 transactions for account xyz789"

Payment Operations

  • "Verify the account name for 0123456789 at GTBank (code 058)"
  • "Initiate a payment of ₦5000 to account 1234567890 at Access Bank for John Doe"
  • "Check the status of payment reference PAY_ABC123"

Banking Information

  • "Show me all supported Nigerian banks and their codes"
  • "Look up BVN 12345678901 for identity verification"
  • "Help a new customer link their bank account"

Complete Workflow Example

  1. "Show me all Nigerian banks" - Get bank codes
  2. "Verify account 1234567890 at Access Bank" - Confirm recipient
  3. "Initiate payment of ₦10000 to verified account for rent payment" - Start payment
  4. "Check payment status for the reference you just gave me" - Verify completion

Available Banking Tools

The server provides these comprehensive banking tools (12 total):

Core Banking Operations

Tool Description Parameters
list_linked_accounts List all linked bank accounts None
get_account_balance Get current account balance account_id
get_account_info Get basic account information account_id
get_account_details Get comprehensive account details including BVN account_id
get_transaction_history Retrieve transaction records with pagination account_id, limit, page
verify_account_name Verify recipient account details before payments account_number, bank_code
initiate_payment Start a payment via Mono DirectPay amount, recipient_account_number, recipient_bank_code, customer info
verify_payment Check payment status using reference reference
get_nigerian_banks List all supported Nigerian banks with codes None
lookup_bvn Perform BVN identity verification bvn, scope
initiate_account_linking Start account linking process for new customers customer_name, customer_email

Contributing

Contributions to the Mono Banking MCP Server are welcome! For questions or help getting started, please open an issue.

Development Workflow

Quick Start for Contributors:

# Fork and clone the repository
git clone https://github.com/YOUR_USERNAME/mono-banking-mcp.git
cd mono-banking-mcp

# Set up development environment
uv sync
uv pip install -e .

# Verify installation with webhook support
python -c "from mono_banking_mcp.server import mcp; print('āœ… Package installed successfully')"

# Run comprehensive tests
make test-all

# Create feature branch and start developing
git checkout -b feature/your-feature-name

# Test your changes
make test-webhook  # Test webhook functionality
make tools         # Verify all 12 tools are working

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured