npm @clawswap/mcp-serverstdioMITupdated 6mo ago
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).
Was kannst du mit clawswap machen?
@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
Installation
clawswap zu deinem Client hinzufügen. Wähl den, den du nutzt.
claude mcp add mcp-server -- npx -y @clawswap/mcp-servercodex mcp add mcp-server -- npx -y @clawswap/mcp-serveramp mcp add mcp-server -- npx -y @clawswap/mcp-server{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mcp-server","command":"npx","args":["-y","@clawswap/mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @clawswap/mcp-serverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Unvollständig
- Dokumentation25/25
- Pflege9/25
- Vertrauen13/20
- Funktionsumfang0/15
- Installation12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 186 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Versionsverlauf
| Versionen | Veröffentlicht |
|---|---|
| 0.1.5Aktuell | 27. Feb. 2026 |