Skip to content
MCP server

X402 Funding

MCP server comparing Hyperliquid funding rates with Binance or OKX, annualized

Runs locally

X402 Funding is a freemium MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
CLI, API, Self-hosted
Runs
Locally
What it can do
Read-only
Version
1.5.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add x402-funding -- npx -y x402-funding-divergence

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "x402-funding": {
      "command": "npx",
      "args": [
        "-y",
        "x402-funding-divergence"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "x402-funding": {
      "command": "npx",
      "args": [
        "-y",
        "x402-funding-divergence"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "x402-funding": {
      "command": "npx",
      "args": [
        "-y",
        "x402-funding-divergence"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "x402-funding": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "x402-funding-divergence"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add x402-funding -- npx -y x402-funding-divergence

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.x402-funding]
command = "npx"
args = ["-y", "x402-funding-divergence"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "x402-funding": {
      "command": "npx",
      "args": [
        "-y",
        "x402-funding-divergence"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "x402-funding": {
          "command": "npx",
          "args": [
            "-y",
            "x402-funding-divergence"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user x402-funding npx -- -y x402-funding-divergence

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "x402-funding": {
          "command": "npx",
          "args": [
            "-y",
            "x402-funding-divergence"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "x402-funding": {
          "command": "npx",
          "args": [
            "-y",
            "x402-funding-divergence"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "x402-funding": {
          "command": "npx",
          "args": [
            "-y",
            "x402-funding-divergence"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "x402-funding": {
          "command": "npx",
          "args": [
            "-y",
            "x402-funding-divergence"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "x402-funding": {
          "command": "npx",
          "args": [
            "-y",
            "x402-funding-divergence"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "x402-funding": {
          "command": "npx",
          "args": [
            "-y",
            "x402-funding-divergence"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "x402-funding": {
          "command": "npx",
          "args": [
            "-y",
            "x402-funding-divergence"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About X402 Funding

Funding rates are normalized before comparison: Hyperliquid funds hourly, while Binance contracts vary between 8, 4 and 1 hours and OKX differs per instrument, so each interval is read per symbol rather than assumed. A pair appears only if open interest and volume clear liquidity floors on both venues, by default $1M open interest and $2M volume on Hyperliquid and $2M on the benchmark.

Each row includes a trade field that says which leg to short and which to long. Gaps beyond 2,000 bps are flagged as anomalies and ranked after ordinary rows, and the tool falls back from Binance to OKX when Binance blocks the region. The README calls the output a raw input for a basis decision, not a return forecast.

The MCP tool get_funding_divergence takes an optional limit from 1 to 50 and runs locally over stdio. The same code is a Node library, and a hosted x402 endpoint charges $0.02 a call for the divergence or $0.25 for the Ultra route that adds measured execution capacity.

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, all 1 tool only read data.

From the server's own tool labels and tool names; not verified by us.

get_funding_divergenceName suggests: reads
Returns pairs where Hyperliquid and the benchmark venue disagree on funding, with an optional limit of 1 to 50.

What it does

Per-symbol funding intervals
Intervals are read from each venue, not assumed to be 8 hours.
Liquidity filters
Pairs must clear open interest and volume floors on both legs.
Resolved trade direction
Each row says which venue to short and which to long.
Anomaly flags
Gaps over 2,000 bps are marked and ranked last.
Region fallback
Switches to OKX when Binance is unavailable.
Hosted pay-per-call
An x402 endpoint serves the data for USDC per request.

Good for

  • Scan for the widest funding gaps between Hyperliquid and a CEX
  • Feed a basis-trade screener with ranked pairs
  • Check how much size a gap can absorb using the Ultra route
  • Give an agent a no-key funding data tool
  • Validate responses against the shipped JSON Schema

Pricing

Freemium

Local tool free; hosted endpoint $0.02 per call (/funding) or $0.25 per call (/ultra) in USDC

X402 Funding FAQ

Does X402 Funding need an API key?

No keys or signup are needed for the local tool.

What does the hosted endpoint cost?

$0.02 a call for /funding and $0.25 a call for /ultra, paid in USDC on Base.

Which exchanges are compared?

Hyperliquid against Binance, or OKX where Binance restricts the region.

What are the Node requirements?

Node.js 20 or newer.

Can I change the liquidity floors?

Yes, through environment variables such as MIN_OI_USD and MIN_VOL_USD.

How do I add X402 Funding to Claude Code?

Run this command in your terminal: claude mcp add x402-funding -- npx -y x402-funding-divergence

What are the best alternatives to X402 Funding?

The closest alternatives to X402 Funding are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, NostrPulse, Australian Economic Data (ABS, RBA & APRA) and Crypto Perp Pulse & Outage Radar (x402).

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers