MilliGate (x402 Crypto Paywall)
VerifiedFeaturedRemoteAbout MilliGate (x402 Crypto Paywall)
MilliGate is a remote MCP server that gates tool execution and data access behind USDC micro-payments on Base L2. It is aimed at developers monetizing agent-facing services, with payment verification handled on-chain.
Key features
- 01HTTP 402 payment gate
- 02USDC settlement on Base L2
- 03On-chain payment receipt validation
- 04SSE connection and JSON-RPC tools
- 05Public metadata manifest
Use cases
- 01Charging AI agents for API access
- 02Monetizing remote tool execution
MCP support
It exposes a remote MCP server over SSE, with JSON-RPC commands received at `/message`. Clients must provide proof of an on-chain payment to open access.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.milligate.io/sseclaude mcp add --transport sse milligate-x402-crypto-paywall https://mcp.milligate.io/sse{"mcpServers":{"milligate-x402-crypto-paywall":{"type":"sse","url":"https://mcp.milligate.io/sse"}}}Open in Cursor{"servers":{"milligate-x402-crypto-paywall":{"type":"sse","url":"https://mcp.milligate.io/sse"}}}Open in VS Code{"mcpServers":{"milligate-x402-crypto-paywall":{"type":"sse","url":"https://mcp.milligate.io/sse"}}}{"mcpServers":{"milligate-x402-crypto-paywall":{"serverUrl":"https://mcp.milligate.io/sse"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
1| Parameter | Type | Required | Description |
|---|---|---|---|
| task | string | Yes | The task payload to execute. |
Details
From the project READMEMilliGate Sovereign MCP Server
MilliGate is a Model Context Protocol (MCP) infrastructure and tooling server built specifically for autonomous agents (M2M - Machine-to-Machine). It operates under the sovereign HTTP 402 micro-settlement standard, requiring on-chain micro-payments to unlock data flows and tool execution.
Architecture and Economic Flow
MilliGate eliminates middlemen and centralized APIs by decentralizing access to compute resources and data directly via Base L2:
- Discovery: Agents discover the server and its available tools through the public metadata manifest (
/.well-known/glama.json). - Blocked Access (HTTP 402): When attempting to connect to the SSE endpoint (
/sse), the server responds instantly with a402 Payment Requiredstatus, providing the invoice, fee amount, and treasury wallet address. - On-Chain Settlement: The agent executes an USDC transfer on Base L2.
- Validation and Connection: The agent retries the request including the transaction hash in the
X-Payment-Proofheader. The middleware validates the receipt directly on-chain via the Base RPC and establishes the bidirectional channel.
Core Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /sse | Server-Sent Events stream (Protected by HTTP 402 Tollgate) |
POST | /message | JSON-RPC command receiver for tool execution |
GET | /.well-known/glama.json | Public metadata manifest for indexers and directories |
🚀 How to Connect (Remote Server)
MilliGate operates as a remote MCP server. You do not need to install it locally to connect your AI agents. Point your MCP client to:
SSE Endpoint: https://mcp.milligate.io/sse
🤖 AI Agent Payment Instructions (MilliGate 402 Tollgate)
This MCP server is protected by a Web3 HTTP 402 Tollgate. To execute commands, you must provide cryptographic proof of payment on the Base L2 network.
Transaction Parameters:
- Network: Base L2 (Chain ID:
8453) - Currency: USDC (Official Token:
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913) - Price: 0.05 USDC (50000 in raw integer, as USDC uses 6 decimals)
- Tollgate Contract:
0x1AE373b13577768ee43c81BEe5AD264104D67Cc4
Execution Steps:
- Call
approve(0x1AE373b13577768ee43c81BEe5AD264104D67Cc4, 50000)on the USDC contract. - Call
payAndOpen()on the Tollgate Contract. - Send the API request with header:
X-Payment-Proof: <TX_HASH>
🛠 Setup and Self-Hosting (For Developers)
If you want to run and customize your own instance of the MilliGate middleware:
Prerequisites
- Node.js (v18+)
- PM2 (for production process management)
- Reverse tunnel (Cloudflare Tunnel recommended)
1. Clone and Install Dependencies
git clone [https://github.com/milligate-admin/milligate-mcp.git](https://github.com/milligate-admin/milligate-mcp.git)
cd milligate-mcp
npm install
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.