
Clawswap
Enable AI agents to execute Solana↔Base cross-chain swaps with x402 micropayment settlement using chain keys and RPC endpoints you control.
Overview
ClawSwap MCP is a Build-phase MCP server that lets AI agents perform Solana and Base cross-chain swaps settled with x402 micropayments over stdio.
What is this MCP server?
- Cross-chain swaps between Solana and Base designed for AI agents
- x402 micropayment model for agent-paid swap actions
- npm @clawswap/mcp-server 0.1.5 with stdio transport
- SOLANA_PRIVATE_KEY required for Solana→Base; BASE_PRIVATE_KEY for Base→Solana
- Optional SOLANA_RPC_URL and BASE_RPC_URL for custom RPC endpoints
- Server version 0.1.5
- 2 chains supported: Solana and Base
- 4 documented environment variables for keys and RPC
Community signal: 2 GitHub stars.
What problem does it solve?
Agent workflows that need to pay or rebalance across Solana and Base have no standard MCP surface and end up as fragile custom bridge scripts.
Who is it for?
Indie agent builders testing on-chain payments and cross-chain liquidity on Solana and Base with explicit key management.
Skip if: Users who want custodial fiat trading, multi-chain coverage beyond Solana/Base, or production treasury without security review.
What do I get? / Deliverables
After keys and RPC env vars are set, your agent can invoke ClawSwap tools for directional bridges with micropayment semantics instead of one-off scripts.
- MCP-invokable Solana↔Base swap/bridge actions for agents
- x402-oriented payment flow for agent-initiated swaps
- Configurable RPC endpoints for devnet/mainnet-style setups you choose
Recommended MCP Servers
Journey fit
Build integrations is where you connect agents to on-chain payment and swap infrastructure before you treat money movement as production operations. Integrations fits because the server wraps bridge/swap behavior across two L1/L2 ecosystems with explicit env keys and RPC URLs, not generic app frontend work.
How it compares
On-chain swap MCP with x402 micropayments, not a local docs or media generation server.
Common Questions / FAQ
Who is ClawSwap MCP for?
Developers building AI agents that must swap or bridge assets between Solana and Base using MCP tool calls.
When should I use ClawSwap MCP?
Use it while integrating agent-paid crypto flows in build, after you have test wallets and RPC endpoints and understand bridge risk.
How do I add ClawSwap MCP to my agent?
Install @clawswap/mcp-server, add stdio MCP config, set SOLANA_PRIVATE_KEY (and BASE_PRIVATE_KEY for reverse bridges), and optionally SOLANA_RPC_URL and BASE_RPC_URL.