mcpField
M
mcp-adyen

mcp-adyen

Local
github.com/codesparFinance275Updated 4w ago

About mcp-adyen

@codespar/mcp-adyen is an MCP server for the Adyen Checkout API v71, aimed at enterprise merchants who need one contract across Brazil, the EU, the US and APAC. It exposes payment, refund, payment link and dispute tools, with test and live environment switching.

Key features

  1. 01Covers the Checkout API v71 payment lifecycle
  2. 02Supports capture, cancel, refund and amount updates
  3. 03Manages payment links and stored payment methods
  4. 04Includes dispute defense and acceptance tools
  5. 05Switches between test and live environments

Use cases

  1. 01Letting an agent create and manage enterprise payments
  2. 02Handling delayed capture and tip or hotel amount updates
  3. 03Submitting dispute defense documents through MCP

MCP support

This project is an MCP server that exposes Adyen Checkout and dispute API operations as tools to MCP clients over stdio or HTTP.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-adyen": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-adyen"
],
"env": {
"ADYEN_API_KEY": "<ADYEN_API_KEY>",
"ADYEN_MERCHANT_ACCOUNT": "<ADYEN_MERCHANT_ACCOUNT>",
"ADYEN_ENV": "<ADYEN_ENV>",
"ADYEN_LIVE_URL_PREFIX": "<ADYEN_LIVE_URL_PREFIX>"
}
}
}
}
Run commandnpx -y @codespar/mcp-adyen
Environment variables to set
ADYEN_API_KEYSecretAdyen API key (generated in Customer Area → Developers → API credentials)
ADYEN_MERCHANT_ACCOUNTAdyen merchant account code (appears in most request bodies)
ADYEN_ENVtest | live. Defaults to test.
ADYEN_LIVE_URL_PREFIXRequired when ADYEN_ENV=live. Your merchant-specific prefix, e.g. 1797a841fbb37ca7-AdyenDemo

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-adyen0.2.2

Tools

25

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
amountobjectYes{ value: integer (minor units), currency: ISO-4217 }
originstringNoRequired for native 3DS2 on Web
channelenumNoiOS | Android | Web
referencestringYesMerchant-side reference (appears in reports)
returnUrlstringYesRedirect target after 3DS / bank flow
shopperIPstringNo
browserInfoobjectNoBrowser fingerprint object for 3DS2
countryCodestringNoISO-3166 alpha-2 (BR, MX, etc)
shopperEmailstringNo
paymentMethodobjectYesMethod-specific payload (type=scheme for cards, type=ideal for iDEAL, etc). Prefer tokenized fields from onSubmit.
shopperLocalestringNoe.g. pt-BR
additionalDataobjectNo
merchantAccountstringNoOverride the env merchant account (rare)
shopperReferencestringNoStable shopper id — used for stored-method recall
storePaymentMethodbooleanNoStore the method for future one-click reuse
recurringProcessingModelenumNoCardOnFile | Subscription | UnscheduledCardOnFile

Details

From the project README

@codespar/mcp-adyen

MCP server for Adyen Checkout API v71 — the global enterprise payments rail used by iFood, Uber, Spotify, and AirBnB in LatAm.

Distinct from every other server in our catalog: it's the one gateway enterprise merchants choose when a single contract has to cover BR + EU + US + APAC.

Tools (25)

ToolPurpose
create_paymentCreate a payment.
payment_detailsSubmit additional details for a payment (3DS challenge response, redirect returnUrl payload, etc).
capture_paymentCapture an authorized payment (for delayed-capture flows).
cancel_paymentCancel an authorized-but-uncaptured payment.
refund_paymentRefund a captured payment (full or partial).
reverse_paymentVoid-or-refund a payment atomically.
update_amountUpdate the authorized amount of an unsettled payment (common in tips / hotel incidentals).
get_payment_methodsDynamically list available payment methods for a country/currency/amount combination.
create_payment_linkCreate a hosted payment link (URL you send to the customer).
get_payment_linkRetrieve a payment link by id.
update_payment_linkUpdate a payment link — typically to expire it early.
create_donationCreate a round-up donation linked to an original payment (Adyen Giving).
list_stored_payment_methodsList a shopper's stored payment methods (one-click reuse).
disable_stored_payment_methodDelete a stored payment method (shopper opt-out).
create_sessionCreate a Checkout session (used by Drop-in and Web Components to load methods + handle the full flow client...
get_sessionRetrieve the status/result of a Checkout session (poll after the shopper finishes Drop-in).
retrieve_applicable_defense_reasonsList the defense reason codes Adyen will accept for a given dispute (Dispute Service v30).
accept_disputeAccept a dispute — forfeit the funds and close the case (Dispute Service v30).
defend_disputeDefend a dispute using one of the applicable defense reason codes (Dispute Service v30).
supply_defense_documentUpload a supporting document for an ongoing dispute defense (Dispute Service v30).
list_balance_accountsList the balance accounts owned by an account holder (Balance Platform BCL v2).
get_balance_accountFetch a single balance account by id (Balance Platform BCL v2).
create_transferInitiate a transfer (bank payout, internal move, third-party card push) from a balance account (Transfers B...
get_transferRetrieve a transfer by id (Transfers BTL v4).
list_merchantsList merchant accounts visible to the API credential (Management API v3).

Install

npm install @codespar/mcp-adyen

Environment

ADYEN_API_KEY="..."              # X-API-Key value, secret
ADYEN_MERCHANT_ACCOUNT="..."     # Merchant account code injected into every call
ADYEN_ENV="test"                 # test | live. Default: test.
ADYEN_LIVE_URL_PREFIX="..."      # Required when ADYEN_ENV=live. Your merchant-specific prefix from Customer Area.

URL routing

  • ADYEN_ENV=test → https://checkout-test.adyen.com/v71
  • ADYEN_ENV=live → https://<ADYEN_LIVE_URL_PREFIX>-checkout-live.adyenpayments.com/checkout/v71

Live calls fail fast if ADYEN_LIVE_URL_PREFIX is missing.

Run

# stdio (default)
npx @codespar/mcp-adyen

# HTTP
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-adyen

Scope

This v0.1 covers Checkout API v71 only. Separate packages for Adyen Payouts, Management, and Balance Platform APIs follow when demand emerges — each has distinct auth, URL prefix rules, and use cases.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

Authentication

Set these environment variables before launching the server:

  • ADYEN_API_KEY (required, secret) — Adyen API key (generated in Customer Area → Developers → API credentials)
  • ADYEN_MERCHANT_ACCOUNT (required) — Adyen merchant account code (appears in most request bodies)
  • ADYEN_ENV — test | live. Defaults to test.
  • ADYEN_LIVE_URL_PREFIX — Required when ADYEN_ENV=live. Your merchant-specific prefix, e.g. 1797a841fbb37ca7-AdyenDemo

Issue credentials at the provider's developer portal: https://docs.adyen.com.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.