To use revolut-mcp against the Revolut Business sandbox you need three things:
This page walks the sandbox-specific setup. For the underlying auth mechanism (how the JWT and token exchange work) see the Authentication guide.
Official Revolut references
Sign up at sandbox-business.revolut.com. The sandbox accepts mock details and seeds your profile with test accounts, balances, counterparties, and transactions — no real data or money is involved. See Revolut’s Prepare your Sandbox environment guide for the full walkthrough.
Create a key pair:
mkdir -p certs
openssl genrsa -out certs/privatekey.pem 2048
openssl req -new -x509 -key certs/privatekey.pem -out certs/publickey.cer -days 1825 \
-subj "/CN=revolut-mcp"
In Settings → APIs → Business API → Add certificate:
certs/publickey.cer into the X509 public key field.https://example.com/.
⚠️
localhostredirect URIs are rejected by Revolut’s consent page. You only copy thecodefrom the redirect, so a neutral public URL is fine.
Save, then copy the Client ID the portal shows. The portal also confirms the JWT iss (the
host of your redirect URI, e.g. example.com).
REVOLUT_CLIENT_ID=your_client_id
REVOLUT_PRIVATE_KEY_PATH=./certs/privatekey.pem
REVOLUT_REDIRECT_URI=https://example.com/
TOKEN_STORE_PATH=./.tokens.json
REVOLUT_ENVIRONMENT=sandbox
setup_auth → complete_auth)setup_auth — it returns an authorization URL. Open it.https://example.com/?code=oa_sand_…. Copy the code.complete_auth with that code. Tokens are stored at TOKEN_STORE_PATH and refreshed
automatically (the consent window is ~90 days).Full details, including token lifetime and the cross-tab re-auth behaviour, are in the Authentication guide.
The sandbox seeds some accounts and transactions. To create more, use the sandbox scope tools —
simulate_topup (add test funds) and simulate_transaction_state (drive a transfer through states).
See the Sandbox reference.