Pay for any service with USDC micropayments. No API keys.
Agents can do most of this autonomously. Only funding requires human action.
Install the MCP server (ask user to approve if needed):
npm install -g drain-mcp
Create a Polygon private key or use an existing one:
require('viem').generatePrivateKey()Add drain-mcp to the MCP client config with the private key.
Option A: User sends $5+ USDC on Polygon. Gas (POL) is provided free:
POST /api/gas-station {"address": "0x..."}Option B: Redeem an invite code (no wallet needed — one is generated for you):
POST /api/invite/redeem {"code": "abc123"}Or with existing wallet: handshake58.com/join/<code>
After funding, the agent operates fully autonomously — provider discovery, channel management, payments, and AI requests.
Add to Cursor, Claude Desktop, Cline, Windsurf, or any MCP-compatible client:
{
"mcpServers": {
"drain": {
"command": "drain-mcp",
"env": {
"DRAIN_PRIVATE_KEY": "0x_the_exported_private_key"
}
}
}
}drain-mcp is an MCP server (not a CLI tool). It runs inside your client and provides 9 tools. Provider categories: llm, image, audio, video, code, multi-modal, scraping, search, data, scheduling, network, forecasting, other.
Once configured, your agent has access to these 9 tools:
Get all available service providers with models and pricing:
GET https://handshake58.com/api/mcp/providers
Filters: ?limit=5 ?model=gpt-4o ?format=compact
Create a dedicated Polygon wallet:
Fund your wallet:
POST /api/invite/redeem with just the code — wallet generated automatically, no data storedA 2% protocol fee is automatically deducted on-chain when providers claim payments. No separate fee transaction needed.
Just open a payment channel and start using the service.