Listed from the MCP registry; nobody on Odel publishes it.
payware A2A payments API for merchants, ISVs, payment institutions and buying agents
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted โ your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @payware/mcp-server
MCP client config
{
"mcpServers": {
"payware": {
"command": "npx",
"args": [
"-y",
"@payware/mcp-server"
]
}
}
}Official MCP (Model Context Protocol) server for payware payment API integration. This server enables AI assistants to interact with payware APIs, automating integration workflows for all partner types.
Releases are published to npm as @payware/mcp-server and to the official MCP Registry as io.github.payware/mcp-server. MIT licensed, see LICENSE.
payware_poi_set_price takes an optional tip, inside amount (amount = bill + tip), for a waiter's tip on a table's QR code or NFC tag. payware records it on the payment created at the scan as the merchant's tip (tipEnteredBy MERCHANT), and the payer's bank offers no second one; without it the payer may still tip in the bank app where the shop allows tips. A tip that is not above 0, is finer than the currency allows or is more than the amount before it is ERR_INVALID_TIP. The POI reads show it as pendingTiptimeToLive on payware_operations_create_transaction is checked from 60 to 2592000 seconds; payware accepts up to the merchant's own ceiling, 600 by default, which the merchant raises in the portal profile (ERR_INVALID_TTL above it). An ISV gets the merchant's ceiling. The e-commerce plugins keep 60-600ERR_AMOUNT_NOT_TOTAL for more, ERR_INVALID_AMOUNT for less), plus a tip where one is allowed: there is no paying more without a tip. A payer's bank may add a tip where the shop allows tips (tipsAllowed, shown by payware_shops_list): the institution process tool takes tip (trData.tip, amount = the amount asked + tip, ERR_INVALID_TIP, ERR_TIPS_NOT_ALLOWED) on any id, and the reads mention tipsAllowed and tip. A merchant, or an ISV for it, may put its own tip on a payment it creates (tip on payware_operations_create_transaction, inside amount, for a till that asks the payer first). payware records the tip on the payment as tip, never as a line, which the simulate (tip parameter), history and payer tools describe; the create tools refuse a TIP line before sending (ERR_INVALID_ITEMS)ERR_SPECIFYING_AMOUNT_NOT_ALLOWEDpayware_fi_quote and pays the new total; ERR_SESSION_DELIVERY_FEE_DIFFERS is gone. The payer tools tell agents never to call the page's address and confirmation endpointsdeliveryAddressVersion (the read's delivery.addressVersion) on payware_operations_process_transaction; a missing or older one is 409 ERR_SESSION_ADDRESS_CHANGEDpayware_payer_read_link and payware_payer_create_session print the delivery amount per country from the session's delivery.countries, so an agent can say what delivery costs before anyone gives an address. A product priced 0.00 lists its countries without amounts on the institution read and quotetipEnteredBy (MERCHANT or PAYER) beside tip on reads, history and callbacks; the simulate tools take it (default PAYER)payware_shops_get_delivery and payware_shops_set_delivery) and per product which countries are excluded or cost extra (payware_products_get_delivery and payware_products_set_delivery). A PUT replaces the whole table; an empty list means deliver anywhere with no feepayware_operations_create_transaction takes optional items (items, delivery, discounts, taxes) that the payer's bank shows and that sum exactly to the amount. Both simulate_callback tools model the new callback fields: productId, placementId, sessionId, items and totaldeliveryCountry and quantity, payware_fi_quote re-prices an offer with no side effects, the process tool takes quantity (sent as trData.quantity), and pa ids (agent purchase sessions) are documented. A delivery address country is an ISO 3166-1 alpha-2 code, e.g. BGpayer with no keys and a toolset payer: payware_payer_read_link, payware_payer_check_price, payware_payer_create_session and payware_payer_watch, for an AI assistant that buys on behalf of a person. The person approves in their own banking app. See Agentic commerce against a local serverread_link describes the lookup's real fields (deliveryDetails, deliveryTo, lastPayment, no product block or delivery prices); watch stops on NOT_PAID and CANCELLED too, and honours a 429's Retry-After; a merchant line can no longer carry country, and an empty items list names ERR_ITEMS_EMPTY; simulate_callback works amount out from the lines (net of the fee on CONFIRMED) and refuses one the server would never send; the shop delivery PUT shows undeliverableProducts as a warning; the texts follow the 2026-11-15 contract (deliveryDetails on the institution offer read, a session priced for its address country, a surcharge requires quantity, the two currency-change refusals, 15 integer digits)CONFIRMED; during a DEFERRED transfer the institution keeps the Fee Amount reserved on the payer's account and releases it if the Merchant Leg fails. feeLegOutcome is optional and only NOT_EXECUTED is accepted: the finalize tool refuses RETURNED before sendingERR_PAYEE_UNAVAILABLE (409): payware refuses EXECUTING for a merchant that is switched off, nothing is locked and no money may moveupdate_product and update_schedule send only the fields you give, and payware keeps every stored value the request leaves out. 2.2.0 read the product first and sent it whole, which payware refuses once the product's start date has passedpayware_products_get_product_image works for an ISV acting for a merchant, on the merchant's plan and for products in the shops the merchant assigned to the ISVEXECUTING immediately before money moves, then CONFIRMED once the Merchant Leg has completed, or FAILED; transferType and feeLegOutcome are newdeferredAllowedpayware_generate_code_example writes complete, signed programs for real routes only, including the institution finalize flowFor merchants, and for ISVs acting for them. Changes need the merchant's PRM plan; reading works on every plan.
pl ID, so every payment it starts is attributed to it. Includes the QR code, barcode and short link of each placementFor merchants, and for ISVs acting for them (Standard or Premium plan).
payware_shops_get_delivery, payware_shops_set_delivery)payware_products_get_delivery, payware_products_set_delivery)For an AI assistant acting as the buyer. They talk to the public link host only.
go.payware.eu or paywa.re link is for, who gets paid, the price (payware_payer_read_link)payware_payer_check_price)payware_payer_create_session)payware_payer_watch)From npm (recommended):
npm install -g @payware/mcp-server
From source:
git clone https://github.com/payware/mcp-server.git
cd mcp-server
npm install
Copy the example environment file and configure your credentials:
cp .env.example .env
Edit .env file:
# Partner ID from payware dashboard
PAYWARE_PARTNER_ID=your_partner_id_here
# Path to private key file (relative to project root)
PAYWARE_SANDBOX_PRIVATE_KEY_PATH=keys/sandbox-your-private-key.pem
PAYWARE_PRODUCTION_PRIVATE_KEY_PATH=keys/production-your-private-key.pem
# Optional: Sandbox base URL (defaults to https://sandbox.payware.eu/api)
PAYWARE_SANDBOX_URL=https://sandbox.payware.eu/api
โ ๏ธ Security Note: Never commit the .env file to version control. It contains sensitive credentials.
Every tool definition goes into the assistant's context on every turn, and a merchant has over 70 of them. To offer only the groups you use, set PAYWARE_MCP_TOOLSETS to a comma-separated list:
PAYWARE_MCP_TOOLSETS=products,placements
Toolsets: auth, transactions, products, placements, data, logs, poi, shops, onboarding, utils, payer. Unset, or all, loads every tool. An unknown name is ignored with a warning in the server log. A tool outside the chosen toolsets is neither listed nor callable; this narrows what the assistant is offered and does not change what your partner account may do. An ISV that obtains OAuth2 tokens through this server includes auth.
npm start
Generate RSA Keys
Tool: payware_authentication_generate_rsa_keys
Create JWT Token
Tool: payware_authentication_create_jwt_token
Parameters:
- partnerId: (from PAYWARE_PARTNER_ID)
- privateKey: (from environment-specific key path)
Setup Sandbox
Tool: payware_authentication_setup_sandbox_auth
Parameters:
- partnerId: (from PAYWARE_PARTNER_ID)
Create Transaction
Tool: payware_operations_create_transaction
Parameters:
- partnerId: (from PAYWARE_PARTNER_ID)
- privateKey: (from environment-specific key path)
- amount: 10.00
- currency: EUR
- reasonL1: "Payment description"
- type: PLAIN
Check Status
Tool: payware_operations_get_transaction_status
Parameters:
- partnerId: (from PAYWARE_PARTNER_ID)
- privateKey: (from environment-specific key path)
- transactionId: TRANSACTION_ID
The payware MCP server transforms flat parameter inputs into the proper nested JSON structure required by the payware API:
{
// ROOT LEVEL - Transaction metadata
"shop": "SHOP001", // Optional: Shop code
"account": "GB29NWBK60161331926810", // Optional: Account identifier
"friendlyName": "Your Shop Name", // Optional: Account holder name
"callbackUrl": "https://callback.url", // Optional: HTTPS callback URL
"passbackParams": "{\"orderId\":\"12345\"}", // Optional: Callback parameters
// TRANSACTION DATA - Required transaction information
"trData": {
"amount": "25.50", // String/Number: Amount (can be "0.00" for flexible amounts)
"currency": "EUR", // REQUIRED: ISO 3-character currency code
"reasonL1": "Payment for services", // REQUIRED: Transaction description (max 100 chars)
"reasonL2": "Order #12345" // Optional: Additional description (max 100 chars)
},
// TRANSACTION OPTIONS - Transaction behavior settings
"trOptions": {
"type": "QR", // PLAIN, QR, or BARCODE (default: PLAIN)
"timeToLive": 300 // Seconds: 60 up to your ceiling, 600 unless raised in the portal, at most 2592000 (default: 120)
},
// QR OPTIONS - Only included when type=QR
"qrOptions": {
"qrFormat": "PNG", // PNG, JPG, SVG (default: SVG)
"qrBorder": 4, // Border modules: 1-10 (default: 4)
"qrErrorCorrection": "QUARTILE", // LOW, MEDIUM, QUARTILE, HIGH (default: QUARTILE)
"qrScale": 16, // Pixel size: 1-100 (default: 16, irrelevant for SVG)
"qrVersion": 10 // QR version: 1-40 (default: 3)
},
// BARCODE OPTIONS - Only included when type=BARCODE
"barOptions": {
"barFormat": "SVG", // PNG, SVG, JPG (default: SVG)
"barModuleWidth": 2, // Module width: 1-10 (default: 2)
"barBarHeight": 100, // Height: 15-1000 (default: 100)
"barFontSize": 12, // Font size: 0-24 (default: 12)
"barHumanReadableLocation": "NONE" // NONE, BOTTOM, TOP (default: NONE)
}
}
When using MCP tools, parameters are automatically mapped to the correct API structure:
| MCP Tool Parameter | API Location | Description |
|---|---|---|
partnerId, privateKey | Authentication | Used for JWT signing, not sent in request |
account, friendlyName, shop, callbackUrl, passbackParams | Root Level | Transaction metadata |
amount, currency, reasonL1, reasonL2 | trData object | Core transaction data |
type, timeToLive, deferredAllowed | trOptions object | Transaction behavior (deferredAllowed: the merchant's opt-in to a deferred Merchant Leg, sent only when true) |
qrFormat, qrBorder, etc. | qrOptions object | QR code settings (when type=QR) |
barFormat, barModuleWidth, etc. | barOptions object | Barcode settings (when type=BARCODE) |
payware_generate_code_exampleA complete program for one payware API call, in Python, Node.js, PHP, Java, C# or curl
Each program signs its request with an RS256 JWT (contentSha256 for a body; on behalf of a merchant for an ISV, except the OAuth2 endpoints) and calls a route the server has. The operations, by partner type:
EXECUTING immediately before money moves, then CONFIRMED once the Merchant Leg has completed or FAILED, on PATCH /api/transactions/{transactionId}payware_generate_documentationAn integration overview for one partner type
Base URLs, how requests are signed, and every operation above that the partner type has, with its route.
payware_authentication_generate_rsa_keysGenerate RSA key pair for API authentication.
Parameters:
keySize (optional): RSA key size in bits (default: 2048)payware_authentication_create_jwt_tokenCreate JWT token for API authentication.
Parameters:
partnerId (required): Partner ID from paywareprivateKey (required): RSA private key in PEM formatpayware_authentication_validate_jwtValidate JWT token format and signature.
Parameters:
token (required): JWT token to validatepartnerId (required): Partner ID for validationpayware_authentication_test_jwtTest JWT token with payware API.
Parameters:
token (required): JWT token to testpartnerId (required): Partner IDpayware_authentication_setup_sandbox_authSetup sandbox authentication configuration.
Parameters:
partnerId (required): Partner ID from paywareprivateKey (optional): Private key for validationpayware transactions can have the following statuses:
ACTIVE Status:
timeToLive until the money has moved (seconds for an instant transfer, days with deferredAllowed), so never infer EXPIRED from the clockpayware_operations_get_transaction_status (a payment institution also sees EXECUTING on a transaction it has locked)/transactions/{id} endpointFinal Statuses:
These final statuses are only available through payware_operations_get_transaction_history using GET /transactions-history/{id} endpoint.
payware_operations_create_transactionCreate a new transaction with full API structure support.
Key Parameters:
currency (required): ISO 4217 code payware knows (an unknown code is refused)reasonL1 (required): Transaction description (max 100 chars)partnerId (required): Partner ID from payware dashboardprivateKey (required): RSA private key for JWT signingamount (optional): Currency value (default: "0.00" for flexible amounts)type (optional): PLAIN, QR, or BARCODE (default: PLAIN)timeToLive (optional): Payment timeout in seconds (default: 120), 60 up to the merchant's own ceiling: 600 unless the merchant raised it in the portal profile, at most 2592000 (30 days). The tool checks 60-2592000; payware refuses more than the ceiling with ERR_INVALID_TTLdeferredAllowed (optional): true lets the payer's institution pay by a credit transfer that settles later; refused with producer or terminal fields (ERR_DEFERRED_TRANSFER_NOT_ALLOWED). A deferred payment stays ACTIVE until it settles, which can take daysQR Options (when type=QR):
qrFormat: PNG, JPG, SVG (default: SVG)qrErrorCorrection: LOW, MEDIUM, QUARTILE, HIGH (default: QUARTILE)qrScale (1-100, default 16), qrBorder (1-10, default 4), qrVersion (1-40, default 3): size and appearanceBarcode Options (when type=BARCODE):
barFormat: PNG, SVG, JPG (default: SVG)barModuleWidth (1-10, default 2), barBarHeight (15-1000, default 100), barFontSize (0-24, default 12), barHumanReadableLocation (NONE, BOTTOM, TOP, default NONE)payware_operations_get_transaction_statusGet status of ACTIVE transactions only. For completed/finalized transactions use history tool.
Parameters:
transactionId (required): Transaction ID (starts with 'pw')partnerId (required): Partner IDprivateKey (required): Private key for JWT signingpayware_operations_simulate_callbackSimulate callback scenarios for testing.
Parameters:
transactionId (required): Transaction IDstatus (optional): CONFIRMED, DECLINED, FAILED, EXPIRED, or CANCELLED (default: CONFIRMED)callbackUrl (optional): URL where callback would be sentamount (optional): Transaction amount (default: 10.00)currency (optional): Currency (default: EUR)type (optional): Transaction type (default: PLAIN)payware_generate_code_exampleGenerate a complete program for one payware API call. The operations are listed under Code Generation & Documentation above.
Parameters:
operation (required): the operation, for example create_transaction or finalize_transactionlanguage (optional): python, nodejs, php, java, csharp, curl (default: python)partner_type (optional): merchant, isv, payment_institution (default: merchant)include_comments (optional): the program with comments, inside a page naming the route (default: true); false gives the program aloneinclude_error_handling (optional): report a failed status or a network error (default: true)The programs read PAYWARE_PARTNER_ID and PAYWARE_PRIVATE_KEY_PATH (a PKCS#8 PEM), PAYWARE_BASE_URL when set, and for an ISV's call on behalf of a merchant PAYWARE_MERCHANT_PARTNER_ID and PAYWARE_OAUTH2_TOKEN.
payware_generate_documentationAn integration overview for one partner type.
Parameters:
language (optional): the language the next steps refer to (default: python)partner_type (optional): merchant, isv, payment_institution (default: merchant)payware_utils_format_requestFormat and validate API requests with deterministic JSON serialization for SHA-256 consistency.
Parameters:
type (required): transaction, headers, or curldata (optional): Data to formatjwtToken (optional): JWT token for headerssignature (optional): Request signatureendpoint (optional): API endpoint for curlmethod (optional): HTTP method (default: POST)payware_utils_format_json_deterministicFormat JSON with deterministic property ordering for consistent SHA-256 calculation.
Parameters:
data (required): Object to serializeminimize (optional): Remove whitespace (default: true)payware_utils_server_infoGet MCP server information and configuration.
Note: All transaction data is serialized using consistent property ordering to prevent content hash mismatch errors.
An AI assistant can buy on a person's behalf through payware: the assistant reads a payment link, opens a purchase session priced for the delivery country, and gives the person a link to approve in their own banking app. To try the whole flow on one machine, run two copies of this server against a payware server on http://localhost:8080: one as the payer (the assistant that buys, no keys) and one as the payment institution (the bank, which reads the session, processes it and finalizes it). The merchant side is set up beforehand with the delivery and product tools, or in the portal.
| Server entry | Variable | Value |
|---|---|---|
| payer | PAYWARE_PARTNER_TYPE | payer |
| payer | PAYWARE_LINKS_BASE_URL | http://localhost:8080 (the server serves /links/** itself) |
| payment institution | PAYWARE_PARTNER_TYPE | payment_institution |
| payment institution | PAYWARE_PARTNER_ID | the institution's partner ID on that server |
| payment institution | PAYWARE_SANDBOX_PRIVATE_KEY_PATH | the institution's private key file |
| payment institution | PAYWARE_SANDBOX_URL | http://localhost:8080/api |
A payer needs no partner ID and no key, and its tools never sign anything. Each tool takes useSandbox (default true), so with these variables set every call goes to the local server; PAYWARE_LINKS_BASE_URL overrides the link host for both environments, and without it the payer uses https://go-sandbox.payware.eu (sandbox) or https://go.payware.eu (production, useSandbox: false).
Claude Code (.mcp.json or claude mcp add-json) and Claude Desktop (claude_desktop_config.json) take the same two entries. Use the absolute path of src/index.js in your checkout (on Windows, a path such as C:\\tools\\mcp\\src\\index.js, with each backslash written twice inside the JSON):
{
"mcpServers": {
"payware-payer": {
"command": "node",
"args": ["/path/to/mcp/src/index.js"],
"env": {
"PAYWARE_PARTNER_TYPE": "payer",
"PAYWARE_LINKS_BASE_URL": "http://localhost:8080"
}
},
"payware-bank": {
"command": "node",
"args": ["/path/to/mcp/src/index.js"],
"env": {
"PAYWARE_PARTNER_TYPE": "payment_institution",
"PAYWARE_PARTNER_ID": "YOUR_LOCAL_FI_PARTNER_ID",
"PAYWARE_SANDBOX_PRIVATE_KEY_PATH": "/path/to/keys/local-fi-private-key.pem",
"PAYWARE_SANDBOX_URL": "http://localhost:8080/api"
}
}
}
}
A walk-through, with the assistant playing both sides:
payware_payer_read_link with the product link (pr...), optionally payware_payer_check_price for the person's delivery country, then payware_payer_create_session with the lines and the delivery address. It returns the session: a pa id, the link, the items, the total and when it expires.payware_operations_get_transaction_status with the pa id (add deliveryCountry and quantity for a pr id; payware_fi_quote re-prices without side effects), then payware_operations_process_transaction with amount equal to the total, then payware_operations_finalize_transaction with EXECUTING and CONFIRMED.payware_payer_watch with the pa id returns PAID.Payment links are real only on go.payware.eu and paywa.re (go-sandbox.payware.eu and sandbox.paywa.re for the sandbox, localhost for local development), and the payer tools refuse any other host. A person always approves in their own banking app and never gives their bank credentials to an assistant. Payments are final.
@modelcontextprotocol/sdk: MCP server frameworkaxios: HTTP client for API callsjsonwebtoken: JWT token creationdotenv: reads .envexpress, cors: the HTTP proxy mode onlyRSA keys are generated with Node's own crypto, and multipart uploads use Node's own FormData.
useSandbox (default true); false calls production and signs with the production key (PAYWARE_PRODUCTION_PRIVATE_KEY_PATH). Reports run on production only.https://sandbox.payware.eu/api and https://api.payware.eu/api; the OAuth2 endpoints sit at the host root (/oauth2/...); soundbite recognition has its own hosts, https://soundbite-sandbox.payware.eu/api and https://soundbite.payware.eu/apihttps://go-sandbox.payware.eu and https://go.payware.eu, or PAYWARE_LINKS_BASE_URL for both (for a local server, http://localhost:8080); the payer tools serve GET /links/{id} and POST /links/{id}/sessions there, with no authenticationโ ๏ธ Important Security Notes:
.env files to version controluseSandbox: falseโ ๏ธ CRITICAL: payware API requires deterministic JSON serialization for SHA-256 calculation
Example of correct JSON format:
{"trData":{"amount":"25.50","currency":"EUR","reasonL1":"Payment description"},"trOptions":{"timeToLive":300,"type":"PLAIN"}}
Why this matters:
ERR_INVALID_CONTENT_HASH errorscontentSha256 matches request body SHA-256Authentication Failed (ERR_INVALID_SIGNATURE)
openssl rsa -in privateKey.pem -pubout to extract public key from private keyContent Hash Mismatch Error (ERR_INVALID_CONTENT_HASH)
createMinimizedJSON() from /src/core/utils/json-serializer.jsTransaction Creation Failed
MCP Connection Issues
npm startnpm run inspector) for debuggingHTTP Proxy Server (npm run proxy):
README-proxy.mdMCP Bridge (npm run bridge):
npm run inspectornpm test runs every tool of every role against a local fake payware server (no credentials, no network): verb and path against the server's routes, the JWT and its contentSha256, sandbox against production keys, the server's validation rules for the fields the tools send, and the MCP result shape, including isError on a refusal. The fake server is a model of payware, not payware: the suite does not call the real sandbox, so a server change it does not model can still break a tool.
For issues related to:
MIT License