Clawswap logo

Clawswap

Bridge, swap, and transfer supported tokens between Solana and Base through MCP tools and x402 payments.

Install Clawswap

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "clawswap": {
      "command": "npx",
      "args": [
        "-y",
        "@clawswap/mcp-server"
      ],
      "env": {
        "SOLANA_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "BASE_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "SOLANA_RPC_URL": "YOUR_VALUE_HERE",
        "BASE_RPC_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env SOLANA_PRIVATE_KEY=YOUR_VALUE_HERE --env BASE_PRIVATE_KEY=YOUR_VALUE_HERE --env SOLANA_RPC_URL=YOUR_VALUE_HERE --env BASE_RPC_URL=YOUR_VALUE_HERE --transport stdio clawswap -- npx -y @clawswap/mcp-server

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @clawswap/mcp-server

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The clawswap MCP server lets AI agents quote, execute, and track token bridges between Solana and Base. It runs as an npm-based stdio server, using configured chain private keys to sign transactions and handling quoting, x402 payment, submission, and settlement. Use it when an agent needs to move supported assets across these two networks, while quote requests remain free and execution fees depend on direction.

Use cases

  • Quote the cost of moving USDC between Solana and Base
  • Bridge SOL from Solana to Base as ETH
  • Transfer stablecoins to a specified destination address
  • Check the settlement status of a submitted bridge

Key features

  • Cross-chain transfers between Solana and Base
  • Free bridge quote previews
  • x402 payment handling for Solana-to-Base transfers
  • Bridge request status tracking
  • Configurable destination token and slippage
  • Optional custom Solana and Base RPC endpoints

Tools3

What Clawswap lets your agent do. Expand a tool for its parameters.

Self-reported~60 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/19 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @clawswap/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads328Package downloads in the last 30 days.
Last commit9mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed3Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Clawswap works

What clawswap does

The clawswap MCP server exposes cross-chain token operations for Solana and Base through three MCP tools. Agents can request a quote, initiate a bridge, and check the progress of a previously submitted request. Supported source and destination assets include USDC, USDT, SOL, ETH, and WETH, with availability depending on the chain.

The bridge operation accepts a human-readable amount, source chain, destination chain, and token. An optional recipient can direct the destination funds to another address; otherwise, the agent's own address is used. Agents can also select a different destination token and set slippage from 0 to 1. If no destination token is supplied, the server uses the same token where possible or USDC by default.

How it works

A bridge request follows a quote, payment, signing, submission, and settlement flow. The server handles these stages as part of the bridge tool rather than requiring the agent to call separate payment or transaction systems. The response includes a request ID that can be passed to the status tool for later tracking.

The quote tool uses the bridge parameters without executing a transfer. It does not require payment, making it suitable for checking estimated costs before initiating a transaction. Execution on the Solana-to-Base route costs $0.50 USDC through x402, with gas sponsored by ClawSwap. Base-to-Solana transfers are free from the service's stated fee, but the agent pays approximately $0.001 in Base gas directly.

Setup and configuration

Install the package through npm when configuring an MCP client:

Terminal
npx -y @clawswap/mcp-server

The clawswap MCP server uses SOLANA_PRIVATE_KEY for transfers originating on Solana and BASE_PRIVATE_KEY for transfers originating on Base. The Solana key must be Base58 encoded; the Base key must be a 0x-prefixed hexadecimal EVM private key. Only the key for the direction an agent needs is required, and the process can start with whichever supported credentials are configured.

SOLANA_RPC_URL and BASE_RPC_URL are optional overrides. If they are not set, the server uses Solana mainnet at https://api.mainnet-beta.solana.com and Base at https://mainnet.base.org.

The README provides configuration examples for Claude Desktop, Claude Code, Cursor, Windsurf, and Codex. Smithery installation is also documented, with client options including Claude, Cursor, Windsurf, Cline, and VS Code. Store private keys in the client's environment configuration and avoid exposing them in prompts or source control.

Tools and capabilities

  • clawswap_bridge executes a transfer between Solana and Base. It accepts amount, token, from, and to, plus optional recipient, destination token, and slippage values.
  • clawswap_quote previews a bridge quote with the same inputs except for the recipient. It does not execute or charge for the request.
  • clawswap_status checks a bridge using the requestId returned by an earlier bridge call.

The clawswap MCP server supports USDC, USDT, and SOL on Solana, and USDC, USDT, ETH, and WETH on Base. It is limited to the documented chains and token set.

Limitations and notes

Credentials determine which direction can be used: Solana-to-Base requires the Solana private key, while Base-to-Solana requires the Base private key. The server does not document support for other chains or tokens. Bridge execution involves network transactions and should be treated as an operation requiring carefully validated amounts, addresses, and slippage settings. The package is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Clawswap

clawswap is an MCP server that connects AI agents to Solana and Base for cross-chain token operations. Its main tools quote bridge costs, execute transfers, and check request status. It supports assets such as USDC, USDT, SOL, ETH, and WETH, with private keys supplied through environment variables for signing.

Install it with `npx -y @clawswap/mcp-server` through your MCP client's server configuration. Add the private-key environment variables needed for the transfer direction you plan to use.

Set `SOLANA_PRIVATE_KEY` for Solana-originating transfers and `BASE_PRIVATE_KEY` for Base-originating transfers. The Solana key uses Base58 encoding, while the Base key uses a `0x`-prefixed hexadecimal format. `SOLANA_RPC_URL` and `BASE_RPC_URL` are optional endpoint overrides.

Solana-to-Base execution costs $0.50 USDC through x402, with gas sponsored by ClawSwap. Base-to-Solana transfers have no stated service fee, but the agent pays approximately $0.001 in Base gas. Quote requests are free and do not execute a transfer.

Yes, clawswap works with Cursor through its MCP configuration. Add the server command and required environment variables to `.cursor/mcp.json` for a project or `~/.cursor/mcp.json` for a global setup. The documented command runs the package with `npx`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewClawswap AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/clawswap?style=directory)](https://allmcps.com/mcp/clawswap)
HTML Embed
<a href="https://allmcps.com/mcp/clawswap"><img src="https://allmcps.com/api/badge/clawswap?style=directory" alt="Clawswap on AllMCPs" /></a>