Spreedly MCP Server
OfficialThis server gives AI assistants structured access to the Spreedly payments API, letting them manage gateways, process transactions, tokenize payment methods, and handle related operations through MCP tools.
Gateways: create, list, show, update, retain, list supported types, list gateway transactions, authorize, purchase, verify, store, and issue general credits.
Transactions: list, show, update metadata, capture, void, refund/credit, complete, confirm, and fetch raw gateway transcripts.
Payment methods: tokenize/create, list, show, update metadata, retain, recache CVV, list transactions/events, delete metadata, update without gateway interaction, and inspect events.
Administrative/maintenance: create and update environments, certificates, merchant profiles, SCA providers, sub-merchants, and protection providers; run card refresher inquiries and check network tokenization status/metadata.
Access control: read-only tools are available by default; tokenization, transaction initiation, and administrative capabilities are enabled via environment flags.
Observability: emits structured JSON audit logs to stderr for every tool invocation.
Click on "Deploy 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., "@Spreedly MCP Server list my available gateways"
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.
Spreedly MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with direct access to the Spreedly payments API. Enables LLMs to manage gateways, process transactions, tokenize payment methods, and more -- all through structured, validated tool calls.
Published on npm as @spreedly/spreedly-mcp.
Quick Start
Add this to your MCP client configuration:
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"spreedly": {
"command": "npx",
"args": ["-y", "@spreedly/spreedly-mcp@latest"],
"env": {
"SPREEDLY_ENVIRONMENT_KEY": "<your-environment-key>",
"SPREEDLY_ACCESS_SECRET": "<your-access-secret>"
}
}
}
}Cursor
Edit .cursor/mcp.json in your project root:
{
"mcpServers": {
"spreedly": {
"command": "npx",
"args": ["-y", "@spreedly/spreedly-mcp@latest"],
"env": {
"SPREEDLY_ENVIRONMENT_KEY": "<your-environment-key>",
"SPREEDLY_ACCESS_SECRET": "<your-access-secret>"
}
}
}
}VS Code
Edit .vscode/mcp.json:
{
"servers": {
"spreedly": {
"command": "npx",
"args": ["-y", "@spreedly/spreedly-mcp@latest"],
"env": {
"SPREEDLY_ENVIRONMENT_KEY": "<your-environment-key>",
"SPREEDLY_ACCESS_SECRET": "<your-access-secret>"
}
}
}
}Related MCP server: PayBridgeNP MCP Server
Getting Your Credentials
Log into the Spreedly Dashboard
Your Environment Key is shown on your environment's settings page
Create or find an Access Secret under your environment's access secrets
For details, see Spreedly Credentials Documentation.
Tool Access Policy
The server controls which tools are available through three environment variable flags. All default to false -- only read-only tools are available out of the box. Enable the categories you need:
Variable | Default | What it enables |
|
| Dedicated payment method tokenization tools that send raw PAN/CVV to Spreedly ( |
|
| Authorizing, purchasing, capturing, voiding, refunding, and other third-party actions. See Cardholder Data Flow -- |
|
| Creating/updating gateways, environments, certificates, merchant profiles, SCA providers, sub-merchants |
Recommended Configuration Profiles
Read-only / monitoring (default -- no flags needed):
"env": {
"SPREEDLY_ENVIRONMENT_KEY": "<your-environment-key>",
"SPREEDLY_ACCESS_SECRET": "<your-access-secret>"
}Only list/show tools are available. Good for dashboards, reporting, and investigating transactions.
Transaction processing (recommended for AI-assisted payments):
"env": {
"SPREEDLY_ENVIRONMENT_KEY": "<your-environment-key>",
"SPREEDLY_ACCESS_SECRET": "<your-access-secret>",
"TRANSACTION_INITIATION_ENABLED": "true"
}Enables authorizing, capturing, voiding, and refunding against existing gateways. Does not allow creating gateways or using dedicated card tokenization tools. Note: authorize, purchase, and confirm accept optional pass-in PAN/CVV data if the merchant's Spreedly environment permits it -- see Cardholder Data Flow.
Administrative setup:
"env": {
"SPREEDLY_ENVIRONMENT_KEY": "<your-environment-key>",
"SPREEDLY_ACCESS_SECRET": "<your-access-secret>",
"ADMINISTRATIVE_ENABLED": "true"
}For initial environment setup -- creating gateways, merchant profiles, SCA providers. Disable once configuration is complete.
Full access:
"env": {
"SPREEDLY_ENVIRONMENT_KEY": "<your-environment-key>",
"SPREEDLY_ACCESS_SECRET": "<your-access-secret>",
"PAYMENT_METHOD_TOKENIZATION_ENABLED": "true",
"TRANSACTION_INITIATION_ENABLED": "true",
"ADMINISTRATIVE_ENABLED": "true"
}All tool categories enabled. Use only in controlled environments or during initial setup.
Cardholder Data Flow
Five tools can accept raw cardholder data (PAN, CVV). They are controlled by two different flags:
Flag | Tools | CHD Fields |
|
|
|
|
|
|
The create and recache tools are dedicated tokenization tools -- their sole purpose is to vault raw card data in Spreedly. They are gated by PAYMENT_METHOD_TOKENIZATION_ENABLED.
The authorize, purchase, and confirm tools primarily operate on existing payment_method_token references. They also accept an optional credit_card field for pass-in payment method tokenization, which tokenizes a new card inline as part of the transaction. Whether pass-in succeeds depends on the merchant's Spreedly environment settings, not the MCP server flag. These tools are gated by TRANSACTION_INITIATION_ENABLED.
PCI scoping note: Disabling only PAYMENT_METHOD_TOKENIZATION_ENABLED still allows pass-in PAN/CVV data through transaction tools when TRANSACTION_INITIATION_ENABLED is true. To exclude all raw cardholder data flows, either disable both flags, or enable the "iFrame or Spreedly Express only" setting in your Spreedly environment -- this prevents direct API submission of payment methods, blocking pass-in tokenization on transaction endpoints regardless of MCP flag configuration.
Available Tools
Gateways (12 tools)
Tool | Description |
| Create a new gateway connection |
| List all gateways |
| Get gateway details |
| Update gateway configuration |
| Mark gateway for retention |
| List all supported gateway types |
| List transactions for a gateway |
| Authorize a payment (hold funds) |
| Authorize and capture in one step |
| Verify a payment method |
| Store a payment method at a gateway |
| Issue a non-referenced credit |
Transactions (9 tools)
Tool | Description |
| List transactions |
| Get transaction details |
| Update transaction metadata |
| Capture an authorized transaction |
| Void a transaction |
| Refund a transaction |
| Complete a pending transaction |
| Confirm a pending transaction |
| Get raw gateway transcript |
Payment Methods (12 tools)
Tool | Description |
| Tokenize a new payment method |
| List payment methods |
| Get payment method details |
| Update payment method metadata |
| Retain a payment method |
| Recache CVV |
| List transactions for a payment method |
| List events for a payment method |
| Delete payment method metadata |
| Update without gateway interaction |
| Show a payment method event |
| List all payment method events |
Certificates (4 tools)
spreedly_certificate_create, spreedly_certificate_generate, spreedly_certificate_list, spreedly_certificate_update
Environments (4 tools)
spreedly_environment_create, spreedly_environment_list, spreedly_environment_show, spreedly_environment_update
Merchant Profiles (4 tools)
spreedly_merchant_profile_create, spreedly_merchant_profile_list, spreedly_merchant_profile_show, spreedly_merchant_profile_update
Sub-Merchants (4 tools)
spreedly_sub_merchant_create, spreedly_sub_merchant_list, spreedly_sub_merchant_show, spreedly_sub_merchant_update
Events (2 tools)
spreedly_event_list, spreedly_event_show
Protection (5 tools)
spreedly_protection_forward_claim, spreedly_protection_list_events, spreedly_protection_show_event, spreedly_protection_create_provider, spreedly_protection_show_provider
SCA (3 tools)
spreedly_sca_authenticate, spreedly_sca_create_provider, spreedly_sca_show_provider
Card Refresher (3 tools)
spreedly_card_refresher_inquiry, spreedly_card_refresher_show_inquiry, spreedly_card_refresher_list_inquiries
Network Tokenization (2 tools)
spreedly_network_tokenization_card_metadata, spreedly_network_tokenization_token_status
Common Workflows
Tokenize and Charge a Card
Create a payment method:
spreedly_payment_method_createAuthorize against a gateway:
spreedly_gateway_authorizeCapture the authorization:
spreedly_transaction_capture
Authorize Then Capture (Two-Step)
Authorize:
spreedly_gateway_authorize(holds funds)Capture later:
spreedly_transaction_capture(collects funds)
Refund a Transaction
Find the transaction:
spreedly_transaction_showIssue a refund:
spreedly_transaction_credit
Audit Logging
When audit logging is enabled (the default), the MCP server emits structured audit log entries to stderr for every tool invocation. Logs use one-line JSON format for easy SIEM ingestion and comply with PCI DSS v4.0.1 Requirement 10.2.2. stderr is the MCP-specified channel for logging — stdout is reserved for protocol traffic and must not contain non-MCP messages.
Example Output
{"timestamp":"2026-03-05T18:30:00.000Z","eventId":"f47ac10b-58cc-4372-a567-0e02b2c3d479","component":"spreedly-mcp","tool":"spreedly_gateway_list","environmentKey":"EXAMPLE_ENVIRONMENT_KEY","status":"success","durationMs":142,"requestId":"a1b2c3d4e5","httpStatusCode":200}
{"timestamp":"2026-03-05T18:30:01.000Z","eventId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","component":"spreedly-mcp","tool":"spreedly_payment_method_create","environmentKey":"EXAMPLE_ENVIRONMENT_KEY","status":"error","durationMs":89,"requestId":"f6g7h8i9j0","httpStatusCode":422}Each entry includes: timestamp, event ID, component identifier, tool name, environment key, success/failure status, duration, and HTTP metadata. The environmentKey is the full SPREEDLY_ENVIRONMENT_KEY (safe to log — it is not a secret). The requestId and httpStatusCode fields reflect the Spreedly API response (x-request-id header and HTTP status), enabling correlation with Spreedly's server-side logs. Both are present whenever a Spreedly API call was made. On error, httpStatusCode is null when the failure occurred before any HTTP request (e.g. input validation). On success without an API call, httpStatusCode is absent. Request and response bodies are never logged.
De-duplicating Logs
The server emits exactly one audit entry per tool invocation. However, MCP hosts (Claude Desktop, Cursor, VS Code, etc.) capture and display stderr independently from one another, and some hosts may render the same stderr line more than once in their log UI. Each entry includes a unique eventId (UUIDv4) so that downstream log pipelines can safely de-duplicate: discard any entry whose eventId you have already seen.
Configuration
Environment Variable | Values | Default | Description |
|
|
| Set to |
Shared Responsibility
Responsibility | Owner |
Emit structured audit events to stderr | Spreedly MCP server |
Capture stderr and route to SIEM/log aggregator | Customer infrastructure |
Retain logs for 12+ months (3 months immediately available) | Customer infrastructure |
Monitor and alert on suspicious audit events | Customer infrastructure |
Security
Credentials are isolated in a closure -- never stored as object properties, never serializable
All inputs are sanitized for invisible Unicode characters and injection attempts
Error messages are redacted to prevent credential leakage
Tool descriptions are static constants hardened against prompt injection
Audit logs never contain request/response bodies, full keys, or secrets
See SECURITY.md for vulnerability reporting
See Security Guide for architecture details, credential management, and deployment recommendations
Shared Responsibility
The MCP server runs in your infrastructure. Security is shared between the server and your organization:
Category | Spreedly MCP Server | Customer |
Credential security | Isolates in closure; never serializable or logged | Provisions, rotates, secures storage |
Transport security | Enforces HTTPS; redacts credentials from errors | Network segmentation, access controls |
Input validation | Validates and sanitizes tool inputs | Configures Tool Access Policy |
Audit logging | Emits structured JSON to stderr | Routes to SIEM; retention, monitoring |
AI provider | Hardens tool descriptions against prompt injection | Selects provider, evaluates data privacy |
Deployment | Minimal dependencies; npm provenance attestation | Isolates server process, keeps updated |
PCI compliance | No cardholder data stored outside API calls | Maintains own PCI posture |
For credential rotation procedures, deployment hardening, and the full model, see the Security Guide.
Development
git clone https://github.com/spreedly/spreedly-mcp.git
cd spreedly-mcp
npm install
npm test # Run all tests
npm run typecheck # Type-check
npm run build # Build for distributionTo run the MCP server locally against a real Spreedly test environment (e.g. during development before the package is published), see CONTRIBUTING.md for setup instructions and security guidelines.
Contributing
See CONTRIBUTING.md for the full guide, including local MCP client configuration and credential handling.
Fork the repository
Create a feature branch
Write tests for your changes
Ensure all checks pass:
npm test && npm run typecheck && npm run lintSubmit a pull request
Disclaimer
See DISCLAIMER.md for information on third-party AI integration, shared responsibility, and operational risk.
License
Apache License 2.0 -- see LICENSE
Available Tools
32 toolsspreedly_card_refresher_list_inquiriesBRead-only
Lists card refresher inquiries. This tool ONLY reads data.
Inputs: count, order, since_token.
spreedly_card_refresher_show_inquiryARead-only
Retrieves details of a specific card refresher inquiry. This tool ONLY reads data.
Inputs: inquiry_token (required).
spreedly_event_listARead-only
Lists events in your Spreedly environment with pagination. Returns event summaries. This tool ONLY reads data.
Inputs: count, order, event_type, since_token.
spreedly_event_showBRead-only
Retrieves details of a single event by its ID. Returns the full event record. This tool ONLY reads data.
Inputs: event_id (required).
spreedly_gateway_listARead-only
Lists all gateway connections configured in your Spreedly environment. Returns an array of gateway summaries. This tool ONLY reads data and does not modify anything.
Inputs: count, order, since_token.
spreedly_gateway_list_supportedARead-only
Lists all gateway types supported by Spreedly. Returns available gateway integrations and their capabilities. This tool ONLY reads reference data.
Inputs: no named parameters.
spreedly_gateway_list_transactionsBRead-only
Lists transactions processed through a specific gateway. Returns transaction summaries. This tool ONLY reads data.
Inputs: gateway_token (required), order, state, since_token.
spreedly_gateway_showARead-only
Retrieves details of a single gateway by its token. Returns the full gateway configuration. This tool ONLY reads data and does not modify anything.
Inputs: gateway_token (required).
spreedly_merchant_profile_listBRead-only
Lists all merchant profiles. This tool ONLY reads data.
Inputs: count, order, since_token.
spreedly_merchant_profile_showARead-only
Retrieves details of a single merchant profile. This tool ONLY reads data.
Inputs: merchant_profile_token (required).
spreedly_network_tokenization_card_metadataARead-only
Retrieves card metadata for a network token. This tool ONLY reads data.
Inputs: payment_method_token (required).
spreedly_network_tokenization_token_statusARead-only
Retrieves the status of a network token. This tool ONLY reads data.
Inputs: payment_method_token (required).
spreedly_payment_method_delete_metadataBDestructiveIdempotent
Deletes custom metadata from a payment method. This tool ONLY removes metadata.
Inputs: keys (required), payment_method_token (required).
spreedly_payment_method_listARead-only
Lists payment methods in your Spreedly environment. Returns payment method summaries. This tool ONLY reads data.
Inputs: count, order, state, metadata, +1 more.
spreedly_payment_method_list_all_eventsBRead-only
Lists all payment method events across your environment. This tool ONLY reads data.
Inputs: count, order, event_type, since_token, +1 more.
spreedly_payment_method_list_eventsBRead-only
Lists lifecycle events for a specific payment method. This tool ONLY reads data.
Inputs: payment_method_token (required), count, since_token, include_transactions.
spreedly_payment_method_list_transactionsBRead-only
Lists transactions for a specific payment method. This tool ONLY reads data.
Inputs: payment_method_token (required), order, since_token.
spreedly_payment_method_retainAIdempotent
Marks a payment method to be retained beyond the default retention period. This tool ONLY modifies retention status.
Inputs: payment_method_token (required).
spreedly_payment_method_showARead-only
Retrieves details of a single payment method by its token. This tool ONLY reads data.
Inputs: payment_method_token (required).
spreedly_payment_method_show_eventBRead-only
Retrieves a specific payment method event by token. This tool ONLY reads data.
Inputs: event_token (required).
spreedly_payment_method_updateBDestructiveIdempotent
Updates a payment method's non-sensitive fields. Requires a payment_method_token. This tool ONLY updates metadata.
Inputs: payment_method (required), payment_method_token (required).
spreedly_payment_method_update_gratisADestructiveIdempotent
Updates a managed payment method's details without a gateway interaction. This tool modifies payment method data.
Inputs: payment_method (required), payment_method_token (required).
spreedly_protection_list_eventsARead-only
Lists protection events. Returns event summaries. This tool ONLY reads data.
Inputs: count, order, state, since_token.
spreedly_protection_show_eventBRead-only
Retrieves a specific protection event. This tool ONLY reads data.
Inputs: event_token (required).
spreedly_protection_show_providerARead-only
Retrieves details of a protection provider. This tool ONLY reads data.
Inputs: protection_provider_token (required).
spreedly_sca_show_providerARead-only
Retrieves details of an SCA provider. This tool ONLY reads data.
Inputs: sca_provider_token (required).
spreedly_sub_merchant_listARead-only
Lists all sub-merchants. This tool ONLY reads data.
Inputs: count, order, since_token.
spreedly_sub_merchant_showARead-only
Retrieves details of a single sub-merchant. This tool ONLY reads data.
Inputs: sub_merchant_key (required).
spreedly_transaction_listARead-only
Lists transactions in your Spreedly environment. Returns transaction summaries with pagination. This tool ONLY reads data.
Inputs: count, order, state, since_token.
spreedly_transaction_showARead-only
Retrieves details of a single transaction by its token. Returns the full transaction record. This tool ONLY reads data.
Inputs: transaction_token (required).
spreedly_transaction_transcriptARead-only
Retrieves the raw gateway communication transcript for a transaction. Returns request/response logs. This tool ONLY reads data.
Inputs: transaction_token (required).
spreedly_transaction_updateADestructiveIdempotent
Updates metadata on an existing transaction. Requires a transaction_token. This tool ONLY modifies transaction metadata.
Inputs: transaction_token (required), metadata.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 32 tools
Most tools are clearly separated by resource and action, but several list/show variants overlap in purpose, such as spreedly_gateway_list_transactions vs spreedly_transaction_list and spreedly_payment_method_list_all_events vs spreedly_event_list. The descriptions help, but an agent could easily select the wrong event or transaction listing tool.
The dominant spreedly_<resource>_<action> pattern is consistent and readable. Minor deviations like spreedly_network_tokenization_card_metadata, spreedly_transaction_transcript, and spreedly_payment_method_update_gratis break the strict pattern but do not make the set chaotic.
With 32 tools, the server exceeds the 25-tool threshold and much of the surface consists of repetitive list/show pairs across similar resources. The broad scope partly justifies the count, but the set feels heavy and redundant for an MCP server.
The tool set is heavily read-oriented and covers listing, showing, and some metadata updates, but core Spreedly operations such as creating payment methods, processing transactions, refunds, or managing gateways are missing. Agents attempting real payment workflows would hit significant dead ends.
Maintenance
Related MCP Connectors
Stripe payments for AI agents. Create links, verify, manage customers.
Manage GoCardless payments, mandates, subscriptions, refunds and payouts via AI assistants.
Payment identity intelligence for AI agents.
Payment infrastructure for AI agents: spending rules, approval flows, single-use virtual cards.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to interact with multiple payment providers (Stripe, Paystack) through a unified API. Supports payment initialization, verification, refunds, customer management, and invoicing without requiring knowledge of specific provider implementations.2-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with PayBridgeNP payment gateway accounts through natural language. Provides read-only access to payments, refunds, analytics, and account data, with write capabilities planned for future versions.24 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access Magpie Payment Platform APIs for processing payments, creating checkout sessions, sending invoices, and managing payment links through natural conversation.68 npm2MIT

ifthenpay paymentsofficial
FlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely create payment references and requests for Multibanco, MB WAY, Payshop, Credit Card, PinPay, Cofidis Pay, PIX, and retrieve payment reports.-