
Clawswap
- 2 repo stars
- Updated February 27, 2026
- WarTech9/clawswap-mcp
ClawSwap MCP is a MCP server that lets AI agents perform Solana and Base cross-chain swaps settled with x402 micropayments over stdio.
About
ClawSwap MCP exposes cross-chain swap flows between Solana and Base so autonomous or assistant-driven agents can move value across chains, with fees handled via x402 micropayments as described in the registry. developers experimenting with agent commerce or treasury automation install @clawswap/mcp-server, configure base58 Solana and hex Base private keys, and point RPC URLs at reliable endpoints. Placement is build / integrations because you are wiring financial primitives into the agent stack, not running mature treasury ops yet. Security posture is advanced: required secrets on disk, irreversible on-chain actions, and bridge risk. Use only with funded test wallets and clear scope. It is specialized swap MCP, not a portfolio analytics dashboard or fiat on-ramp.
- 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
Clawswap by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
claude mcp add --env SOLANA_PRIVATE_KEY=YOUR_SOLANA_PRIVATE_KEY --env BASE_PRIVATE_KEY=YOUR_BASE_PRIVATE_KEY --env SOLANA_RPC_URL=YOUR_SOLANA_RPC_URL --env BASE_RPC_URL=YOUR_BASE_RPC_URL clawswap -- npx -y @clawswap/mcp-serverAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| repo stars | ★ 2 |
|---|---|
| Package | @clawswap/mcp-server |
| Transport | STDIO |
| Auth | Required |
| Last updated | February 27, 2026 |
| Repository | WarTech9/clawswap-mcp ↗ |
What it does
Enable AI agents to execute Solana↔Base cross-chain swaps with x402 micropayment settlement using chain keys and RPC endpoints you control.
Who is it for?
Best when you're testing on-chain payments and cross-chain liquidity on Solana and Base with explicit key management.
Skip if: Skip if you want custodial fiat trading, multi-chain coverage beyond Solana/Base, or production treasury without security review.
What you get
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
By the numbers
- Server version 0.1.5
- 2 chains supported: Solana and Base
- 4 documented environment variables for keys and RPC
README.md
@clawswap/mcp-server
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).
What can it do?
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"
- "Move my stablecoins cross-chain"
The server handles the entire flow: quote → payment → signing → submission → settlement.
Installation
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": ["-y", "@clawswap/mcp-server"],
"env": {
"SOLANA_PRIVATE_KEY": "your-base58-solana-private-key",
"BASE_PRIVATE_KEY": "0x-your-hex-base-private-key"
}
}
}
}
Claude Code
claude mcp add clawswap -- npx -y @clawswap/mcp-server
Then set environment variables:
export SOLANA_PRIVATE_KEY="your-base58-solana-private-key"
export BASE_PRIVATE_KEY="0x-your-hex-base-private-key"
Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": ["-y", "@clawswap/mcp-server"],
"env": {
"SOLANA_PRIVATE_KEY": "your-base58-solana-private-key",
"BASE_PRIVATE_KEY": "0x-your-hex-base-private-key"
}
}
}
}
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": ["-y", "@clawswap/mcp-server"],
"env": {
"SOLANA_PRIVATE_KEY": "your-base58-solana-private-key",
"BASE_PRIVATE_KEY": "0x-your-hex-base-private-key"
}
}
}
}
OpenAI Codex
codex mcp add clawswap -- npx -y @clawswap/mcp-server
Or add to ~/.codex/config.toml:
[mcp_servers.clawswap]
command = "npx"
args = ["-y", "@clawswap/mcp-server"]
env = { SOLANA_PRIVATE_KEY = "your-base58-solana-private-key", BASE_PRIVATE_KEY = "0x-your-hex-base-private-key" }
Antigravity
Add to ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": ["-y", "@clawswap/mcp-server"],
"env": {
"SOLANA_PRIVATE_KEY": "your-base58-solana-private-key",
"BASE_PRIVATE_KEY": "0x-your-hex-base-private-key"
}
}
}
}
Smithery
npx -y @smithery/cli install @clawswap/mcp-server --client claude
Supports multiple clients: claude, cursor, windsurf, cline, vscode, and more.
Tools
clawswap_bridge
Bridge 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_quote
Preview a bridge quote without 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 | 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.
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
License
MIT
Recommended MCP Servers
How it compares
On-chain swap MCP with x402 micropayments, not a local docs or media generation server.
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.