Pekao MCP Server
Allows initiating SEPA/EEA transfers as part of Pekao banking operations.
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., "@Pekao MCP Servercheck my account balance"
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.
Pekao MCP Server
A Model Context Protocol (MCP) server for the Pekao Polish API (PolishAPI 2.1.1). This server exposes banking operations as MCP tools that can be used by AI assistants like Claude.
Features
Account Information Service (AIS): List accounts, view balances, transaction history
Payment Initiation Service (PIS): Create domestic, SEPA, and international transfers
Confirmation of Funds (CAF): Check if funds are available
OAuth2 Authorization: Secure authentication flow
Related MCP server: starling-bank-mcp
Prerequisites
Node.js 18+
Pekao API credentials (client ID, client secret)
QSEAL certificate and private key for request signing
Getting API Credentials
Pekao uses the PolishAPI standard with automatic TPP (Third Party Provider) registration. You need PSD2-compliant certificates to register and use the API.
1. Obtain PSD2 Certificates
You need two separate certificates (using the same certificate for both purposes is not allowed):
Certificate | Purpose |
QWAC (Qualified Website Authentication Certificate) | Establishing mutual TLS (mTLS) connection |
QSealC (Qualified Electronic Seal Certificate) | Signing API requests (JWS signatures) |
Where to obtain certificates:
For production, get certificates from a qualified Trust Service Provider (TSP):
Krajowa Izba Rozliczeniowa (KIR)
Asseco Data Systems
Certum (Asseco)
Other eIDAS-qualified providers listed on the EU Trusted List
The certificates must contain PSD2 roles in the QC_Statement:
PSP_AI- Account Information Service Provider (AISP) - for AISPSP_PI- Payment Initiation Service Provider (PISP) - for PISPSP_IC- Payment Instrument Issuing Service Provider (PIISP) - for CAFPSP_AS- Account Servicing Payment Service Provider (ASPSP)
For sandbox/testing, contact Pekao for test certificates or use certificates from a test TSP.
2. Register Your Application
Registration is done automatically via the /auth/v2_1_1.1/register API endpoint. This MCP server includes a registration tool, but you can also register manually.
Required for registration:
QWAC certificate for mTLS connection
QSealC certificate for signing the request
A
software_statementJWT containing your application details
Software Statement Structure:
{
"redirect_uris": ["https://your-app.com/callback"],
"iss": "PSDES-ABC-ABC123",
"client_name": "Your App Name",
"sub_contact_email": "contact@your-company.com",
"logo_uri": "https://your-app.com/logo.png",
"jwks_uri": "https://your-app.com/jwks.json",
"client_desc": "Application description",
"sub": "PL-PFSA-YOUR-LICENSE-NUMBER",
"sub_name": "Your Company Sp. z o.o.",
"scope": "ais ais-accounts pis"
}The software_statement must be signed as a JWT using your QSealC certificate.
3. Receive Your Credentials
After successful registration, you'll receive:
Credential | Description |
| Your application's unique identifier |
| Secret key for authentication |
Important: Store these credentials securely. They are only returned once during registration.
4. Prepare Certificate Files
Save your certificates in PEM format in the certs/ directory:
QSealC Certificate (certificate.pem):
-----BEGIN CERTIFICATE-----
MIIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
-----END CERTIFICATE-----Private Key (private-key.pem):
-----BEGIN PRIVATE KEY-----
MIIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
-----END PRIVATE KEY-----5. Configure the Key ID
The PEKAO_KEY_ID is the kid (Key ID) parameter from your QSealC certificate. You can find it:
In your certificate's metadata
By checking the certificate with OpenSSL:
openssl x509 -in certificate.pem -textFrom your TSP's certificate issuance documentation
Environment Variables Reference
Variable | Required | Description |
| Yes | OAuth2 client identifier from registration |
| Yes | OAuth2 client secret from registration |
| No |
|
| Yes | Path to your QSealC certificate (PEM format) |
| Yes | Path to your private key (PEM format) |
| Yes | Key ID ( |
| Yes | OAuth2 redirect URI (must match registration) |
API Endpoints
Environment | Base URL |
Sandbox |
|
Production |
|
Installation
git clone https://github.com/xnetcat/pekao-mcp.git
cd pekao-mcp
npm install
npm run buildConfiguration
Copy the example environment file:
cp .env.example .envEdit
.envwith your credentials:
PEKAO_CLIENT_ID=your-client-id
PEKAO_CLIENT_SECRET=your-client-secret
PEKAO_ENVIRONMENT=sandbox
PEKAO_CERT_PATH=./certs/certificate.pem
PEKAO_KEY_PATH=./certs/private-key.pem
PEKAO_KEY_ID=your-key-id
PEKAO_REDIRECT_URI=http://localhost:3000/callbackPlace your QSEAL certificate and private key in the
certs/directory.
Usage
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"pekao": {
"command": "node",
"args": ["/path/to/pekao-mcp/dist/index.js"],
"env": {
"PEKAO_CLIENT_ID": "your-client-id",
"PEKAO_CLIENT_SECRET": "your-client-secret",
"PEKAO_ENVIRONMENT": "sandbox",
"PEKAO_CERT_PATH": "/path/to/pekao-mcp/certs/certificate.pem",
"PEKAO_KEY_PATH": "/path/to/pekao-mcp/certs/private-key.pem",
"PEKAO_KEY_ID": "your-key-id",
"PEKAO_REDIRECT_URI": "http://localhost:3000/callback"
}
}
}
}Claude Code (CLI)
Add to your Claude Code MCP settings:
claude mcp add pekao node /path/to/pekao-mcp/dist/index.jsOr add to your project's .mcp.json:
{
"mcpServers": {
"pekao": {
"command": "node",
"args": ["/path/to/pekao-mcp/dist/index.js"],
"env": {
"PEKAO_CLIENT_ID": "your-client-id",
"PEKAO_CLIENT_SECRET": "your-client-secret",
"PEKAO_ENVIRONMENT": "sandbox",
"PEKAO_CERT_PATH": "/path/to/pekao-mcp/certs/certificate.pem",
"PEKAO_KEY_PATH": "/path/to/pekao-mcp/certs/private-key.pem",
"PEKAO_KEY_ID": "your-key-id",
"PEKAO_REDIRECT_URI": "http://localhost:3000/callback"
}
}
}
}Cursor
Add to Cursor's MCP configuration in Settings > MCP Servers:
{
"pekao": {
"command": "node",
"args": ["/path/to/pekao-mcp/dist/index.js"],
"env": {
"PEKAO_CLIENT_ID": "your-client-id",
"PEKAO_CLIENT_SECRET": "your-client-secret",
"PEKAO_ENVIRONMENT": "sandbox",
"PEKAO_CERT_PATH": "/path/to/pekao-mcp/certs/certificate.pem",
"PEKAO_KEY_PATH": "/path/to/pekao-mcp/certs/private-key.pem",
"PEKAO_KEY_ID": "your-key-id",
"PEKAO_REDIRECT_URI": "http://localhost:3000/callback"
}
}
}Using npx (after publishing to npm)
{
"mcpServers": {
"pekao": {
"command": "npx",
"args": ["pekao-mcp"],
"env": {
"PEKAO_CLIENT_ID": "your-client-id",
"PEKAO_CLIENT_SECRET": "your-client-secret"
}
}
}
}Available Tools
Authorization
Tool | Description |
| Start OAuth2 authorization flow |
| Exchange authorization code for access token |
| Refresh an expired access token |
| Manually set an access token |
Account Information
Tool | Description |
| List all accounts |
| Get details of a specific account |
| Get completed transactions |
| Get pending transactions |
| Get rejected transactions |
| Get cancelled transactions |
| Get scheduled transactions |
| Get account holds |
| Get details of a specific transaction |
| Remove account access consent |
Payment Initiation
Tool | Description |
| Create a domestic transfer |
| Create a SEPA/EEA transfer |
| Create an international (non-EEA) transfer |
| Create a tax payment |
| Create a recurring payment |
| Create multiple transfers as a bundle |
| Get payment status |
| Get recurring payment status |
| Get bundle status |
| Cancel a payment |
| Cancel a recurring payment |
Confirmation of Funds
Tool | Description |
| Check if funds are available on an account |
Example Usage
Once configured, you can ask Claude to:
"Show me my Pekao bank accounts"
"What's my account balance?"
"List my recent transactions"
"Transfer 100 PLN to account 12345678901234567890123456"
"Check if I have 500 PLN available"
Development
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run dev
# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.jsTechnical Details
JWS Signature Format
All API requests require a detached JWS signature in the X-JWS-SIGNATURE header. The signature format is:
[base64url-encoded-header]..[base64url-encoded-signature]The payload section is empty (detached) to avoid duplicating request data. This MCP server handles JWS signing automatically.
JWS Header Structure:
{
"alg": "RS256",
"typ": "JWT",
"kid": "your-key-id",
"x5c": ["base64-encoded-certificate"]
}Required HTTP Headers
All requests include:
X-IBM-Client-Id- Your client IDX-IBM-Client-Secret- Your client secretX-JWS-SIGNATURE- Detached JWS signatureX-REQUEST-ID- UUID v4 for request trackingAuthorization: Bearer <token>- For authenticated endpointsContent-Type: application/jsonAccept: application/jsonAccept-Encoding: gzipAccept-Language: plAccept-Charset: utf-8
Rate Limits
For AIS queries without user presence (automatic queries by TPP):
Maximum 4 requests per 24 hours per consent
Transaction history limited to 90 days by default
Exceeding limits returns
429 Too Many Requests
Strong Customer Authentication (SCA)
SCA is performed on Pekao's side using:
SMS codes
PeoPay mobile authorization
For multiple-use AIS consents, SCA is required every 90 days.
API Documentation
This server implements the Pekao Polish API (PolishAPI 2.1.1). For full API documentation, see:
Limitations
Based on Pekao's implementation of PolishAPI:
No bundle transfers for retail customers (only corporate via PekaoBiznes24)
No SORBNET2, Blue Cash, or TARGET payment systems for retail
No
getMultiplePayments- only for corporate customersNo
getTransactionsPendingfor retail customers (Pekao24)No decoupled SCA - only redirect-based authentication
No account list consent flow - accounts must be specified by TPP
CAF service - currently returns unavailable for all accounts
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xnetcat/pekao-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server