Cross-chain swaps between Solana and Base for AI agents paid for via via x402 micropayments.
registry version 0.1.5
npm
npx -y @clawswap/mcp-servernpm
npx -y @clawswap/mcp-server@0.1.5
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
],
"env": {
"SOLANA_PRIVATE_KEY": "<YOUR_SOLANA_PRIVATE_KEY>",
"BASE_PRIVATE_KEY": "<YOUR_BASE_PRIVATE_KEY>"
}
}
}
}{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server@0.1.5"
],
"env": {
"SOLANA_PRIVATE_KEY": "<YOUR_SOLANA_PRIVATE_KEY>",
"BASE_PRIVATE_KEY": "<YOUR_BASE_PRIVATE_KEY>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env SOLANA_PRIVATE_KEY=<YOUR_SOLANA_PRIVATE_KEY> --env BASE_PRIVATE_KEY=<YOUR_BASE_PRIVATE_KEY> clawswap -- npx -y @clawswap/mcp-server
claude mcp add --env SOLANA_PRIVATE_KEY=<YOUR_SOLANA_PRIVATE_KEY> --env BASE_PRIVATE_KEY=<YOUR_BASE_PRIVATE_KEY> clawswap -- npx -y @clawswap/mcp-server@0.1.5
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
],
"env": {
"SOLANA_PRIVATE_KEY": "<YOUR_SOLANA_PRIVATE_KEY>",
"BASE_PRIVATE_KEY": "<YOUR_BASE_PRIVATE_KEY>"
}
}
}
}{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server@0.1.5"
],
"env": {
"SOLANA_PRIVATE_KEY": "<YOUR_SOLANA_PRIVATE_KEY>",
"BASE_PRIVATE_KEY": "<YOUR_BASE_PRIVATE_KEY>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"clawswap": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
],
"env": {
"SOLANA_PRIVATE_KEY": "<YOUR_SOLANA_PRIVATE_KEY>",
"BASE_PRIVATE_KEY": "<YOUR_BASE_PRIVATE_KEY>"
}
}
}
}{
"servers": {
"clawswap": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server@0.1.5"
],
"env": {
"SOLANA_PRIVATE_KEY": "<YOUR_SOLANA_PRIVATE_KEY>",
"BASE_PRIVATE_KEY": "<YOUR_BASE_PRIVATE_KEY>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server"
],
"env": {
"SOLANA_PRIVATE_KEY": "<YOUR_SOLANA_PRIVATE_KEY>",
"BASE_PRIVATE_KEY": "<YOUR_BASE_PRIVATE_KEY>"
}
}
}
}{
"mcpServers": {
"clawswap": {
"command": "npx",
"args": [
"-y",
"@clawswap/mcp-server@0.1.5"
],
"env": {
"SOLANA_PRIVATE_KEY": "<YOUR_SOLANA_PRIVATE_KEY>",
"BASE_PRIVATE_KEY": "<YOUR_BASE_PRIVATE_KEY>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
SOLANA_PRIVATE_KEY required secret — Base58-encoded Solana private key (required for Solana → Base bridges)BASE_PRIVATE_KEY secret — 0x-prefixed hex Base/EVM private key (required for Base → Solana bridges)SOLANA_RPC_URL — Solana RPC endpoint URLBASE_RPC_URL — Base RPC endpoint URL⭐ 2 stars · 最近更新于 258 天前 · MIT license
@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 USD…
Summary from the project README — github.com/WarTech9/clawswap-mcp
Distributed as npm, listed under Developer Tools. Review our MCP security guide before granting access to real data.
@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 USD
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/WarTech9/clawswap-mcp. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/clawswap/)
HTML
<a href="https://mcpnav.net/server/clawswap/"><img src="https://mcpnav.net/badge/clawswap.svg" alt="Listed on MCPNav" height="20"></a>