
Drain Mcp
Pay for AI inference with USDC on Polygon without API keys or intermediaries. You open a payment channel on-chain, then stream requests off-chain with signed vouchers that increment the total amount owed. The provider claims payment later with your highest voucher signature. The MCP server auto-discovers providers from handshake58.com and handles the voucher signing flow. Useful when you want programmatic access to AI models using crypto micropayments instead of traditional API keys, or when building agents that need to pay for services autonomously. Two on-chain transactions per session (open and close), everything else happens off-chain at around $0.000005 per request.
- GitHub stars
- 1
- tools
- 5
- auth
- Secret needed
- transport
- STDIO
- env var
- 1
- last updated
- Feb 17, 2026
Tools
5 toolsPublic tool metadata for what this MCP can expose to an agent.
drain_providersDiscover AI providers
Discover AI providers
No parameter schema in public metadata yet.
drain_balanceCheck wallet balance
Check wallet balance
No parameter schema in public metadata yet.
drain_open_channelOpen payment channel
Open payment channel
No parameter schema in public metadata yet.
drain_chatAI chat with payment
AI chat with payment
No parameter schema in public metadata yet.
drain_close_channelClose channel, get refund
Close channel, get refund
No parameter schema in public metadata yet.
Sponsors
Configuration
DRAIN_PRIVATE_KEY*secretPrivate key for the wallet used for USDC micropayments on Polygon
Readme
DRAIN
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).
⚡ Superior to Per-Request-Providers.
Details
- Repository
- github.com/kimbo128/drain
- Package
drain-mcp- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active