Pay for AI inference with USDC micropayments on Polygon. No API keys needed.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Decentralized Runtime for AI Networks
An open protocol for trustless, streaming micropayments between AI consumers and providers.
ERC-8190: This protocol is being formalized as an Ethereum standard โ Payment Channels with Signed Vouchers. The ERC defines the minimal interface for unidirectional payment channels using EIP-712 signed vouchers, complementary to ERC-8183 (Agentic Commerce).
| ๐ฆ 2 On-Chain TXs | โก Zero Latency | ๐ธ ~$0.04 Total Gas | ๐ No API Keys |
|---|---|---|---|
| Open + Close only | Off-chain vouchers | 500x cheaper at scale | Cryptographic auth |
Existing decentralized AI protocols require holding volatile tokens, creating speculation dynamics that overwhelm utility. Meanwhile, 78% of the world lacks credit cards, and AI agents can't have bank accounts.
DRAIN fills this gap: stablecoin micropayments without tokens, complexity, or intermediaries.
| Problem | DRAIN Solution |
|---|---|
| Token volatility | USDC-only, predictable pricing |
| High fees | ~$0.02 per tx on Polygon (varies: $0.015-0.025) |
| AI agents can't pay | First-class programmatic support |
| Credit card barriers | Permissionless crypto access |
DRAIN enables permissionless, pay-per-token AI inference without intermediaries. Users open payment channels with USDC, stream requests to any compatible provider, and settle on-chain only when needed.
Core Principles:
DRAIN is like a prepaid card for AI: deposit USDC, use it across requests, withdraw the remainder.
| Role | What They Do | On-Chain Actions |
|---|---|---|
| Consumer | Pays for AI services | open (deposit), close (refund) |
| Provider | Delivers AI responses | claim (withdraw earnings) |
The consumer sets the channel duration when opening (e.g., 24h). But providers control their requirements:
| Provider Can... | How |
|---|---|
| Require minimum duration | Reject vouchers from channels < X hours |
| Recommend duration | Document in API: "We recommend 24h channels" |
| Claim anytime | No deadline until consumer calls close() |
Key insight: Even after channel expiry, the provider can claim as long as the consumer hasn't closed. The consumer must actively call close() โ it's not automatic.
Each voucher contains the total amount spent, not the increment:
Provider only needs to claim the last voucher to receive full payment.
| Asset | Network | Why |
|---|---|---|
| USDC | Polygon | Stable ($1), liquid ($500M+), low fees (~$0.02/tx, varies: $0.015-0.025) |
USDC on Polygon can be bridged from Ethereum, Base, Arbitrum via Circle CCTP.
The official DRAIN marketplace is Handshake58 - a provider directory where AI agents can discover and pay for AI inference.
| Link | Description |
|---|---|
| https://www.handshake58.com | Main marketplace |
| https://www.handshake58.com/for-agents | Quick start for AI agents |
| https://www.handshake58.com/api/mcp/providers | Provider discovery API |
Install the MCP Server and start using AI with crypto payments:
Configure in Claude Desktop or Cursor:
That's it! The MCP server auto-discovers providers from Handshake58.
| URL | Purpose |
|---|---|
/for-agents | Static, crawlable agent page |
/api/agent | Quick discovery JSON |
/llms.txt | 25-line agent instruction |
/skill.md | Full documentation (MCP first) |
DRAIN implements ERC-8190: Payment Channels with Signed Vouchers โ an Ethereum standard for streaming micropayments via EIP-712 signed vouchers.
| Component | Description | Standard |
|---|---|---|
| Smart Contract | Escrow and settlement logic (IPaymentChannel) | ERC-8190 (normative) |
| Voucher Format | EIP-712 typed signatures for off-chain payments | ERC-8190 (normative) |
| Service Interaction | HTTP 402 discovery, cost reporting, error codes | ERC-8190 (RECOMMENDED) |
| API Standard | OpenAI-compatible interface with payment headers | Application layer |
The protocol intentionally excludes provider discovery, reputation systems, dispute resolution, and governance. See ERC-8183 (Agentic Commerce) and ERC-8004 (Trustless Agents) for complementary standards.
Full specification: See contracts/ for the Solidity implementation and the ERC-8190 draft for the formal standard.
| Party | Protected Against | How |
|---|---|---|
| Consumer | Overcharging | Only signs amounts they agree to |
| Consumer | Non-delivery | Stops signing, refunds after expiry |
| Provider | Overspending | amount โค deposit enforced on-chain |
| Provider | Double-spend | USDC locked in contract, not wallet |
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/drain-mcp)<a href="https://allmcps.com/mcp/drain-mcp"><img src="https://allmcps.com/api/badge/drain-mcp?style=directory" alt="Drain MCP on AllMCPs" /></a>