# yookassa-mcp [Health: Active]

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

## Description
MCP server for YooKassa payment API — payments, refunds, receipts (54-FZ). 10 tools. First MCP for

## Tools
Capabilities this server exposes over MCP:

- **create_payment** — Create a payment in YooKassa. Returns a confirmation URL. Supports one-step and two-step payments, receipts, and metadata. MOVES REAL MONEY (the payer is charged) — irreversible.
- **get_payment** — Get payment details by ID. Returns status, amount, payment method, confirmation URL, and metadata.
- **capture_payment** — Confirm a two-step payment (capture held funds). Optionally capture a partial amount. MOVES REAL MONEY — irreversible.
- **cancel_payment** — Cancel a payment (pending or waiting_for_capture). Releases any held funds.
- **list_payments** — List payments with filters by status, date range, and pagination cursor.
- **save_payment_method** — Save a payment method for recurring charges. Creates a small real payment to bind the card/wallet (charged, then refundable). MOVES REAL MONEY — irreversible.
- **create_recurring_payment** — Charge a saved payment method. Charges the card immediately WITHOUT any user interaction. MOVES REAL MONEY — irreversible.
- **create_sbp_payment** — Create a payment via SBP (Russian fast payment system). Returns a confirmation URL / deep-link for the payer's banking app. MOVES REAL MONEY — irreversible.
- **create_split_payment** — Create a split payment for marketplaces (distributes funds among partner shops). Requires the YooKassa-for-platforms product. MOVES REAL MONEY — irreversible.
- **create_refund** — Refund a payment (full or partial) by payment_id and amount. MOVES REAL MONEY (funds returned to the payer) — irreversible.
- **get_refund** — Get refund details by ID. Returns status, amount, and payment reference.
- **list_refunds** — List refunds with optional filter by payment_id.
- **create_receipt** — Create a standalone fiscal receipt (54-FZ). Supports payment and refund receipts with items, VAT codes, and customer contacts.
- **list_receipts** — List receipts with filters by payment_id or refund_id.
- **create_payout** — Create a payout to a bank card, YooMoney wallet, or SBP. Requires the separately-activated YooKassa Payouts product with its own credentials (see README/SECURITY). Asynchronous — the response may be 'pending'; poll get_payout for the final status. MOVES REAL MONEY — irreversible.
- **get_payout** — Get payout details by ID. Returns status, amount, and destination.
- **create_webhook** — Register a webhook URL for YooKassa events (payment.succeeded, refund.succeeded, etc.).
- **list_webhooks** — List all registered webhooks for this shop.
- **delete_webhook** — Delete a webhook by ID. Stops sending notifications for that webhook.
- **get_shop_info** — Get shop info: ID, status, test mode, fiscalization settings. (YooKassa has no balance endpoint; this returns shop configuration, not a monetary balance.)

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

```json
"mcpServers": {
  "yookassa-mcp": {
    "command": "npx",
    "args": ["-y","@theyahia/yookassa-mcp"],
    "env": {
      "YOOKASSA_SHOP_ID": "",
      "YOOKASSA_SECRET_KEY": ""
    }
  }
}
```

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

## Documentation

## What yookassa-mcp does

The yookassa-mcp MCP server gives MCP clients access to YooKassa operations through a set of 20 tools. Payment tools can create, retrieve, capture, cancel, and list payments, save payment methods, initiate recurring charges, and create SBP or marketplace split payments. Refund tools support full or partial refunds and refund lookup. Receipt tools cover fiscal receipts under 54-FZ, including line items, VAT codes, and customer contact details.

Additional tools manage YooKassa payouts, webhook registrations, and shop information. Payouts can target a bank card, YooMoney wallet, SBP, or a payout token. The account tool reports shop status, test mode, and fiscalization details; YooKassa does not provide a balance endpoint here.

## How it works

The server calls YooKassa at `https://api.yookassa.ru/v3/` using HTTP Basic Auth derived from the shop ID and secret key. It creates a stable UUID v4 idempotency key for each logical POST or DELETE operation and reuses that key when retrying, allowing YooKassa to deduplicate repeated requests. Requests can be retried up to three times for rate limits, server errors, or timeouts, with one-, two-, and four-second delays.

Standard operation uses stdio. The `--http` option or `HTTP_PORT` enables Streamable HTTP, with MCP requests sent to `/mcp` and an unauthenticated `/health` endpoint available for status checks. HTTP mode requires a bearer token and validates host and origin settings.

## Setup and configuration

Install the package through `npx` and provide `YOOKASSA_SHOP_ID` and `YOOKASSA_SECRET_KEY` in the MCP client configuration. For payouts, configure the separate `YOOKASSA_PAYOUT_AGENT_ID` and `YOOKASSA_PAYOUT_SECRET_KEY` values; these are not the shop payment credentials.

For HTTP deployments, set `MCP_AUTH_TOKEN`. `HTTP_PORT` defaults to 3000, while `HTTP_HOST` defaults to `127.0.0.1`. Allowed hosts and browser origins can be controlled with `MCP_ALLOWED_HOSTS` and `MCP_ALLOWED_ORIGINS`. `YOOKASSA_DEBUG=1` writes request metadata to stderr without logging secrets, authorization headers, or request bodies.

## Limitations and notes

The yookassa-mcp MCP server performs actual financial operations. Use a YooKassa test shop during development and verify test mode with `get_shop_info` before connecting a production shop. Creating payments, refunds, payouts, recurring payments, saved payment methods, and captures can move real funds and cannot be reversed automatically; clients mark these operations as destructive so they can request confirmation.

Payouts are asynchronous, so callers should use `get_payout` to check their status. Supplying a raw card number for payouts requires PCI DSS certification; otherwise, collect recipient details with the payout widget and pass a `payout_token`.

Do not expose HTTP mode directly to the public internet. Keep the default localhost binding or place the service behind an authenticated reverse proxy or mutual TLS, and configure the bearer token and host/origin restrictions appropriately.

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

