@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)
⚠️ The HTTP transport exposes money-moving tools. It requires a Bearer token, binds to
127.0.0.1by default, and validatesHost/Origin(DNS-rebinding protection). Never expose it directly to the internet — put it behind an authenticating reverse proxy / mTLS. See SECURITY.md.
MCP_AUTH_TOKEN="$(openssl rand -hex 32)" HTTP_PORT=3000 npx -y @theyahia/yookassa-mcp --httpThen call /mcp with Authorization: Bearer <MCP_AUTH_TOKEN>.
Endpoints:
POST /mcp-- MCP Streamable HTTP transport (Bearer auth required; stateless — POST only)GET /health-- unauthenticated health check ({ "status": "ok", "tools": <count> })
Related MCP server: robokassa-mcp
Environment Variables
Variable | Required | Description |
| Yes | Shop ID (Settings -> Shop) |
| Yes | Secret key (Integration -> API Keys) |
| Payouts | Gateway id (agentId) for the Payouts product (Settings -> Payouts) |
| Payouts | Secret key for the Payouts gateway |
| No | Port for HTTP transport (default 3000); enables |
| HTTP only | Required in HTTP mode. Bearer token clients must send on |
| No | Bind address for HTTP mode (default |
| No | Comma-separated |
| No | Comma-separated browser |
| No | Set to |
Test mode / safety
This server drives real money operations. While developing:
Create a test shop in the YooKassa dashboard and use its
YOOKASSA_SHOP_ID/YOOKASSA_SECRET_KEY.Confirm you are in test mode by calling
get_shop_info— expect"test": true— before switching to a live shop.In a live shop,
create_payment,create_refund,create_payout,create_recurring_payment,save_payment_method, andcapture_paymentmove real funds and are irreversible. These tools are annotated as destructive so MCP clients can prompt before running them.The HTTP transport is unauthenticated-by-default-refused and binds to localhost — see SECURITY.md before any remote deployment.
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)
⚠️ Payouts are a separately-activated YooKassa product with their own gateway credentials (
YOOKASSA_PAYOUT_AGENT_ID+YOOKASSA_PAYOUT_SECRET_KEY), not the shop's payment key. Sending a raw card number requires a PCI DSS certificate — without it, collect the recipient via the payout widget and passpayout_token. Payouts are asynchronous (pollget_payout).
Tool | Description |
| Payout to bank card / YooMoney wallet / SBP, or via |
| 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 (YooKassa has no balance endpoint) |
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: one stable UUID v4 per logical POST/DELETE request, preserved across retries (a retried request is de-duplicated by YooKassa, never double-charged). Callers may pass an explicit key.
Timeout: 35 seconds (above YooKassa's ~30s server-side answer window, so slow-but-successful operations are not aborted client-side)
Retry: 3 attempts on 429/5xx/timeout with exponential backoff (1s, 2s, 4s); retries reuse the same Idempotence-Key, so they are safely de-duplicated
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
This server cannot be installed
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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