Prerequisites
- An MCP client — one of:
- Claude Code
- Cursor
- VS Code with GitHub Copilot Chat (Agent mode)
- A sender API key from the Paycrest dashboard (Settings → API keys)
- On Windows, Windows PowerShell — not Git Bash — for the install one-liner
Install the agent
The installer downloads the latest release binary to a fixed path. It configures Cursor automatically; Claude Code and VS Code are one manual step each, below.Windows (PowerShell — not Git Bash)
Open Windows PowerShell (or Terminal → PowerShell). Do not use Git Bash for this one-liner.macOS / Linux
What the script does
- Downloads the matching binary from Releases
- Saves it under
~/.paycrest/with a fixed name (no manual rename) - Merges a
paycrestentry into Cursor’s~/.cursor/mcp.json(unless you skip that step)
The script does not configure Claude Code or VS Code — see Connect Claude Code and Connect VS Code.Ignore the Source code (zip/tar.gz) links on the Releases page — those are source archives, not the MCP binary.
Where the config lives
All three clients run the same binary from the path above. Only the config file and its top-level key differ.
You only ever need one environment variable:
PAYCREST_API_KEY.
Connect Claude Code
The installer does not touch Claude Code. Add the server with one command:Choose a scope
Use
--scope user for Paycrest — a payments agent isn’t tied to one repo.
Verify
paycrest should show ✔ Connected. Inside a Claude Code session, /mcp shows the same status and lets you inspect the server’s tools. To start over, run claude mcp remove paycrest and add it again.
Project config (.mcp.json)
If you’d rather commit the server for your whole team, add it at project scope and Claude Code writes .mcp.json in the repo root:
Connect Cursor
The installer may already have done this — open~/.cursor/mcp.json and check for a paycrest entry before editing.
Typical config after install (path may match your username):
Set your API key in Cursor
Open the MCP settings (Cursor Settings → Tools & MCP) and edit thepaycrest server’s JSON to replace your-sender-api-key with your key.
- Windows
- macOS
- Hover over the paycrest MCP server.
- Click the edit (pencil) icon.
- Update
PAYCREST_API_KEYin the JSON with your key.
Reload MCP
After install or editingmcp.json:
- Open Cursor Settings → Tools & MCP, or
- Restart Cursor
Connect VS Code
The installer does not touch VS Code either, and its MCP config shape differs from Cursor’s.VS Code uses
"servers" at the top level and requires "type": "stdio". Cursor and Claude Code use "mcpServers".Keep the key out of the file
VS Code can prompt for the key instead of storing it in plain text. Use aninputs entry and reference it from env:
Start the server
- Open GitHub Copilot Chat.
- Switch chat mode to Agent.
- Start or enable the
paycrestMCP server when VS Code prompts (or run MCP: List Servers). - Try the smoke tests below.
Smoke tests
In Claude Code, Cursor Agent, or VS Code Copilot Chat (Agent mode), try:- “List Paycrest currencies”
- “What’s the rate for 100 USDC on base to NGN?”
Order flow (create → pay → watch)
Typical flow the agent should follow:1
Create
Create an order (on-ramp or off-ramp) via natural language.
2
Pay-in details
The agent shows pay-in details (bank / wallet / account info) and the order id.
3
Send funds
You send the funds (fiat or crypto, as instructed).
4
Confirm payment
Reply
paid (or “I have paid” / “transfer confirmed”).5
Watch until terminal
The agent runs one continuous watch until the order is settled, cancelled, refunded, or expired.
Example prompts
Off-ramp (crypto → fiat):Upgrade
- Quit every client running the server — exit your Claude Code sessions, quit Cursor, quit VS Code. The running MCP process holds a lock on the
.exe/ binary. - Re-run the same install one-liner.
- Reconnect:
- Claude Code — start a new session, then
claude mcp list - Cursor — Cursor Settings → Tools & MCP
- VS Code — restart the
paycrestserver from MCP: List Servers
- Claude Code — start a new session, then
Re-running the installer replaces the binary only. Your client config and API key are untouched.