← Back to MCP Servers
╭─╮
│D│
│P│
╰─╯

DeFi Protocol Aggregator

v1.5.3DeFiTools 4 actions

SERVER URL

http://localhost:3000/api/mcp-server/defi-protocols

CONNECTION JSON

{
  "mcpServers": {
    "defi-protocols": {
      "command": "npx",
      "args": [
        "mcp-remote@latest",
        "http://localhost:3000/api/mcp-server/defi-protocols"
      ]
    }
  }
}

Learn more about supported MCP clients

MCP HOST CONNECTIONS

Connect this MCP server directly to your AI assistant tools by using the JSON config above. Click on a logo to see a demo video.

╔═══╗
║ ▸ ║
║ │ ║
╚═══╝
CursorWatch demo
┌───┐
│ C │
│ L │
└───┘
ClaudeWatch demo
≋≋≋≋
~≋~≋
≋~≋~
~~~~
WindsurfWatch demo

DESCRIPTION

Unified interface for interacting with Uniswap, Aave, Compound, and other major DeFi protocols. Execute swaps, provide liquidity, manage lending positions, and track yields.

AVAILABLE TOOLS

getPoolInfo

Fetch liquidity pool information

executeSwap

Execute token swap through DEX

getLendingRates

Get current lending/borrowing rates

getYieldFarms

List available yield farming opportunities

CODE EXAMPLES

JavaScript
// DeFi Protocol Client
import { Client } from '@modelcontextprotocol/sdk';

const client = new Client();
await client.connect('https://defi-mcp.x402.app/sse');

const rates = await client.callTool({
  name: 'getLendingRates',
  arguments: {
    protocol: 'aave',
    asset: 'USDC'
  }
});

console.log('APY:', rates.supplyAPY);

Official MCP SDK Documentation:
https://github.com/modelcontextprotocol/modelcontextprotocol

Installation:
npm install @modelcontextprotocol/sdk

Authentication:
- For MCP Hosts (Cursor, Windsurf, Claude Desktop), saving the JSON config to your tool will automatically trigger the browser OAuth flow
- For programmatic access, obtain the OAuth token by running "npx mcp-remote <url>" in the terminal and follow the instructions

x4