Drain MCP Server

Pay for AI inference with USDC micropayments on Polygon. No API keys needed.

Local serverstdioTypeScript

What is the Drain MCP Server?

Pay for AI inference with USDC micropayments on Polygon. No API keys needed.

The short version

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

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Drain MCP Server

claude mcp add drain --env DRAIN_PRIVATE_KEY=your-value --env OPENAI_API_KEY=your-value --env PROVIDER_PRIVATE_KEY=your-value -- npx -y drain-mcp

Configuration

VariableDescriptionRequired
DRAIN_PRIVATE_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
PROVIDER_PRIVATE_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Drain to Minimal.”
  • “Use Drain to Permissionless.”
  • “Use Drain to Trustless.”

Frequently asked questions

Pay for AI inference with USDC micropayments on Polygon. No API keys needed. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.