Bancony uses the Model Context Protocol (MCP) to expose banking tools to the AI agent. This page documents the protocol implementation.
GET /mcp/sse
Server-Sent Events endpoint for MCP protocol. Establishes a persistent connection for receiving tool responses.
POST /mcp/messages
JSON-RPC message endpoint. Send tool calls and receive responses.
Bancony uses a secure authentication flow:
The Agent forwards authentication to MCP Server via HTTP headers on the SSE connection:
| Header | Description | Example |
|---|---|---|
Authorization |
Bearer token (forwarded from cookie) | Bearer eyJhbGc... |
X-Bancony-Integration |
Bank integration to use | menigademo, landsbankinn |
X-Bancony-Culture |
Locale for responses | en-GB, is-IS |
Note: Tokens are never exposed in URLs, localStorage, or JavaScript-accessible storage.
Get all available banking tools and their schemas.
{
"jsonrpc": "2.0",
"method": "tools/list",
"id": 1
}
Execute a specific banking tool with parameters.
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get-accounts",
"arguments": {
"only_withdrawal_accounts": true
}
},
"id": 2
}
Tool responses follow JSON-RPC 2.0 format:
{
"jsonrpc": "2.0",
"result": {
"content": [
{
"type": "text",
"text": "{\"accounts\": [...]}"
}
]
},
"id": 2
}
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "Tool execution failed",
"data": { "details": "..." }
},
"id": 2
}
| Integration | Description | Auth Method |
|---|---|---|
demo | Demo bank for testing | Token |
menigademo |
Meniga Cloud API demo | Email/Password |
menigais |
Meniga Iceland production | Email/Password |
landsbankinn |
Landsbankinn (Iceland) | Electronic ID |