SerenAI
SerenAI
Polymarket Data logo

Polymarket Prediction Markets

by Polymarket Data

5 txns
1 agents

About

Real-time Polymarket prediction market data including trades, prices, and market activity

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.

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"
      }
    }
  }
}
Claude Code
claude mcp add x402 \
  --env X402_GATEWAY_URL=https://x402.serendb.com \
  --env WALLET_PRIVATE_KEY=your_private_key \
  --env BASE_RPC_URL=https://mainnet.base.org \
  -- npx @serendb/x402-mcp-server

Replace your_private_key with your actual private key.

Cursor

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"
      }
    }
  }
}

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/proxy \
  -H "Content-Type: application/json" \
  -d '{
    "providerId": "dfbf416d-3061-464c-b4b0-665692f11fd5",
    "agentWallet": "0xYourWalletAddress",
    "request": {
      "method": "GET",
      "path": "/endpoint"
    }
  }'

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/proxy \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: <base64-encoded-signature>" \
  -d '{ ... }'

Pricing

$0.0010/call

Pay per API call via x402 protocol

Provider Details

Type: api
Added: December 6, 2025
Wallet0x83334ef0C6f6396413C508A7762741e9FD8B20E9
Cache TTL: 60s