Developer Documentation
Connect your AI agent to a real UK bank account via the Model Context Protocol or CLI.
MCP SERVER
Model Context Protocol
The Reins MCP server gives any compatible AI agent — Claude, GPT, or your own — direct access to banking tools through a single SSE connection. Your agent can check balances, send payments, create cards, and more, all governed by the spending rules and approval workflows you configure.
QUICKSTART
{ "mcpServers": { "reins": { "url": "https://mcp.reins.cash/sse" } } }
Add this to your Claude Desktop config and restart. Your agent will have access to all Reins tools immediately.
TOOL REFERENCE
check_balanceCheck the current balance of an account.
PARAMETERS
account_idstringrequiredRETURNS
{ balance: number, currency: string, available: number }
send_paymentInitiate a payment. Triggers an approval request if the amount exceeds the agent's spending rules.
PARAMETERS
account_idstringrequiredamountnumberrequiredrecipientobjectrequiredreferencestringRETURNS
{ payment_id: string, status: 'completed' | 'pending_approval', amount: number }
create_cardCreate a virtual debit card linked to an account. Cards can have individual spending limits.
PARAMETERS
account_idstringrequiredlabelstringspending_limitnumberRETURNS
{ card_id: string, last_four: string, expires: string, status: 'active' }
list_transactionsList recent transactions with optional filters.
PARAMETERS
account_idstringrequiredlimitnumbercursorstringfromstringtostringRETURNS
{ transactions: Transaction[], cursor: string | null }
get_accountGet full account details including sort code and account number.
PARAMETERS
account_idstringrequiredRETURNS
{ account_id: string, sort_code: string, account_number: string, name: string, status: string }
list_cardsList all virtual debit cards on an account.
PARAMETERS
account_idstringrequiredstatusstringRETURNS
{ cards: Card[] }
get_spending_rulesView the spending rules configured for an account or agent.
PARAMETERS
account_idstringrequiredRETURNS
{ rules: SpendingRule[] }
request_approvalSubmit a transaction for human approval. Used when a payment exceeds agent limits or requires manual sign-off.
PARAMETERS
account_idstringrequiredactionstringrequiredpayloadobjectrequiredreasonstringRETURNS
{ approval_id: string, status: 'pending', expires_at: string }
COMMAND LINE INTERFACE
Reins CLI
Full account management from the terminal. Install the CLI to authenticate agents, check balances, send payments, and manage cards without leaving your shell.
INSTALL
$ curl -fsSL https://setup.reins.cash/cli | bash
Requires Node.js 18+. The installer adds reins to your PATH.
COMMAND REFERENCE
reins loginAuthenticate with your API key or interactive browser login.
--key <api_key>Authenticate with an API key directly--browserOpen browser for interactive login (default)reins balanceCheck the current balance of your account.
--account <id>Specify account (defaults to primary)--jsonOutput as JSONreins send <amount> <recipient>Send a payment. Amount in pounds (e.g. 50.00). Recipient can be a payee alias or sort-code/account-number.
--ref <text>Payment reference--account <id>Source account--confirmSkip confirmation promptreins card createCreate a new virtual debit card.
--label <name>Card label--limit <amount>Per-transaction spending limit in pounds--account <id>Account to link card toreins card listList all virtual cards on the account.
--status <status>Filter: active, frozen, cancelled--jsonOutput as JSONreins transactionsList recent transactions.
--limit <n>Number of results (default 25)--from <date>Start date (ISO 8601)--to <date>End date (ISO 8601)--jsonOutput as JSONreins rulesView and manage spending rules for your account.
--account <id>Specify account--jsonOutput as JSONreins statusOverview of account status, balance, active cards, and pending approvals.
reins logoutClear the local session and API key.
AUTHENTICATION
API Keys
All API and MCP requests are authenticated with API keys. Keys are prefixed with rk_ and scoped to an organisation. Generate keys from the dashboard or CLI.
$ reins login --key rk_live_abc123...
GET /v1/accounts Authorization: Bearer rk_live_abc123...
KEY TYPES
rk_live_Production key. Real money, real transactions.rk_test_Sandbox key. Mock banking provider, no real funds moved.API REFERENCE
REST API
The MCP tools map directly to REST endpoints. You can use the API directly if you prefer HTTP over the Model Context Protocol.
/v1/accounts/:id/v1/accounts/:id/balance/v1/payments/v1/accounts/:id/transactions/v1/cards/v1/accounts/:id/cards/v1/accounts/:id/rules/v1/approvalsBase URL: https://api.reins.cash — All endpoints require a valid API key in the Authorization header.