# cloudpayments-mcp

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/theYahia/cloudpayments-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 239  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cloudpayments-mcp

## Description
MCP server for CloudPayments API — charge, auth, confirm, void, refund, find transaction. 6 tools.

## Tools
Capabilities this server exposes over MCP:

- **charge** — One-step payment (charge) via CloudPayments. Pass card cryptogram and amount to immediately capture funds. Requires IP address and supports optional invoice ID, description, and receipt email.
- **auth** — Two-step payment (authorization/hold) via CloudPayments. Funds are blocked but not captured until confirmed. Use confirm to capture or void_payment to release. Supports same parameters as charge.
- **confirm** — Confirm an authorized payment in CloudPayments to capture the held funds. You can confirm a partial amount less than the original authorization. Requires the transaction ID from the auth step.
- **void_payment** — Void an authorized payment in CloudPayments to release the held funds back to the cardholder. Only works for authorized (not yet confirmed) transactions. Use refund for confirmed payments.
- **get_transaction** — Find a transaction by ID in CloudPayments. Returns full transaction details including status, amount, card info, and timestamps. Useful for checking payment status or debugging.
- **refund** — Refund a completed payment in CloudPayments, either fully or partially. Specify the transaction ID and refund amount. Partial refunds can be issued multiple times up to the original amount.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "cloudpayments-mcp": {
    "command": "npx",
    "args": ["-y","@theyahia/cloudpayments-mcp"],
    "env": {
      "CLOUDPAYMENTS_PUBLIC_ID": "",
      "CLOUDPAYMENTS_API_SECRET": ""
    }
  }
}
```

**Requires environment variables:** `CLOUDPAYMENTS_PUBLIC_ID`, `CLOUDPAYMENTS_API_SECRET` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What cloudpayments-mcp MCP server does

The cloudpayments-mcp MCP server exposes CloudPayments payment operations as MCP tools. It supports immediate charges and authorize-then-confirm payment flows, along with voiding an authorization, finding a transaction, and issuing full or partial refunds.

The server also covers recurring billing. Agents can create subscriptions from a payment token, change their amount, interval, or period, cancel active subscriptions, and list subscriptions for a user. Additional tools create payment orders that return invoice links and retrieve transactions for a specified date.

There are 12 tools in total:

- `charge_payment` performs an immediate payment.
- `auth_payment` places an authorization hold.
- `confirm_payment` captures an authorized payment fully or partially.
- `void_payment` releases an authorization hold.
- `get_transaction` finds a payment by transaction ID.
- `refund_payment` creates a full or partial refund.
- `create_subscription`, `update_subscription`, `cancel_subscription`, and `list_subscriptions` manage recurring subscriptions.
- `create_order` creates an invoice-link payment order.
- `list_transactions` returns transactions for a date.

## How it works

The MCP client starts the package as a command-line process, typically through `npx -y @theyahia/cloudpayments-mcp`. Tool calls are translated to CloudPayments API requests. The credentials are sent using HTTP Basic authentication, with the public ID as the username and the API secret as the password.

The package can also run over HTTP. Set `HTTP_PORT`, or pass `--http` with a port number, to expose JSON-RPC at `POST /mcp`; `GET /health` provides a status endpoint. The README includes examples for payment, subscription, transaction listing, and refund requests. CloudPayments test terminals can be used for testing.

## Setup and configuration

The cloudpayments-mcp MCP server requires these environment variables:

- `CLOUDPAYMENTS_PUBLIC_ID`: the CloudPayments public ID.
- `CLOUDPAYMENTS_API_SECRET`: the CloudPayments API secret.

Claude Desktop, Claude Code, Cursor, and Windsurf are shown in the README configuration examples. For stdio clients, configure the server command as `npx` with `-y @theyahia/cloudpayments-mcp` and pass both credentials in the environment. Claude Code can add the same values through its `claude mcp add` command.

For HTTP mode, run `HTTP_PORT=3000 npx @theyahia/cloudpayments-mcp` or use `npx @theyahia/cloudpayments-mcp --http 3000`.

## Limitations and notes

The original repository is archived, and development has moved to the `servers/cloudpayments/` directory in the `theYahia/WWmcp` monorepo. The npm package remains `@theyahia/cloudpayments-mcp` and is stated to work as before; new issues and pull requests should go to the replacement repository.

Payment and subscription actions require valid CloudPayments credentials, and test operations should use the provider's test terminal.

_Full upstream README: https://allmcps.com/mcp/cloudpayments-mcp/readme_

