SerenAI
SerenAI
Trading Strategy logo

Trading Strategy DeFi vaults

by Trading Strategy

25 txns
3 agents

About

Comprehensive vault performance and yield database with 1000+ vaults across 20+ chains and dozens of digital asset management protocols. Includes returns, Sharpe, volatility, fees, and risk ratings.

Access Data

For AI Agents

MCP Server

Install the x402 MCP server to let your AI agent access this data with automatic USDC payments on Base.

Required: You need a SerenDB database to store query results.

Get your connection string from the SerenDB Console under your database settings.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "x402": {
      "command": "npx",
      "args": ["@serendb/x402-mcp-server"],
      "env": {
        "X402_GATEWAY_URL": "https://x402.serendb.com",
        "WALLET_PRIVATE_KEY": "0x...",
        "BASE_RPC_URL": "https://mainnet.base.org",
        "SERENDB_CONNECTION_STRING": "postgresql://..."
      }
    }
  }
}
Claude Code

Replace 0x... with your wallet private key and postgresql://... with your SerenDB connection string.

macOS / Linux
claude mcp add x402 \
  -e X402_GATEWAY_URL=https://x402.serendb.com \
  -e WALLET_PRIVATE_KEY=0x... \
  -e BASE_RPC_URL=https://mainnet.base.org \
  -e "SERENDB_CONNECTION_STRING=postgresql://..." \
  -- npx -y @serendb/x402-mcp-server
Windows (PowerShell)
claude mcp add x402 `
  -e X402_GATEWAY_URL=https://x402.serendb.com `
  -e WALLET_PRIVATE_KEY=0x... `
  -e BASE_RPC_URL=https://mainnet.base.org `
  -e "SERENDB_CONNECTION_STRING=postgresql://..." `
  '--' npx -y @serendb/x402-mcp-server
Gemini CLI

Replace 0x... with your wallet private key and postgresql://... with your SerenDB connection string.

gemini mcp add x402 \
  -e X402_GATEWAY_URL=https://x402.serendb.com \
  -e WALLET_PRIVATE_KEY=0x... \
  -e BASE_RPC_URL=https://mainnet.base.org \
  -e "SERENDB_CONNECTION_STRING=postgresql://..." \
  -- npx -y @serendb/x402-mcp-server
Codex CLI

Replace 0x... with your wallet private key and postgresql://... with your SerenDB connection string.

codex mcp add x402 \
  --env X402_GATEWAY_URL=https://x402.serendb.com \
  --env WALLET_PRIVATE_KEY=0x... \
  --env BASE_RPC_URL=https://mainnet.base.org \
  --env "SERENDB_CONNECTION_STRING=postgresql://..." \
  -- npx -y @serendb/x402-mcp-server
Cursor

Important: Cursor has a 60s timeout. Pre-install globally first: npm install -g @serendb/x402-mcp-server

First, install globally to avoid timeout issues:

npm install -g @serendb/x402-mcp-server

Then add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "x402": {
      "command": "x402-mcp-server",
      "args": [],
      "env": {
        "X402_GATEWAY_URL": "https://x402.serendb.com",
        "WALLET_PRIVATE_KEY": "0x...",
        "BASE_RPC_URL": "https://mainnet.base.org",
        "SERENDB_CONNECTION_STRING": "postgresql://..."
      }
    }
  }
}

Also works with Windsurf, Zed, and other MCP-compatible clients. See the full setup guide for details.

For Developers

Direct HTTP API

Access data directly via HTTP using the x402 payment protocol.

How x402 Payments Work
  1. Send your query request to the gateway
  2. Receive HTTP 402 with payment requirements (amount, wallet, EIP-712 data)
  3. Sign the payment authorization with your wallet
  4. Retry request with X-PAYMENT header containing the signature
  5. Receive your data - payment settles automatically via USDC on Base
Step 1: Get Payment Requirements
curl -X POST https://x402.serendb.com/api/query \
  -H "Content-Type: application/json" \
  -d '{
    "sql": "SELECT * FROM your_table LIMIT 10",
    "publisherId": "3891c983-9f08-44f1-8a71-1745cb0e32bc",
    "agentWallet": "0xYourWalletAddress"
  }'

This returns 402 Payment Required with the payment details you need to sign.

Step 2: Add Payment Header

After signing the EIP-712 authorization, add the base64-encoded signature:

curl -X POST https://x402.serendb.com/api/query \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <base64-encoded-signature>" \
  -d '{ ... }'

Example Prompts

Copy these prompts to use with your AI assistant. Make sure you have the x402 MCP server configured.

Getting Started
Using the x402 MCP server, query Trading Strategy to find the top 20 highest-yielding vaults ranked by 3-month CAGR. For each vault show: protocol name, vault name, 3-month yield, Sharpe ratio, and risk rating. Help me identify the best risk-adjusted opportunities.
Research
Using the x402 MCP server, analyze vault fee impact in Trading Strategy: compare gross vs net returns across top 15 vaults. Show how management and performance fees affect final returns - which vaults charge high fees but deliver outsized returns?
Analysis
Using the x402 MCP server, perform cross-chain DeFi yield analysis: compare the best vaults on different chains (focus on last 3 months performance). Which chains offer the best risk-adjusted yields? Where is yield farming most competitive?
Comparison
Using the x402 MCP server, analyze volatility-adjusted returns in Trading Strategy: rank top 20 vaults by Sharpe ratio. Identify vaults that deliver solid returns WITH low volatility - the sweet spot for institutional investors.
discovery
Using the x402 MCP server, find emerging vault strategies: identify vaults with short track records but strong recent performance. Which new strategies are showing promise? Which older vaults are declining?

Pricing

$0.100/1K rows

Pay per 1K rows via x402 protocol

Publisher Details

Type: database
Added: December 12, 2025
Cache TTL: 300s