Docs
One product: hosted MCP on x402. Primary install is npx -y @agentpayxyz/mcp-server. Optional JS SDK: @agentpayxyz/sdk. API base: https://api.agentpay.so.
npx -y @agentpayxyz/mcp-server
JS SDK (optional): npm install @agentpayxyz/sdk. There is no Python SDK.
curl -s -X POST https://api.agentpay.so/api/merchants/register \
-H "Content-Type: application/json" \
-d '{ "name": "My Agent", "email": "you@example.com" }'
{
"mcpServers": {
"agentpay": {
"command": "npx",
"args": ["-y", "@agentpayxyz/mcp-server"],
"env": {
"AGENTPAY_API_KEY": "apk_your_key_here",
"AGENTPAY_MERCHANT_ID": "mer_your_merchant_id"
}
}
}
}
https://api.agentpay.so/api/mcp Authorization: Bearer apk_your_key_here
Mint a short-lived host token:
curl -X POST https://api.agentpay.so/api/mcp/tokens \
-H "Authorization: Bearer apk_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "audience": "openai", "ttlSeconds": 3600 }'
Authority bootstrap and governed access live on the same API host. See QUICKSTART.md Path B and openapi.yaml.
curl -s "https://api.agentpay.so/api/capabilities/authority-bootstrap?principalId=principal_1&subjectType=workspace&subjectRef=my-workbench&workbenchId=my-workbench" \ -H "Authorization: Bearer apk_your_key_here"
London and Bangalore. GDPR. Card and x402/USDC are the advertised rails. Other regional rails stay unpublished until they settle with a receipt.