MCP Server

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:

Smithery

Supports multiple clients: claude, cursor, windsurf, cline, vscode, and more .

Tools

clawswap_bridge

Send, transfer, swap, or bridge tokens cross-chain. Handles quoting, payment, signing, and submission automatically.

ParameterTypeRequiredDescription
amountstringYesHuman-readable amount, e.g. "100", "0.5"
tokenstringYesToken symbol: USDC, USDT, SOL, ETH, WETH
from"solana" | "base"YesSource chain
to"solana" | "base"YesDestination chain
recipientstringNoDestination address (defaults to agent's own)
destinationTokenstringNoDestination token (defaults to same or USDC)
slippagenumberNoSlippage 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.

ParameterTypeRequiredDescription
requestIdstringYesThe requestId from clawswap_bridge

Environment Variables

VariableRequiredDescription
SOLANA_PRIVATE_KEYFor Solana→BaseBase58-encoded Solana private key
BASE_PRIVATE_KEYFor Base→Solana0x-prefixed hex Base/EVM private key
SOLANA_RPC_URLNoCustom Solana RPC (default: mainnet)
BASE_RPC_URLNoCustom 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