Agent Integration
Give your AI agent cross-chain transfer tools with one config entry. No code required.
What Can It Do?
Once installed, ask your AI agent any of these:
"Send 10 USDC from Solana to Base"
"How much would it cost to bridge 100 USDC to Base?"
"Transfer my SOL to Base as ETH"
"Swap 50 USDT from Base to Solana"
The MCP server handles the entire flow: quote → payment → signing → submission → settlement.
Installation
The @clawswap/mcp-server package works with any MCP-compatible AI tool. Choose your platform:
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Then set environment variables:
Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
OpenAI Codex
Or add to ~/.codex/config.toml:
Antigravity
Add to ~/.gemini/antigravity/mcp_config.json:
Tools
clawswap_bridge
Send, transfer, swap, or bridge tokens cross-chain. Handles quoting, payment, signing, and submission automatically.
| Parameter | Type | Required | Description |
|---|---|---|---|
| amount | string | Yes | Human-readable amount, e.g. "100", "0.5" |
| token | string | Yes | Token symbol: USDC, USDT, SOL, ETH, WETH |
| from | "solana" | "base" | Yes | Source chain |
| to | "solana" | "base" | Yes | Destination chain |
| recipient | string | No | Destination address (defaults to agent's own) |
| destinationToken | string | No | Destination token (defaults to same or USDC) |
| slippage | number | No | Slippage tolerance 0-1 (default 0.01) |
clawswap_quote
Preview costs before executing. Free, no payment required. Same parameters as clawswap_bridge minus recipient.
clawswap_status
Check the status of a previously initiated bridge.
| Parameter | Type | Required | Description |
|---|---|---|---|
| requestId | string | Yes | The requestId from clawswap_bridge |
Environment Variables
| Variable | Required | Description |
|---|---|---|
| SOLANA_PRIVATE_KEY | For Solana→Base | Base58-encoded Solana private key |
| BASE_PRIVATE_KEY | For Base→Solana | 0x-prefixed hex Base/EVM private key |
| SOLANA_RPC_URL | No | Custom Solana RPC (default: mainnet) |
| BASE_RPC_URL | No | Custom Base RPC (default: mainnet) |
You only need keys for the direction(s) you want to use. The server starts with whatever is configured.
Fees
- →Solana → Base: $0.50 USDC, paid automatically via x402 protocol. Gas sponsored by ClawSwap.
- →Base → Solana: Free. Agent pays ~$0.001 Base gas directly.
Supported Tokens
- Solana: USDC, USDT, SOL
- Base: USDC, USDT, ETH, WETH
Example: Agent Conversation