# clawswap [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/WarTech9/clawswap-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 328  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/clawswap

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

## Tools
Capabilities this server exposes over MCP:

- **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** — Check the status of a previously initiated bridge.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "clawswap": {
    "command": "npx",
    "args": ["-y","@clawswap/mcp-server"],
    "env": {
      "SOLANA_PRIVATE_KEY": "",
      "BASE_PRIVATE_KEY": "",
      "SOLANA_RPC_URL": "",
      "BASE_RPC_URL": ""
    }
  }
}
```

**Requires environment variables:** `SOLANA_PRIVATE_KEY`, `BASE_PRIVATE_KEY`, `SOLANA_RPC_URL`, `BASE_RPC_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/clawswap/readme_

