MCP Integration

Connect AI agents and LLMs to real-time UK bank validation using Model Context Protocol

Claude Desktop ChatGPT Custom Agents Any MCP Client

What is Model Context Protocol (MCP)?

Model Context Protocol (MCP) is an open standard developed by Anthropic that enables AI assistants like Claude to securely connect to external data sources and tools. Instead of copying and pasting data or relying on outdated training data, AI agents can directly query real-time information from your systems.

Real-Time Data

AI agents access live bank validation data, not outdated training information.

Secure Authentication

API key-based bearer authentication keeps your data protected.

Universal Standard

Works with any MCP-compatible AI assistant or custom application.

Zero Infrastructure

No servers to manage - just add your API key and connect.

Modulus & CoP

Access both modulus checking and Confirmation of Payee services.

Sub-100ms Response

Lightning-fast validation doesn't slow down AI conversations.

MCP Server Endpoint

https://mcp.esortcode.com/

Authentication: Bearer token with your API key

Quick Start Guide

Get started with MCP integration in 3 simple steps:

1

Get Your API Key

Sign up for a free account at esortcode.com/signup and retrieve your API key from the portal.

2

Configure Your MCP Client

Add the eSortcode MCP server to your AI assistant's configuration with your API key as the bearer token.

3

Start Validating

Ask your AI assistant to validate UK bank accounts - it will automatically query the MCP server in real-time.

Integration Examples

See how to integrate eSortcode MCP with popular AI platforms:

Claude Desktop Configuration

Add eSortcode to your Claude Desktop app configuration:

claude_desktop_config.json
{
  "mcpServers": {
    "esortcode": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://mcp.esortcode.com/",
        "--header",
        "Authorization: Bearer YOUR_API_KEY_HERE"
      ]
    }
  }
}

Location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

After saving, restart Claude Desktop. You can now ask Claude to validate UK bank accounts!

ChatGPT Custom Actions

Create a custom action in ChatGPT to connect to eSortcode MCP:

OpenAPI Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "eSortcode Bank Validation",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://mcp.esortcode.com"
    }
  ],
  "paths": {
    "/validate": {
      "get": {
        "operationId": "validateBankAccount",
        "summary": "Validate UK bank account",
        "parameters": [
          {
            "name": "sortcode",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "account",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Validation result"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}

Steps:

  1. Go to ChatGPT settings → Custom Actions
  2. Create new action and paste the schema above
  3. Add your API key as Bearer token in authentication
  4. Save and test the action

Node.js MCP Configuration

Configure eSortcode MCP server in your Node.js AI agent configuration:

mcp-config.json
{
  "servers": {
    "eSortCode": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://mcp.esortcode.com/",
        "--header",
        "Authorization: Bearer YOUR_API_KEY_HERE"
      ]
    }
  }
}

Installation:

  1. Ensure you have Node.js installed
  2. Add the configuration above to your MCP settings
  3. Replace YOUR_API_KEY_HERE with your actual API key
  4. The mcp-remote package will be automatically installed via npx

Usage: Once configured, your AI agent can call the MCP server to validate UK bank accounts using the standard MCP protocol.

Python MCP Configuration

Configure eSortcode MCP server in your Python AI agent using subprocess:

mcp_config.py
import subprocess
import json

# MCP Server Configuration
MCP_CONFIG = {
    "command": "npx",
    "args": [
        "-y",
        "mcp-remote@latest",
        "https://mcp.esortcode.com/",
        "--header",
        "Authorization: Bearer YOUR_API_KEY_HERE"
    ]
}

# Start MCP server process
def start_mcp_server():
    """Start the eSortcode MCP server"""
    process = subprocess.Popen(
        [MCP_CONFIG["command"]] + MCP_CONFIG["args"],
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
        text=True
    )
    return process

# Example usage with MCP client library
if __name__ == "__main__":
    server = start_mcp_server()
    # Connect your MCP client to this server
    # Use the standard MCP protocol to communicate

Requirements:

  • Node.js and npm installed (for npx)
  • Python MCP client library (e.g., mcp package)
  • Replace YOUR_API_KEY_HERE with your actual API key

Note: The MCP server runs as a subprocess and communicates via standard MCP protocol.

Interactive Example

See how an AI agent would interact with a user to validate bank accounts:

AI Assistant: Hello! I can help you validate UK bank accounts. Please provide the sort code and account number you'd like to check.

You: Can you check if sort code 20-00-00 and account number 12345678 is valid?

AI Assistant: Let me validate that for you...

Calling MCP server: https://mcp.esortcode.com/

Validation Result:

  • Status: Valid ✓
  • Bank: Barclays Bank PLC
  • Branch: Leicester
  • Address: 1 Churchill Way, Leicester, LE1 9BN
  • BIC: BUKBGB22
  • Payments: Supports BACS, Faster Payments, and CHAPS

The account details you provided are valid. This is a Barclays Bank account at their Leicester branch. The account can receive all major UK payment types.

You: Great! Can you also check 99-99-99 and 11111111?

AI Assistant: Checking that combination now...

Validation Result:

  • Status: Invalid ✗
  • Message: Sort code does not exist in the UK banking system

Unfortunately, sort code 99-99-99 is not a valid UK sort code. Please check the number and try again. Valid UK sort codes are typically 6 digits (XX-XX-XX format) assigned to real bank branches.

This example shows how AI assistants can query the MCP server in real-time to provide accurate, up-to-date bank validation information.

Use Cases

Customer Support Bots

Enable support chatbots to validate customer bank details in real-time during conversations.

Financial AI Assistants

Build AI agents that help users manage payments and verify recipient bank accounts.

Claude Desktop Users

Enhance your Claude Desktop experience with real-time UK bank validation capabilities.

Workflow Automation

Integrate bank validation into AI-powered workflow automation tools and agents.

Fraud Prevention AI

Build AI systems that validate accounts before processing payments to prevent fraud.

Financial Analysis

Enrich financial data analysis with real-time bank verification capabilities.

Supported Platforms

eSortcode MCP works with any MCP-compatible AI platform or custom application:

Claude Desktop

Anthropic's desktop app with built-in MCP support

ChatGPT

OpenAI's ChatGPT via custom actions

Node.js Agents

Custom AI agents built with JavaScript/TypeScript

Python Agents

LangChain, AutoGPT, and custom Python bots

Custom Applications

Any MCP-compatible client or HTTP integration

Workflow Tools

n8n, Zapier, Make.com, and automation platforms

Ready to Get Started?

Sign up for a free account, get your API key, and start integrating AI-powered bank validation in minutes.

Create Free Account API Documentation

Free testing credits included • No credit card required • Start validating in under 5 minutes