Cross-chain swaps between Solana and Base for AI agents paid for via via x402 micropayments.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Send, swap, and bridge tokens cross-chain between Solana and Base β gasless, in one tool call. Built for AI agents using the Model Context Protocol (MCP).
Ask your AI agent any of these:
The server handles the entire flow: quote β payment β signing β submission β settlement.
Add to your claude_desktop_config.json:
Then set environment variables:
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
Add to ~/.codeium/windsurf/mcp_config.json:
Or add to ~/.codex/config.toml:
Add to ~/.gemini/antigravity/mcp_config.json:
Supports multiple clients: claude, cursor, windsurf, cline, vscode, and more.
clawswap_bridgeBridge tokens between Solana and Base. Handles the entire flow 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_quotePreview a bridge quote without executing. Free, no payment required.
Same parameters as clawswap_bridge minus recipient.
clawswap_statusCheck the status of a previously initiated bridge.
| Parameter | Type | Required | Description |
|---|---|---|---|
requestId | string | yes | The requestId from clawswap_bridge |
| 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 | Solana RPC (default: https://api.mainnet-beta.solana.com) |
BASE_RPC_URL | No | Base RPC (default: https://mainnet.base.org) |
You only need keys for the direction(s) you want to bridge. The server starts with whatever is configured.
MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/clawswap)<a href="https://allmcps.com/mcp/clawswap"><img src="https://allmcps.com/api/badge/clawswap?style=directory" alt="Clawswap on AllMCPs" /></a>