GuidesClaude Desktop

Claude Desktop Integration

Step-by-step guide to using y0 MCP server with Claude Desktop.

Prerequisites

  • Claude Desktop installed
  • Node.js 18+ installed
  • API keys for 0x, CoinGecko, and/or Etherscan

Installation

npm install -g @y0exchange/mcp

Configuration

  1. Open Claude Desktop settings
  2. Go to Developer > Edit Config
  3. Add the y0 MCP server:
{
  "mcpServers": {
    "y0": {
      "command": "npx",
      "args": ["@y0exchange/mcp"],
      "env": {
        "ZEROX_API_KEY": "your-key",
        "COINGECKO_API_KEY": "your-key",
        "ETHERSCAN_API_KEY": "your-key"
      }
    }
  }
}
  1. Restart Claude Desktop

Verify

After restart, you should see the y0 tools icon in Claude Desktop. Try asking:

“What is the ETH balance of vitalik.eth (0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045)?”

Claude will use the get_balance tool and show you the result.

Example Prompts

Read Operations

  • “Show me the portfolio for 0xd8dA…”
  • “What’s the current price of ETH and ARB?”
  • “Get a quote: swap 1000 USDC to ETH on Arbitrum”
  • “What’s the gas price on Base right now?”
  • “Show recent swaps for 0xd8dA… on Ethereum”

Write Operations

  • “Swap 100 USDC to ETH on Ethereum for my wallet 0x…”
  • “Send 0.5 ETH to 0x1234… on Arbitrum”
  • “Bridge 500 USDC from Ethereum to Base”