Rails by Spritz API
OfficialReturns Solana serialized transactions (alongside EVM calldata) from the get_off_ramp_transaction tool so an agent can sign and submit them when off-ramping crypto to fiat.
Spritz MCP Server
MCP server for Spritz fiat rails — let AI agents off-ramp crypto to bank accounts.
What This Does
An MCP (Model Context Protocol) server that gives AI agents tools to interact with the Spritz API. Tools are derived from the OpenAPI spec — no hand-written schemas.
Related MCP server: satsrail-mcp
Installation
npx (recommended)
npx @spritz-finance/mcp-serverGlobal install
npm install -g @spritz-finance/mcp-server
spritz-mcp-serverFrom source
git clone https://github.com/spritz-finance/spritz-mcp-server.git
cd spritz-mcp-server
npm install && npm run buildConfiguration
1. Get Your API Key
Create one at app.spritz.finance/api-keys.
2. Configure Your MCP Client
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"spritz": {
"command": "npx",
"args": ["@spritz-finance/mcp-server"],
"env": {
"SPRITZ_API_KEY": "your-api-key"
}
}
}
}Claude Code
Add to your project's .mcp.json:
{
"spritz": {
"command": "npx",
"args": ["@spritz-finance/mcp-server"],
"env": {
"SPRITZ_API_KEY": "your-api-key"
}
}
}Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"spritz": {
"command": "npx",
"args": ["@spritz-finance/mcp-server"],
"env": {
"SPRITZ_API_KEY": "your-api-key"
}
}
}
}Available Tools
Tool | Description |
| List saved bank accounts |
| Add a bank account (US, CA, UK, or IBAN) |
| Remove a bank account |
| List off-ramp transactions with optional filters |
| Create a quote to convert crypto to fiat |
| Re-fetch a quote to check status |
| Get transaction params (EVM calldata or Solana serialized tx) to sign and submit |
Architecture
Tools are driven by the OpenAPI spec — not hand-written. To expose a new endpoint, add one entry to src/config.ts:
{
name: "list_bank_accounts",
operationId: "getV1Bank-accounts",
description: "List all bank accounts saved as off-ramp payment destinations.",
},
// Add more entries — inputSchema, HTTP method, and path are derived from the spec.The server reads openapi.json, finds each operationId, extracts the JSON Schema for parameters and request bodies, and registers them as MCP tools. A generic handler dispatches tool calls to the Spritz API.
openapi.json → source of truth for request/response schemas
src/config.ts → which operations to expose (cherry-pick)
src/spec.ts → reads spec, builds MCP tool definitions
src/handlers.ts → generic dispatcher (path params, query, body)
src/formatters.ts → CSV/JSON response formatting
src/client.ts → Spritz API HTTP client
src/index.ts → MCP server entrypointDevelopment
npm install
npm run dev # Watch mode
npm run build # Build
npm run inspector # MCP inspectorUpdating the OpenAPI spec
curl -s https://sandbox.spritz.finance/openapi/json > openapi.jsonLicense
MIT
Available Tools
7 toolscreate_bank_accountB
Add a new bank account as an off-ramp destination. The type field determines required fields: us (routing_number, account_number), ca (institution_number, transit_number, account_number), uk (sort_code, account_number), iban (iban, optional bic).
Inputs: type (required), ownership (required), bic, iban, +8 more.
create_off_ramp_quoteA
Create an off-ramp quote to convert crypto to fiat. Requires accountId, amount, chain, and tokenAddress (the on-chain contract address, e.g. 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 for USDC on Arbitrum). Do NOT pass a token symbol — it must be the contract address.
After creating a quote, check the fulfillment field:
send_to_address: Send the exactinput.amountofinput.tokento thesendTo.addressbeforesendTo.expiresAt.sign_transaction: Callget_off_ramp_transactionwith the quote ID and sender address to get calldata or a serialized transaction, then sign and submit on-chain.
Amount modes: set amountMode to output (default) for exact fiat delivery, or input for exact crypto spend.
Inputs: chain (required), amount (required), accountId (required), memo, +3 more.
delete_bank_accountC
Delete a bank account by ID.
Inputs: accountId (required).
get_off_ramp_quoteA
Get an off-ramp quote by ID. Use this to check quote status or re-fetch quote details.
Inputs: quoteId (required).
get_off_ramp_transactionA
Get transaction params for a quote. Returns EVM calldata (contractAddress, calldata, value) or a serialized Solana transaction (transactionSerialized) depending on the chain. The agent must sign and submit the transaction on-chain.
Inputs: quoteId (required), feePayer, senderAddress.
list_bank_accountsA
List all bank accounts saved as off-ramp payment destinations.
Inputs: no named parameters.
list_off_rampsB
List off-ramp transactions. Filter by status, chain, or destination accountId. Supports cursor pagination.
Inputs: sort, chain, limit, cursor, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool maps to a distinct resource+action (quote create/get, transaction params, bank account list/create/delete, off-ramp listing). The only mild overlap is between get_off_ramp_quote and get_off_ramp_transaction, both keyed by quote ID, but descriptions make the boundary clear (status/details vs. calldata/serialized transaction).
All names follow a consistent snake_case verb_noun convention (create_off_ramp_quote, list_bank_accounts, get_off_ramp_transaction, etc.). Verb choices (create/list/get/delete) are used predictably and match the underlying operations.
Seven tools is well-scoped for an off-ramp API: quote creation/retrieval, transaction params, bank account management, and off-ramp listing. Each tool earns its place with no filler.
Core off-ramp lifecycle is covered: create quote, fetch quote, get transaction params to sign, and list transactions, plus bank account list/create/delete. Minor gaps exist — no update_bank_account, no cancel/delete off-ramp, and no get-single-off-ramp-by-ID except via list filters, but agents can work around these.
Maintenance
Related MCP Connectors
Non-custodial stablecoin bill-pay rails on Celo & Base for AI agents, settled on-chain via MCP.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Spacebring MCP server. Look up members, bookings, invoices, subscriptions, events and more, and take everyday actions such as creating events or replying to support tickets, from MCP-compatible AI assistants that support remote servers with OAuth.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for the Monei API that gives AI agents access to wallets, transfers, crypto sends, swaps, offramp, and bill payments through natural language.2414 npmMIT

satsrail-mcpofficial
AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to accept Bitcoin Lightning payments. It allows agents to create orders, generate invoices, check payment status, and manage the full SatsRail merchant API through natural language.MIT- FlicenseNot gradedqualityCmaintenanceMCP server that provides AI agents a prepaid fiat wallet, enabling them to pay metered APIs per call on the peage rail with adjustable spending caps.-

OrcaRail MCPofficial
AlicenseBqualityBmaintenanceOfficial MCP server for accepting crypto payments through OrcaRail. It enables AI agents to create payment intents, manage subscriptions, handle product catalogs, and get exchange rates via natural language.26230 npmMIT