defi-agents icon indicating copy to clipboard operation
defi-agents copied to clipboard

Integration: Clawdia DeFi MCP server + on-chain analytics API

Open Robocular opened this issue 9 months ago • 0 comments

Context

I maintain an API gateway with several DeFi-focused services that could complement the agent definitions in this repo:

  1. DeFi MCP Server — 12 MCP tools for token research, prices, and analytics
  2. On-Chain Analytics — Token data from DexScreener + GeckoTerminal across 8 chains
  3. Crypto Data Feeds — Real-time WebSocket feeds for 40+ trading pairs via Bybit

Working example

import requests

GATEWAY = "https://agent-gateway-kappa.vercel.app"

# Get token analytics (DexScreener + GeckoTerminal)
token = requests.get(f"{GATEWAY}/api/analytics/token/0x...?chain=ethereum").json()
print(f"Price: ${token['price']}, Volume 24h: ${token['volume24h']}")

# Get real-time crypto prices
btc = requests.get(f"{GATEWAY}/api/crypto/price/BTC").json()
eth = requests.get(f"{GATEWAY}/api/crypto/price/ETH").json()

# Search for tokens
results = requests.get(f"{GATEWAY}/api/analytics/search?q=pepe").json()

MCP Configuration

For agents using MCP, our DeFi MCP server can be added directly:

{
  "mcpServers": {
    "defi": {
      "url": "https://agent-gateway-kappa.vercel.app/api/defi-mcp"
    }
  }
}

This gives agents access to tools like get_token_price, search_tokens, get_gas_prices, get_wallet_balance, and more.

Full API catalog: https://api-catalog-three.vercel.app

Happy to help with integration if any of these services would be useful for the DeFi agent definitions!

Robocular avatar Mar 04 '26 09:03 Robocular