Turn Claude into a DeFi Trader: 45 MCP Tools for Autonomous Protocol Interaction

One line in your Claude Desktop configuration file, and your Claude agent gets a wallet with 45 MCP tools for autonomous DeFi trading. No more copying transaction hashes between ChatGPT and MetaMask — Claude can now swap, lend, stake, and bridge tokens directly through WAIaaS's Model Context Protocol server.

Why MCP Changes Everything for AI Trading

Most AI agents can read the blockchain but can't write to it. They can analyze DeFi yields, explain smart contracts, and recommend strategies — but when it's time to execute, you're back to manual wallet interactions. Claude's Model Context Protocol (MCP) changes this by letting agents access external tools seamlessly.

WAIaaS provides an MCP server that turns Claude into a complete DeFi operator. Instead of asking Claude for trading advice then switching to your wallet, Claude can check balances, execute swaps, manage lending positions, and monitor transactions — all within the same conversation.

The WAIaaS MCP Server: 45 Tools for Autonomous Trading

WAIaaS provides 45 MCP tools for AI agent integration across wallet management, DeFi protocols, and security controls. When you register the MCP server with Claude Desktop, these tools become native to your agent's capabilities:

Core Wallet Tools:

DeFi Protocol Integration:

Advanced Features:

The 15 DeFi protocol providers integrated include Jupiter for Solana swaps, Aave for lending, Lido for ETH staking, LI.FI for cross-chain bridges, and specialized protocols like Drift for Solana perpetuals.

Quick MCP Setup: From Zero to Trading Agent

Here's the fastest way to give Claude onchain capabilities through MCP:

Step 1: Install and Start WAIaaS

npm install -g @waiaas/cli
waiaas init --auto-provision
waiaas start
waiaas quickset --mode mainnet

The quickset command creates wallets and sessions in one step, outputting the exact MCP configuration you need.

Step 2: Add to Claude Desktop Configuration

Open your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add:

{
  "mcpServers": {
    "waiaas": {
      "command": "npx",
      "args": ["-y", "@waiaas/mcp"],
      "env": {
        "WAIAAS_BASE_URL": "http://127.0.0.1:3100",
        "WAIAAS_SESSION_TOKEN": "wai_sess_<your-token>",
        "WAIAAS_DATA_DIR": "~/.waiaas"
      }
    }
  }
}

Or auto-configure with the CLI:

waiaas mcp setup --all

Step 3: Restart Claude Desktop

Claude automatically detects the new MCP server and loads the 45 tools.

Step 4: Test Wallet Integration

Open Claude and try: "Check my wallet balance and show my DeFi positions."

Claude will use the get-balance and get-defi-positions tools to fetch real data from your wallet.

Step 5: Execute Your First Trade

"Swap 0.1 SOL for USDC on Jupiter, but simulate it first."

Claude will:

  1. Call simulate-transaction to preview the swap
  2. Show you the expected output amount and fees
  3. Ask for confirmation
  4. Execute via action-provider with the jupiter-swap provider

Multi-Wallet MCP Configuration

For agents managing multiple strategies, configure separate MCP servers per wallet:

{
  "mcpServers": {
    "waiaas-trading": {
      "command": "npx",
      "args": ["-y", "@waiaas/mcp"],
      "env": {
        "WAIAAS_BASE_URL": "http://127.0.0.1:3100",
        "WAIAAS_AGENT_ID": "019c47d6-51ef-7f43-a76b-d50e875d95f4",
        "WAIAAS_AGENT_NAME": "trading-agent",
        "WAIAAS_DATA_DIR": "~/.waiaas"
      }
    },
    "waiaas-yield": {
      "command": "npx",
      "args": ["-y", "@waiaas/mcp"],
      "env": {
        "WAIAAS_BASE_URL": "http://127.0.0.1:3100",
        "WAIAAS_AGENT_ID": "019c4cd2-86e8-758f-a61e-9c560307c788",
        "WAIAAS_AGENT_NAME": "yield-farming",
        "WAIAAS_DATA_DIR": "~/.waiaas"
      }
    }
  }
}

