revolut-merchant-mcp
MCP server for the Revolut Merchant API, enabling AI assistants to read and manage customers, orders, subscriptions, and plans. Supports sandbox and production with safe defaults.
README
revolut-merchant-mcp
A Model Context Protocol (MCP) server for the Revolut Merchant API — letting MCP-aware AI assistants (Claude Desktop, Cursor, agent harnesses) read and manage Revolut customers, payment methods, orders, subscriptions, plans, and webhooks.
Why this exists. The existing community Revolut MCP wraps the Revolut Business API (accounts, balances, transfers). This server targets the Merchant API — the surface you use to accept payments and run subscriptions — which had no MCP server until now.
Status: alpha / proof-of-concept. Sandbox-first, read-only by default.
Features
Broad Merchant API coverage across six domains. Read tools are always
registered; write (mutating) tools are registered only when
REVOLUT_MCP_ALLOW_WRITES=true — so the default posture is read-only.
| Domain | Read tools (always on) | Write tools (gated by REVOLUT_MCP_ALLOW_WRITES) |
|---|---|---|
| Customers | list_customers, get_customer |
create_customer, update_customer, delete_customer |
| Payment methods (customer-nested) | list_payment_methods, get_payment_method |
update_payment_method, delete_payment_method |
| Orders | list_orders, get_order |
create_order, update_order, capture_order, cancel_order, pay_order, refund_order, increment_authorisation |
| Subscriptions | list_subscriptions, get_subscription, list_subscription_cycles, get_subscription_cycle |
create_subscription, update_subscription, cancel_subscription, change_subscription_plan, update_subscription_renewal_date |
| Plans | list_plans, get_plan |
create_plan |
| Webhooks | list_webhooks, get_webhook |
create_webhook, update_webhook, delete_webhook, rotate_webhook_signing_secret |
That's 14 read tools and 21 write tools (35 total).
- Safe defaults: sandbox unless you explicitly opt into production; writes disabled unless explicitly enabled; idempotency keys + transient-error retry in the transport layer.
Install
# with uv (recommended)
uv pip install -e ".[dev]"
# or pip
pip install -e ".[dev]"
Configure
Copy .env.example and set your sandbox key:
| Variable | Required | Default | Notes |
|---|---|---|---|
REVOLUT_MERCHANT_SECRET_KEY |
✅ | — | Merchant API secret (sandbox or live) |
REVOLUT_API_VERSION |
2024-09-01 |
Sent as Revolut-Api-Version |
|
REVOLUT_SANDBOX |
true |
false = production (guarded) |
|
REVOLUT_I_UNDERSTAND_PRODUCTION |
false |
Required to run against production | |
REVOLUT_MCP_ALLOW_WRITES |
false |
Register the create/cancel tools |
Sandbox keys come from the Revolut Sandbox Business dashboard (Merchant API).
Run
REVOLUT_MERCHANT_SECRET_KEY=sk_sandbox_... revolut-merchant-mcp
The server speaks MCP over stdio.
Claude Desktop / Cursor
{
"mcpServers": {
"revolut-merchant": {
"command": "revolut-merchant-mcp",
"env": {
"REVOLUT_MERCHANT_SECRET_KEY": "sk_sandbox_...",
"REVOLUT_SANDBOX": "true"
}
}
}
}
Architecture
config.py env → Config (sandbox/prod guard, write gate)
client.py async transport: auth, versioning, idempotency, retry, errors
operations/ one module per domain (customers, orders, subscriptions,
plans, webhooks); each holds framework-free async fns plus a
register(mcp, client, allow_writes, safe) that wires its tools
server.py FastMCP wrapper — iterates the domain registrars (writes gated)
The pure functions in operations/ have no MCP dependency, so the API layer
is fully testable with respx and reusable outside the server. Payment methods
are customer-nested (/customers/{id}/payment-methods) and so live in the
customers module.
Develop
ruff check .
pytest
Tests mock the Revolut sandbox host with respx — no live keys, no network.
Safety notes
- This server can mutate live data (customers, payment methods, orders, subscriptions, plans, and webhooks — including refunds and order capture) when writes are enabled against a production key. Production and writes are both off by default and each requires an explicit opt-in.
- Treat your Merchant secret like any payment credential. Prefer a sandbox key for anything agent-driven.
License
MIT © Sherman Studio Ltd. Not affiliated with or endorsed by Revolut.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。