Ax402Docs
FOR AGENTS

MCP server

Cursor / Claude agent tools

@ax402/mcp-server exposes Ax402 seller API actions as MCP tools for Cursor, Claude Desktop, and compatible hosts. API key auth only — no JWT support.

Install and run

npx @ax402/mcp-server

Requires Node.js 18+.

Set AX402_API_KEY (scoped ax402_live_... key from the Ax402 dashboard). Optional: AX402_BASE_URL (default https://api.ax402.io). For paying gateway URLs, set AX402_EVM_PRIVATE_KEY and/or HEDERA_ACCOUNT_ID + HEDERA_PRIVATE_KEY.

From source

git clone https://github.com/AxLabs/ax402-sdks.git
cd ax402-sdks && pnpm install
pnpm --filter @ax402/mcp-server build

AX402_API_KEY=ax402_live_... \
AX402_BASE_URL=https://api.ax402.io \
node tools/mcp-server/dist/index.js

Cursor configuration

{
  "mcpServers": {
    "ax402": {
      "command": "npx",
      "args": ["-y", "@ax402/mcp-server"],
      "env": {
        "AX402_BASE_URL": "https://api.ax402.io",
        "AX402_API_KEY": "ax402_live_...",
        "AX402_EVM_PRIVATE_KEY": "0x..."
      }
    }
  }
}

To enable Hedera payments on ax402_pay_url, add HEDERA_ACCOUNT_ID and HEDERA_PRIVATE_KEY to env.

Example config: cursor-mcp.json.example in the ax402-sdks repo.

Tools

ToolScope
ax402_list_apisapis:read
ax402_get_apiapis:read
ax402_discovery_urlsapis:read — gateway OpenAPI / well-known URLs
ax402_set_discovery_guidanceapis:write — guidance, contact email, OpenAPI version
ax402_list_endpointsendpoints:read
ax402_update_endpoint_schemasendpoints:write — request/response JSON Schema
ax402_create_apiapis:write + verified email — optional discovery fields
ax402_add_endpointendpoints:write
ax402_import_openapiopenapi:read — persists schemas from the spec when present
ax402_add_domaindomains:write
ax402_list_domainsdomains:read
ax402_verify_domaindomains:write
ax402_domain_suggestdomains:read
ax402_stats_overviewstats:read
ax402_stats_apistats:read
ax402_settlements_listsettlements:read
ax402_settlements_exportsettlements:read
ax402_billing_overviewbilling:read
ax402_income_summaryincome:read
ax402_apis_slug_checkapis:read
ax402_apis_probe_upstreamapis:read
ax402_scopes_listJWT session
ax402_facilitator_statsauthenticated
ax402_billing_catalogpublic billing catalog
ax402_inspect_urlbuyer (no wallet)
ax402_supported_networksauthenticated
ax402_platform_configpublic
ax402_pay_urlbuyer (AX402_EVM_PRIVATE_KEY and/or Hedera keys)

See API discovery for gateway OpenAPI / well-known manifests.

Environment

VariableRequiredPurpose
AX402_API_KEYYesSeller API key
AX402_BASE_URLNoAPI base URL (default https://api.ax402.io)
AX402_EVM_PRIVATE_KEYFor ax402_pay_urlEVM signer
HEDERA_ACCOUNT_IDFor ax402_pay_urlHedera payer account
HEDERA_PRIVATE_KEYFor ax402_pay_urlHedera private key

Scopes

Create keys with the apiManager preset for create/update flows. Add wallet credentials to enable in-process payment via ax402_pay_url.

Agent guide · CLI reference · API discovery · /llms.txt · Source on GitHub

On this page