Now Claude can differentiate between accounts: "Check the balance in my trading wallet and move yield from my farming wallet."

Policy-Based Safety for Autonomous Trading

MCP tools are powerful — your agent can execute real transactions with real money. WAIaaS includes 21 policy types with 4 security tiers to keep autonomous trading safe:

Spending Limits with 4-Tier Security:

curl -X POST http://localhost:3100/v1/policies \
  -H 'Content-Type: application/json' \
  -H 'X-Master-Password: <password>' \
  -d '{
    "walletId": "<wallet-uuid>",
    "type": "SPENDING_LIMIT",
    "rules": {
      "instant_max_usd": 100,
      "notify_max_usd": 500,
      "delay_max_usd": 2000,
      "delay_seconds": 900,
      "daily_limit_usd": 5000
    }
  }'

Default-Deny Token and Contract Whitelists:

WAIaaS follows default-deny: transactions are blocked unless explicitly allowed. Configure ALLOWED_TOKENS and CONTRACT_WHITELIST policies to restrict which assets and protocols your agent can access.

Real-World MCP Trading Scenarios

Yield Farming Automation: "Monitor Aave lending rates. If USDC rate drops below 3%, withdraw and stake in Lido instead."

Claude uses get-defi-positions to check current yields, action-provider with aave-v3 to withdraw, and action-provider with lido-staking to restake.

Cross-Chain Arbitrage: "Check USDC price on Ethereum vs Solana. If spread > 0.5%, bridge and arbitrage."

Claude combines get-balance calls across networks with action-provider using lifi for bridging and jupiter-swap for execution.

Risk Management: "If my Aave health factor drops below 1.5, reduce leverage by 25%."

Claude monitors get-health-factor and executes partial repayments through aave-v3 provider when thresholds are hit.

MCP vs Traditional APIs

Traditional wallet APIs require you to build authentication, handle transaction signing, manage gas, and integrate each DeFi protocol separately. MCP tools abstract this complexity:

Traditional Approach:

# Multiple SDK installations
from web3 import Web3
from solana.rpc.api import Client
import aave_protocol_v3

# Manual authentication per chain
w3 = Web3(Web3.HTTPProvider(rpc_url))
account = w3.eth.account.from_key(private_key)

# Protocol-specific integration
aave = aave_protocol_v3.LendingPool(address)
tx = aave.withdraw(asset, amount, {'from': account})

MCP with WAIaaS:

Claude: "Withdraw 1000 USDC from Aave"
→ Uses get-defi-positions to find position
→ Calls action-provider with aave-v3 to withdraw
→ Reports transaction hash and confirmation

Advanced MCP Features

ERC-4337 Account Abstraction: The build-userop and sign-userop tools enable gasless transactions and batch operations through smart accounts.

x402 HTTP Payments: The x402-fetch tool lets agents pay for API calls automatically — perfect for accessing premium data feeds or AI services during trading.

Cross-Chain Operations: WAIaaS supports 2 chain types (EVM, Solana) with 18 networks. MCP tools work identically across chains — Claude doesn't need to know if it's calling Ethereum or Polygon.

NFT Integration: Tools like get-nft-metadata and transfer-nft enable agents that trade digital assets, not just DeFi tokens.

Security and Recovery

MCP servers run locally and connect to your self-hosted WAIaaS daemon. Your private keys never leave your machine. The 3-layer security system (session auth → policy engine → owner controls) ensures agents operate within defined boundaries.

If something goes wrong, owner authentication (wc-connect, wc-disconnect) provides emergency controls to halt agent activity and recover funds.

Related Posts:

What's Next

You now have Claude connected to onchain protocols through 45 MCP tools. Try complex multi-step strategies, set up monitoring workflows, or build yield optimization agents. The full documentation covers advanced topics like custom policies, multi-signature setups, and production deployment.

Ready to turn Claude into a DeFi trader? Get the code at GitHub and find deployment guides at waiaas.ai.