Overview
What is Clawswap?
Clawswap is an MCP server that enables AI agents to send, swap, and bridge tokens cross-chain between Solana and Base with gasless transactions in one tool call. It handles the entire flow from quote to settlement.
How to use Clawswap?
Install via npx -y @clawswap/mcp-server and configure by setting SOLANA_PRIVATE_KEY and/or BASE_PRIVATE_KEY environment variables. Add to a client’s MCP configuration file (e.g., Claude Desktop, Cursor, Windsurf) or use the provided CLI commands for Claude Code or OpenAI Codex. Then invoke the server’s three tools: clawswap_bridge, clawswap_quote, and clawswap_status.
Key features of Clawswap
- Gasless cross-chain bridging between Solana and Base
- Supports tokens USDC, USDT, SOL, ETH, and WETH
- Automatic quote, payment, signing, submission, and settlement
- Free quote preview without executing a transfer
- Status tracking for initiated bridges
Use cases of Clawswap
- Send stablecoins from Solana to Base in a single command
- Preview bridge costs before executing a transfer
- Transfer native tokens like SOL to ETH cross-chain
- Move tokens between wallets on different chains without manual steps
- Automate cross-chain liquidity management for AI agents
FAQ from Clawswap
What tokens and chains are supported?
Solana: USDC, USDT, SOL. Base: USDC, USDT, ETH, WETH. Bridging is available between Solana and Base.
What are the fees for using Clawswap?
Solana → Base costs $0.50 USDC (paid automatically via x402, gas sponsored by ClawSwap). Base → Solana is free (agent pays ~$0.001 Base gas directly).
What private keys do I need to configure?
SOLANA_PRIVATE_KEY (base58) is needed for Solana→Base transfers. BASE_PRIVATE_KEY (0x-prefixed hex) is needed for Base→Solana transfers. Only keys for the directions you plan to use are required.
How do I check the status of a bridge?
Use the clawswap_status tool with the requestId returned by a previous clawswap_bridge call.
What is the difference between clawswap_bridge and clawswap_quote?
clawswap_quote previews a bridge without executing it (free, no payment), while clawswap_bridge performs the actual transfer, including payment and settlement.