http 402 payment-gated api request execution
Executes HTTP requests to APIs protected by HTTP 402 Payment Required status codes, automatically detecting payment requirements and routing requests through the MCP server's payment settlement layer. The server intercepts 402 responses, extracts payment metadata (amount, recipient, token), and initiates on-chain USDC micropayments on Base L2 before retrying the original request with proof-of-payment headers. This enables seamless agent-to-API interactions without manual payment handling or custodial intermediaries.
Unique: Implements transparent HTTP 402 payment interception at the MCP protocol layer, allowing any MCP-compatible agent (Claude, LangChain, CrewAI) to access paid APIs without SDK changes or wallet management code. Uses Base L2 for sub-cent settlement costs and non-custodial architecture where agents control their own signing keys rather than delegating to a payment processor.
vs alternatives: Unlike Cloudflare Pay-Per-Crawl (proprietary, Cloudflare-only) or Tollbit (requires API provider integration), works on any host and settles directly on-chain with zero platform fees, giving agents true ownership of payment flows.
non-custodial usdc micropayment settlement on base l2
Manages cryptographic signing and submission of USDC transfers to Base L2 blockchain without holding agent private keys or funds in escrow. The server accepts payment requests with recipient address and amount, constructs ERC-20 transfer transactions, signs them using the agent's provided key material (or external signer), and broadcasts to Base L2 RPC. Settlement completes on-chain with full transparency and auditability, with no platform-controlled custody or fee extraction.
Unique: Implements non-custodial payment settlement where the MCP server never holds or controls agent funds — only constructs and signs transactions using agent-provided key material. Uses Base L2 instead of mainnet Ethereum to achieve sub-cent transaction costs (~$0.001 per transfer) while maintaining full on-chain settlement and auditability.
vs alternatives: Eliminates counterparty risk vs custodial payment processors (Stripe, PayPal) by settling directly on-chain; cheaper than mainnet Ethereum by 100-1000x due to Base L2 rollup architecture; more transparent than traditional APIs with hidden fees.
transaction history and audit logging
Maintains immutable transaction history of all USDC payments and API calls, logging transaction hash, timestamp, amount, recipient, and HTTP request/response details. The server stores logs in a queryable format (JSON, database) accessible through MCP tools, enabling agents and operators to audit spending, debug failed payments, and reconstruct payment flows. Logs include both on-chain transaction data and off-chain HTTP metadata.
Unique: Maintains unified transaction history combining on-chain USDC transfers with off-chain HTTP metadata, enabling full-stack audit trails. Logs are queryable through MCP tools, allowing agents to access their own transaction history without external tools.
vs alternatives: More comprehensive than blockchain-only transaction history by including HTTP request/response details; more accessible than requiring manual blockchain queries.
configuration management for payment parameters and api endpoints
Provides centralized configuration for payment parameters (USDC amount, recipient address, spending limits), API endpoint mappings, and RPC provider settings. Configuration is loaded from environment variables, JSON files, or environment-specific profiles, allowing operators to adjust payment rules without restarting the MCP server. Supports hot-reloading of configuration changes for zero-downtime updates.
Unique: Centralizes payment and RPC configuration in a single source of truth with support for environment-specific profiles and hot-reloading. Allows operators to adjust payment rules without code changes or server restarts.
vs alternatives: More flexible than hardcoded payment parameters; simpler than requiring agents to manage configuration themselves.
mcp protocol integration for claude, cursor, langchain, and crewai
Exposes HTTP 402 payment handling and USDC settlement as MCP tools that Claude, Cursor, LangChain, and CrewAI can discover and invoke through the standard Model Context Protocol. The server implements MCP tool schema definitions for payment-gated requests and settlement operations, allowing agents to treat paid API access as first-class capabilities alongside native tools. Integration requires no agent-side SDK changes — agents interact via standard MCP tool-calling semantics.
Unique: Implements MCP as the primary integration surface, allowing agents to access paid APIs through standard tool-calling semantics without SDK-specific code. Supports multiple agent frameworks (Claude, Cursor, LangChain, CrewAI) through a single MCP server, reducing integration surface area and enabling cross-framework agent composition.
vs alternatives: More flexible than framework-specific SDKs because MCP is protocol-agnostic; agents can switch frameworks without rewriting payment logic. Simpler than building custom API wrappers for each agent framework.
automatic http 402 response detection and payment metadata extraction
Intercepts HTTP responses with 402 Payment Required status codes and extracts payment metadata from response headers (x402-amount, x402-recipient, x402-token) to determine payment requirements. The server parses metadata, validates format and values, and automatically initiates payment settlement without requiring the agent to manually inspect headers or construct payment requests. This enables transparent payment handling where agents see paid API access as a seamless extension of normal HTTP requests.
Unique: Implements automatic 402 detection at the HTTP layer with strict metadata parsing, allowing agents to treat payment-gated APIs identically to free APIs. Uses header-based metadata (x402-*) rather than response body parsing, enabling payment requirements to be communicated without changing API response schemas.
vs alternatives: More transparent than requiring agents to check response status codes manually; more flexible than hardcoding payment amounts per API endpoint.
multi-framework agent orchestration with unified payment context
Manages payment state and context across multiple agent frameworks (Claude, LangChain, CrewAI) executing in the same workflow, ensuring consistent wallet management, balance tracking, and transaction history. The server maintains a unified payment ledger accessible to all agents, preventing double-spending and enabling cross-agent payment coordination. Agents can query remaining balance, transaction history, and payment status through MCP tools without framework-specific code.
Unique: Implements a unified payment ledger that abstracts away framework differences, allowing Claude, LangChain, and CrewAI agents to coordinate on shared payment budgets without framework-specific integration code. Maintains consistent state across heterogeneous agent types through a single MCP interface.
vs alternatives: Simpler than building separate payment systems for each framework; enables true multi-agent coordination vs isolated per-framework payment handling.
proof-of-payment header generation and validation
Generates cryptographic proof-of-payment headers (e.g., transaction hash, signature) after successful USDC settlement and attaches them to retry requests, allowing target APIs to verify that payment was completed. The server constructs headers containing transaction hash, block number, and optional signature proof, which APIs can validate against Base L2 blockchain state. This enables APIs to trust that payment occurred without querying the blockchain themselves.
Unique: Generates lightweight proof-of-payment headers that APIs can validate without querying the blockchain, reducing latency for payment verification. Uses transaction hash and block number as proof, with optional cryptographic signatures for stronger guarantees.
vs alternatives: Faster than requiring APIs to query blockchain for every payment; more trustworthy than relying on MCP server claims alone if signatures are included.
+4 more capabilities