Skip to content

Authentication

CyberPay MCP Server uses API Key authentication.

Get API Key

  1. Visit CyberDash
  2. Login with wallet connection
  3. Go to Settings → API Keys
  4. Create a new API Key

Configuration

Environment Variable

export CYBERPAY_API_KEY=cp_your_api_key

MCP Configuration

Pass via the env field in MCP config:

{
  "mcpServers": {
    "cyberpay": {
      "command": "npx",
      "args": ["@cyberpay/mcp"],
      "env": {
        "CYBERPAY_API_KEY": "cp_your_api_key"
      }
    }
  }
}

REST API

When calling REST API directly, pass in the Header:

curl -X POST https://api.cyberpay.org/v1/service/call \
  -H "Authorization: Bearer cp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"service_id": "card-list", "params": {"wallet": "0x..."}}'

API Key Types

TypePrefixPermissions
Productioncp_All services, real transactions
Testnetcp_test_All services, test environment
Read-onlycp_ro_Query-only services

Rate Limits

PlanLimitBurst
Free100 req/min200 req/min
Pro1000 req/min2000 req/min
EnterpriseCustomCustom

Exceeding limits returns 429 Too Many Requests.

Security Best Practices

  • Never expose API Keys in client-side code
  • Store in environment variables
  • Rotate keys regularly
  • Use different keys for different environments
  • Monitor API Key usage