@theyahia/yookassa-mcp
Click on "Install 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., "@@theyahia/yookassa-mcpCreate a payment for 5000 RUB for order #123"
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.
@theyahia/yookassa-mcp
MCP server for YooKassa API -- payments, refunds, receipts (54-FZ), payouts, webhooks, recurring, SBP, marketplace splits. 20 tools.
Part of Russian API MCP series by @theYahia.
Quick Start
Claude Desktop
{
"mcpServers": {
"yookassa": {
"command": "npx",
"args": ["-y", "@theyahia/yookassa-mcp"],
"env": {
"YOOKASSA_SHOP_ID": "your-shop-id",
"YOOKASSA_SECRET_KEY": "your-secret-key"
}
}
}
}Claude Code
claude mcp add yookassa -e YOOKASSA_SHOP_ID=your-id -e YOOKASSA_SECRET_KEY=your-key -- npx -y @theyahia/yookassa-mcpVS Code / Cursor
{
"servers": {
"yookassa": {
"command": "npx",
"args": ["-y", "@theyahia/yookassa-mcp"],
"env": {
"YOOKASSA_SHOP_ID": "your-shop-id",
"YOOKASSA_SECRET_KEY": "your-secret-key"
}
}
}
}Windsurf
{
"mcpServers": {
"yookassa": {
"command": "npx",
"args": ["-y", "@theyahia/yookassa-mcp"],
"env": {
"YOOKASSA_SHOP_ID": "your-shop-id",
"YOOKASSA_SECRET_KEY": "your-secret-key"
}
}
}
}Streamable HTTP (remote / Docker)
HTTP_PORT=3000 npx -y @theyahia/yookassa-mcp --httpEndpoints:
POST /mcp-- MCP Streamable HTTP transportGET /health-- health check ({ "status": "ok", "tools": 20 })
Environment Variables
Variable | Required | Description |
| Yes | Shop ID (Settings -> Shop) |
| Yes | Secret key (Integration -> API Keys) |
| No | Port for HTTP transport (default 3000) |
For testing, create a demo shop in YooKassa dashboard.
Tools (20)
Payments (9)
Tool | Description |
| Create a payment with amount, description, payment method. Returns payment URL. Supports receipts and metadata |
| Get payment details by ID -- status, amount, confirmation URL, metadata |
| Confirm a two-step payment (capture held funds). Partial capture supported |
| Cancel a payment (pending or waiting_for_capture) |
| List payments with filters by status, date range, and pagination |
| Save a payment method for recurring charges (card binding) |
| Charge a saved payment method (no user interaction) |
| Create a payment via SBP (Russian fast payment system) |
| Split payment for marketplaces -- distribute funds among partners |
Refunds (3)
Tool | Description |
| Full or partial refund by payment ID |
| Get refund details by ID |
| List refunds with optional payment filter |
Receipts (2)
Tool | Description |
| Fiscal receipt (54-FZ) -- items, VAT codes, customer contacts |
| List receipts by payment or refund ID |
Payouts (2)
Tool | Description |
| Payout to bank card, YooMoney wallet, or SBP phone |
| Get payout status and details by ID |
Webhooks (3)
Tool | Description |
| Register a webhook URL for events (payment.succeeded, refund.succeeded, etc.) |
| List all registered webhooks |
| Delete a webhook by ID |
Account (1)
Tool | Description |
| Shop info -- ID, status, test mode, fiscalization |
Demo Prompts
Create a payment for 5000 RUB for order #123 with SBP as payment methodSet up a recurring subscription: bind the card with 1 ruble, then charge 999 RUB monthly using the saved methodShow all successful payments for the last 7 days and create a refund of 2500 RUB for payment pay_xxxArchitecture
Auth: HTTP Basic Auth (
YOOKASSA_SHOP_ID:YOOKASSA_SECRET_KEY)Base URL:
https://api.yookassa.ru/v3/Idempotence-Key: UUID v4 on every POST request
Timeout: 10 seconds
Retry: 3 attempts on 429/5xx with exponential backoff (1s, 2s, 4s)
Transport: stdio (default) or Streamable HTTP (
--http/HTTP_PORT)
Part of Russian API MCP Series
MCP | Status | Description |
ready | Addresses, companies, banks, phones | |
ready | Currency rates, key rate | |
ready | Payments, refunds, receipts, payouts, webhooks | |
ready | Payments, subscriptions, orders | |
... | +46 servers -- full list |
License
MIT
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theYahia/yookassa-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server