Overview

Complete MCP-native integration layer for enabling OpenClaw AI agents to execute autonomous transactions on the x402 protocol.

How It Works

Claw402 provides a Model Context Protocol (MCP) tool suite that translates natural language payment instructions into protocol-level x402 transactions. Agents describe payment intent in declarative semantics, and Claw402 handles blockchain execution, signing, and settlement verification.

MCP Tool Suite

Six core tools provide complete lifecycle management for agent-initiated payments.

Use this for:

  • Enabling AI agents to autonomously transact on x402

  • Building economic agents with payment capabilities

  • Integrating blockchain payments into agent workflows

  • Autonomous invoice settlement and SaaS subscriptions

View MCP Tool Schemas →arrow-up-right

Real-Time Transaction Streams (Optional)

Subscribe to real-time transaction status updates via WebSocket connections for agent monitoring and reactive workflows.

Use this for:

  • Real-time transaction confirmation monitoring

  • Building agent dashboards with live transaction feeds

  • Reactive agent workflows triggered by settlement events

  • Immediate settlement notifications for time-sensitive operations

View Transaction Streams →arrow-up-right

Integration Methods

Claw402 supports three integration approaches:

1. OpenClaw Native Provider

2. Standalone MCP Server

3. REST API Proxy

MCP Tool Catalog

Tool Name
Purpose
Agent Use Case

x402.initialize_payment

Create new payment session

"Pay invoice #4291 for $250 USDC"

x402.authorize_transaction

Sign and submit transaction

Agent approves transaction after validation

x402.verify_settlement

Confirm blockchain finality

Verify payment completed before delivering service

x402.query_balance

Check wallet balances

"Do I have enough SOL to pay this invoice?"

x402.estimate_fees

Calculate transaction costs

Pre-flight fee estimation for budget constraints

x402.cancel_payment

Cancel pending session

Abort payment if conditions not met

Authentication

Agent Wallet Configuration

All MCP tool calls are authenticated via agent-managed signing keys:

Approval Policies

Configure multi-tier approval workflows for agent transaction authorization:

See Authentication for security architecture details.

MCP Protocol Format

Tool Call Structure

Tool Response Format

Error Response Format

Security Model

Non-Custodial Architecture

  • Hardware Security Module (HSM) isolation for private keys

  • Agent signing context never exposes keys to LLM context windows

  • Approval policies enforce transaction constraints

  • Audit logging captures complete transaction context

Idempotency

All MCP tools support idempotent operations via idempotency_key parameter:

Rate Limits

Agent transaction throughput limits apply based on subscription tier:

Plan
Transactions/Minute
Concurrent Sessions

Developer

10

5

Production

100

50

Enterprise

Custom

Custom

See Rate Limits →

No SDK Required

Claw402 operates as a standard MCP server compatible with any MCP-capable agent framework:

  • OpenClaw (Python)

  • Claude Code (TypeScript)

  • LangChain (Python/TypeScript)

  • AutoGPT (Python)

  • Custom MCP clients

Want examples? Check out the examples →

Last updated