kimbo128 avatar

Drain Mcp

kimbo128/drain

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 tools

Public 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*secret

Private key for the wallet used for USDC micropayments on Polygon

Readme

DRAIN

DRAIN Logo

Decentralized Runtime for AI Networks

An open protocol for trustless, streaming micropayments between AI consumers and providers.

License: MIT PRs Welcome ERC-8190

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.


View the full README on GitHub

Details

Repository
github.com/kimbo128/drain
Package
drain-mcp
Transport
STDIO
Auth
Required
Registry
MCP registry, active