OrcaRail
БесплатноНе проверенOfficial MCP server for accepting crypto payments through OrcaRail. It enables AI agents to create payment intents, manage subscriptions, handle product catalog
Описание
Official 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.
README
Official Model Context Protocol (MCP) server for OrcaRail — accept crypto payments from your AI coding agent.
Runs locally over stdio and wraps the @orcarail/node SDK, so Claude Code, Cursor, Codex, and any other MCP client can create payment intents, manage subscriptions, maintain your product catalog, and look up exchange rates — the same delivery model as Stripe's @stripe/mcp.
- Docs: docs.orcarail.com/docs/integration/mcp
- Dashboard: app.orcarail.com
- npm: @orcarail/mcp
What you can ask your agent
- "Create a $25 USDC payment intent on Polygon with return URL
https://myapp.com/successand give me the pay link." - "List my active subscriptions and cancel the one for
[email protected]at period end." - "Create a product called Pro Plan with a $29/month recurring price."
- "How much is 500 EUR in USDC right now?"
Requirements
- Node.js 18+
- OrcaRail API key (
ak_…) and secret (sk_…) from the dashboard
Quick start
npx -y @orcarail/mcp --tools=all --api-key=ak_live_xxx --api-secret=sk_live_xxx
Or with environment variables (preferred — keeps secrets out of shell history):
export ORCARAIL_API_KEY=ak_live_xxx
export ORCARAIL_API_SECRET=sk_live_xxx
npx -y @orcarail/mcp --tools=all
The server speaks MCP over stdin/stdout; it is meant to be launched by an MCP client, not used interactively. npx -y @orcarail/mcp --help prints usage.
Configuration
Every option is a CLI flag or an environment variable. Flags win.
| Flag | Environment variable | Required | Description |
|---|---|---|---|
--api-key |
ORCARAIL_API_KEY |
Yes | API key (ak_…) |
--api-secret |
ORCARAIL_API_SECRET |
Yes | API secret (sk_…) |
--api-base |
ORCARAIL_API_BASE |
No | API base URL. Default https://api.orcarail.com/api/v1 |
--organization-id |
ORCARAIL_ORGANIZATION_ID |
No | Default organization for products.* / prices.* tools |
--tools |
— | No | all (default) or comma-separated tool names |
Restrict what the agent can do:
npx -y @orcarail/mcp \
--tools=payment_intents.create,payment_intents.retrieve,subscriptions.list \
--api-key=... --api-secret=...
Self-hosted or local API:
npx -y @orcarail/mcp --tools=all --api-base=http://127.0.0.1:3000/api/v1 --api-key=... --api-secret=...
Client setup
Claude Code
claude mcp add orcarail -- npx -y @orcarail/mcp --tools=all --api-key=ak_live_xxx --api-secret=sk_live_xxx
Or pass secrets via env:
claude mcp add orcarail \
-e ORCARAIL_API_KEY=ak_live_xxx \
-e ORCARAIL_API_SECRET=sk_live_xxx \
-- npx -y @orcarail/mcp --tools=all
Verify with claude mcp list.
Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"orcarail": {
"command": "npx",
"args": ["-y", "@orcarail/mcp", "--tools=all"],
"env": {
"ORCARAIL_API_KEY": "ak_live_xxx",
"ORCARAIL_API_SECRET": "sk_live_xxx"
}
}
}
}
Codex
Add to ~/.codex/config.toml:
[mcp_servers.orcarail]
command = "npx"
args = ["-y", "@orcarail/mcp", "--tools=all"]
[mcp_servers.orcarail.env]
ORCARAIL_API_KEY = "ak_live_xxx"
ORCARAIL_API_SECRET = "sk_live_xxx"
Other MCP clients
Any stdio-capable MCP client works with the same shape: command npx, args ["-y", "@orcarail/mcp", "--tools=all"], credentials in env. For Claude Desktop, use the Cursor JSON block in claude_desktop_config.json.
Tool reference
Tool names follow resource.action. Responses are raw OrcaRail API objects as JSON.
Payment intents
| Tool | Arguments | Description |
|---|---|---|
payment_intents.create |
return_url (required); either price_id or amount + currency + tokenId + networkId; optional cancel_url, description, metadata, expires_at, payment_method_types, withdrawal_addresses |
Create a payment intent (returns client_secret and payment link) |
payment_intents.retrieve |
id |
Fetch current status |
payment_intents.update |
id + any updatable field |
Update before confirmation |
payment_intents.confirm |
id, client_secret, return_url |
Confirm and get the hosted pay redirect URL |
payment_intents.complete |
id |
Mark processing after the customer hits your success URL |
payment_intents.cancel |
id |
Cancel the intent |
tokenId / networkId are UUIDs — see Networks and Tokens.
Subscriptions
| Tool | Arguments | Description |
|---|---|---|
subscriptions.create |
description (required); either price_id or interval + amount + currency + token_id + network_id; optional collection_method, total_cycles, trial_period_days, trial_end, payer_email, payer_user_id, billing_cycle_anchor, cancel_at, cancel_at_period_end, days_until_due, interval_count, metadata, withdrawal_addresses, return_url, cancel_url |
Create a recurring subscription |
subscriptions.retrieve |
id |
Fetch a subscription |
subscriptions.update |
id + any updatable field, including pause_collection |
Update |
subscriptions.cancel |
id, optional cancellation_details (comment, feedback) |
Cancel |
subscriptions.resume |
id |
Resume a paused subscription |
subscriptions.list |
Optional status, collection_method, created / current_period_start / current_period_end range filters, limit, starting_after, ending_before |
List with cursor pagination |
subscriptions.list_payment_links |
id, optional limit, starting_after, ending_before |
Cycle invoices for a subscription |
Catalog — products and prices
Catalog tools operate on an organization: pass organization_id per call or set a default via --organization-id / ORCARAIL_ORGANIZATION_ID.
| Tool | Arguments | Description |
|---|---|---|
products.list |
optional organization_id |
List products |
products.create |
name (required); optional description, active, metadata, default_price, marketing_features, … |
Create a product |
products.update |
product_id + updatable fields |
Update a product |
products.delete |
product_id |
Delete a product |
prices.list |
optional active, recurring, limit |
List prices |
prices.create |
unit_amount_decimal, currency, token_id, network_id (required); product or inline product_data; optional recurring (interval, interval_count, trial_period_days), nickname, lookup_key, active, metadata |
Create a one-time or recurring price |
prices.update |
price_id + updatable fields |
Update a price |
prices.deactivate |
price_id |
Deactivate a price |
Rates and pay
| Tool | Arguments | Description |
|---|---|---|
rates.get_fiat_quote |
amount, currency |
Fiat → USD/USDC quote |
rates.list_currencies |
optional active |
Supported fiat currencies |
pay.get_by_slug |
slug |
Payment details by hosted pay slug |
pay.cancel_by_slug |
slug |
Cancel by pay slug |
Error handling
API failures surface to the agent as tool errors with the HTTP status, error type, and message intact, e.g. API error (401): [authentication_error]: …. Nothing is retried automatically.
Programmatic usage
The package also exports its building blocks if you want to embed the server:
import { createServer, startStdioServer, listToolNames } from '@orcarail/mcp';
const { server, tools } = createServer({
apiKey: process.env.ORCARAIL_API_KEY!,
apiSecret: process.env.ORCARAIL_API_SECRET!,
tools: 'all', // or new Set(['payment_intents.create'])
});
console.log(listToolNames()); // all 25 tool names
await startStdioServer(server);
Security
- API keys grant full access to the linked organization — treat MCP config files like
.envfiles. - Prefer environment variables over inline
--api-key=…args. - Never commit live keys; keep project-level
.cursor/mcp.jsonwith secrets out of git. - Scope with
--toolsto only the operations your agent needs. - Use test keys during development; rotate leaked keys in the dashboard.
Troubleshooting
| Symptom | Fix |
|---|---|
Missing credentials on startup |
Pass --api-key/--api-secret or set ORCARAIL_API_KEY/ORCARAIL_API_SECRET |
Authentication error on every call |
Verify the key/secret pair; don't mix test and live credentials |
organization_id is required |
Pass organization_id in the call or launch with --organization-id |
| Tool missing from the client | Check the --tools filter — names must match exactly |
| Client can't start the server | Ensure Node.js 18+ on the client's PATH; try npx -y @orcarail/mcp --help |
Development
npm install
npm run build # tsup → dist/
npm test # vitest
npm run typecheck # tsc --noEmit
npm run lint # eslint
Test against a local MCP inspector:
npx @modelcontextprotocol/inspector node dist/cli.cjs --tools=all --api-key=ak_test_xxx --api-secret=sk_test_xxx
Related
License
MIT
Установить OrcaRail в Claude Desktop, Claude Code, Cursor
unyly install orcarail-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add orcarail-mcp -- npx -y @orcarail/mcpПошаговые гайды: как установить OrcaRail
FAQ
OrcaRail MCP бесплатный?
Да, OrcaRail MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для OrcaRail?
Нет, OrcaRail работает без API-ключей и переменных окружения.
OrcaRail — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить OrcaRail в Claude Desktop, Claude Code или Cursor?
Открой OrcaRail на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Stripe
Payments, customers, subscriptions
автор: Stripemalamutemayhem/unclick-agent-native-endpoints
110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n
автор: malamutemayhemwhiteknightonhorse/APIbase
Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa
автор: whiteknightonhorsetrackerfitness729-jpg/sitelauncher-mcp-server
Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr
Compare OrcaRail with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории finance
