Clawswap MCP Server

Cross-chain swaps between Solana and Base for AI agents paid for via via x402 micropayments.

Local serverstdio

What is the Clawswap MCP server?

Most payments and commerce work still happens through a UI a human drives. Clawswap MCP server moves it into the conversation instead. Cross-chain swaps between Solana and Base for AI agents paid for via via x402 micropayments.

The short version

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).

The tools it exposes

The server publishes 7 tools. What each one is for:

  • Cursor — The Cursor tool exposed by this server
  • Windsurf — The Windsurf tool exposed by this server
  • Antigravity — The Antigravity tool exposed by this server
  • Smithery — Supports multiple clients: claude, cursor, windsurf, cline, vscode, and more
  • clawswap_bridge — Bridge tokens between Solana and Base. Handles the entire flow automatically
  • clawswap_quote — Preview a bridge quote without executing. Free, no payment required
  • clawswap_status — The clawswap_status tool exposed by this server

What it needs from you

Configuration is passed through the environment: SOLANA_PRIVATE_KEY, BASE_PRIVATE_KEY, SOLANA_RPC_URL, BASE_RPC_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

@clawswap/mcp-server on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

How it compares

Plenty of payments and commerce servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Clawswap's toolset — Cursor, Windsurf, Antigravity and 4 more — is a fair guide to whether it matches your workflow. It is maintained by WarTech9; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
CursorThe Cursor tool exposed by this server.
WindsurfThe Windsurf tool exposed by this server.
AntigravityThe Antigravity tool exposed by this server.
SmitherySupports multiple clients: claude, cursor, windsurf, cline, vscode, and [more](https://smithery.ai).
clawswap_bridgeBridge tokens between Solana and Base. Handles the entire flow automatically.
clawswap_quotePreview a bridge quote without executing. Free, no payment required.
clawswap_statusThe clawswap_status tool exposed by this server.

How to install the Clawswap MCP server

{
  "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"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
SOLANA_PRIVATE_KEYCredential the server authenticates with.Yes
BASE_PRIVATE_KEYCredential the server authenticates with.Yes
SOLANA_RPC_URLEndpoint or connection string the server talks to.Yes
BASE_RPC_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Clawswap to Cursor.
  • Use Clawswap to Windsurf.
  • Use Clawswap to Antigravity.

Frequently asked questions

It connects Clawswap to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (Cursor, Windsurf, Antigravity, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Clawswap directly.