Connect Claude, Codex and other AI tools
Connect Claude Code, Codex or any MCP client to NervixPay in two minutes: paste one prompt, approve a code, and your assistant can list and create payment links.
NervixPay has a built-in MCP server, so an AI assistant can read your business and create payment links with real tools instead of guessing at web pages. Connecting takes about two minutes, you approve the access yourself, and you can revoke it at any time.
Connect in one paste
Step 1: Copy your Merchant ID
It is shown with a Copy button on Integrations in the browser, and in the desktop app under Agents and Settings → General. It is not a secret.
Step 2: Paste this into your assistant
This is the generic version: replace
YOUR-MERCHANT-IDwith yours, or copy the prefilled one from Integrations. It works in Claude Code and Codex, and in any assistant that can open a web address.Connect prompt Read https://nervixpay.live/skills/nervixpay-connect/SKILL.md and follow it to connect NervixPay to this assistant. My Merchant ID is YOUR-MERCHANT-ID.Step 3: Approve the code
The assistant shows a code such as
ABCD-EFGH. Open Integrations while signed in, type the code, check the device name and permissions, and press Approve. The code works for 10 minutes.Step 4: Restart the assistant once
The assistant registers NervixPay and asks you to restart it (or run
/mcpin Claude Code). Then ask it to check the connection.
What you can ask
- “Verify my NervixPay connection.”
- “How many payments and payment links do I have?”
- “List my payment links.”
- “Create a payment link called Monthly plan for 25 USDC on Polygon.” The assistant tells you the item, price and network and waits for your yes.
The tools
| Tool | What it does | Permission it needs |
|---|---|---|
nervixpay_verify | Checks the connection and shows the merchant, mode and permissions | integrations:verify |
nervixpay_get_merchant | Reads the business profile, plan and onboarding status | merchant:read |
nervixpay_get_usage | Counts paid and pending orders and payment links | usage:read |
nervixpay_list_payment_links | Lists payment links | payment_links:read |
nervixpay_create_payment_link | Creates a payment link (a test draft in test mode) | payment_links:write |
nervixpay_claim_payment | Redeems a customer’s 8-character payment confirmation code | payments:claim, live keys only, not in the default key |
The assistant uses the same scoped key as the Server API, so connecting it gives it no power that the key does not have.
Set it up by hand
You need an access token first. The AI agents page shows the two requests that produce one. Then register the server:
Claude Code
claude mcp add --transport http --scope user nervixpay https://nervixpay.live/api/v1/mcp \
--header "Authorization: Bearer YOUR-ACCESS-TOKEN"Claude Code does not expand variables inside the header, so the token goes in literally; it stays in Claude Code’s own settings. Run /mcp to see the server.
Codex
# 1. Keep the token in an environment variable that the shell launching Codex exports
export NERVIXPAY_TOKEN="YOUR-ACCESS-TOKEN"
# 2. Register the server
codex mcp add nervixpay --url https://nervixpay.live/api/v1/mcp --bearer-token-env-var NERVIXPAY_TOKENCodex reads the token from the environment, so start it from a terminal where NERVIXPAY_TOKEN is set. On a Mac, keep the token in the Keychain and export it from your shell profile instead of typing it.
Any other MCP client
URL: https://nervixpay.live/api/v1/mcp
Header: Authorization: Bearer YOUR-ACCESS-TOKEN
Method: HTTP (JSON-RPC over POST)Install the skill from the terminal (optional)
The connect prompt works without installing anything. If you would rather say “Connect NervixPay” and have the assistant remember how, run this one command once. It saves the skill for both Claude Code and Codex:
mkdir -p ~/.claude/skills/nervixpay-connect ~/.agents/skills/nervixpay-connect && curl -fsSL https://nervixpay.live/skills/nervixpay-connect/SKILL.md -o ~/.claude/skills/nervixpay-connect/SKILL.md && cp ~/.claude/skills/nervixpay-connect/SKILL.md ~/.agents/skills/nervixpay-connect/SKILL.md && echo "NervixPay skill installed. In Claude Code or Codex say: Connect NervixPay."Keep it safe
- You approve, the assistant never does. A good assistant shows you the code and waits. If one asks for your password, seed phrase, private key or an emailed code, stop it.
- Test mode first. A test key can only create drafts that no customer can pay. Live mode needs its own confirmation when you approve.
- Keys expire. An access token lasts 7 days. To renew, paste the connect prompt again.
- Revoke any time. Delete the key on Integrations; the assistant is cut off immediately. Then remove the server with
claude mcp remove nervixpayorcodex mcp remove nervixpay. - NervixPay never holds your money. Payments go straight to your own wallets, so a connected assistant cannot move funds.
If something does not work
| What you see | What to do |
|---|---|
401 invalid_token or the tools disappear | The key expired or was revoked. Paste the connect prompt again. |
authorization_pending | You have not approved the code yet. Approve it on Integrations. |
| The code is “not found” or “expired” | Codes last 10 minutes. Ask the assistant to start again. |
| Claude Code lists the server as failed | Check the token is literal in the header and not a variable, then run /mcp. |
| Codex shows no NervixPay tools | Start Codex from a terminal where NERVIXPAY_TOKEN is exported, then restart it. |
| A tool says it needs a permission | The key does not include it. Approve a new key with the permission you need. |