MCP Hub
Back to servers

0xarchive-mcp

MCP server for querying historical and real-time crypto market data across Hyperliquid, Hyperliquid HIP-3, and Lighter.xyz - orderbooks, trades, candles, funding, open interest, liquidations, and data quality metrics.

Stars
1
Forks
3
Updated
Mar 2, 2026

0xArchive MCP Server

Query crypto market data across Hyperliquid, HIP-3, and Lighter.xyz using natural language in Claude.

57 tools covering orderbooks, trades, candles, funding rates, open interest, liquidations, data quality metrics, and wallet-based authentication — from April 2023 to real-time.

Quick Start (30 seconds)

git clone https://github.com/0xArchiveIO/0xarchive-mcp.git
cd 0xarchive-mcp && npm install && npm run build
claude mcp add 0xarchive -s user -t stdio -e OXARCHIVE_API_KEY=0xa_your_api_key -- node $(pwd)/build/index.js

Then ask Claude: "What's BTC's current funding rate?"

Usage Examples

Ask Claude...Tool that fires
"Give me a BTC market summary"get_summary
"Show ETH 4h candles for the past week"get_candles
"What's the current funding rate for SOL?"get_funding_current
"Compare BTC funding on Hyperliquid vs Lighter"get_funding_current + get_lighter_funding_current
"Show me SOL liquidations in the last 24 hours"get_liquidations
"Get BTC orderbook with 20 levels"get_orderbook
"Any data incidents this month?"get_data_incidents
"What's the km:US500 price on HIP-3?"get_hip3_summary
"Show me the SLA report for January 2026"get_data_sla

Setup (detailed)

1. Install & Build

git clone https://github.com/0xArchiveIO/0xarchive-mcp.git
cd 0xarchive-mcp
npm install
npm run build

2. Get an API Key

Sign up at 0xarchive.io and generate an API key in Dashboard. Or use the web3_challenge and web3_signup tools to get a free API key with just an Ethereum wallet — no browser needed.

3. Add to Claude Code

claude mcp add 0xarchive -s user -t stdio -e OXARCHIVE_API_KEY=0xa_your_api_key -- node /absolute/path/to/0xarchive-mcp/build/index.js

4. Add to Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "0xarchive": {
      "command": "node",
      "args": ["/absolute/path/to/0xarchive-mcp/build/index.js"],
      "env": {
        "OXARCHIVE_API_KEY": "0xa_your_api_key"
      }
    }
  }
}

Available Tools (57)

Hyperliquid

ToolDescription
get_instrumentsList all Hyperliquid perp/spot instruments
get_instrumentGet a single Hyperliquid instrument by coin
get_orderbookCurrent L2 orderbook snapshot
get_orderbook_historyHistorical orderbook snapshots
get_tradesTrade/fill history
get_candlesOHLCV candle data
get_funding_currentCurrent funding rate
get_funding_historyFunding rate history
get_open_interestCurrent open interest
get_open_interest_historyOpen interest history
get_liquidationsLiquidation history
get_liquidations_by_userLiquidations for a specific user address
get_liquidation_volumeAggregated liquidation volume (USD buckets)
get_freshnessPer-coin data freshness and lag
get_summaryCombined market summary (price, funding, OI, volume, liquidations)
get_price_historyMark/oracle/mid price history

HIP-3 (Builder Perps)

ToolDescription
get_hip3_instrumentsList HIP-3 instruments
get_hip3_instrumentGet a single HIP-3 instrument by coin
get_hip3_orderbookCurrent HIP-3 orderbook
get_hip3_orderbook_historyHistorical HIP-3 orderbook snapshots
get_hip3_tradesHIP-3 trade history
get_hip3_trades_recentMost recent HIP-3 trades
get_hip3_candlesHIP-3 candle data
get_hip3_funding_currentCurrent HIP-3 funding rate
get_hip3_fundingHIP-3 funding history
get_hip3_open_interestCurrent HIP-3 open interest
get_hip3_open_interest_historyHIP-3 open interest history
get_hip3_freshnessPer-coin HIP-3 data freshness and lag
get_hip3_summaryCombined HIP-3 market summary
get_hip3_price_historyHIP-3 mark/oracle/mid price history

Lighter.xyz

ToolDescription
get_lighter_instrumentsList Lighter instruments
get_lighter_instrumentGet a single Lighter instrument by coin
get_lighter_orderbookCurrent Lighter orderbook
get_lighter_orderbook_historyHistorical Lighter orderbook snapshots
get_lighter_tradesLighter trade history
get_lighter_trades_recentMost recent Lighter trades
get_lighter_candlesLighter candle data
get_lighter_funding_currentCurrent Lighter funding rate
get_lighter_fundingLighter funding history
get_lighter_open_interestCurrent Lighter open interest
get_lighter_open_interest_historyLighter open interest history
get_lighter_freshnessPer-coin Lighter data freshness and lag
get_lighter_summaryCombined Lighter market summary
get_lighter_price_historyLighter mark/oracle/mid price history

Data Quality

ToolDescription
get_data_quality_statusSystem health across all exchanges
get_data_coverageData coverage (earliest/latest, records, completeness)
get_exchange_coverageCoverage for a specific exchange
get_symbol_coveragePer-symbol coverage with gap detection
get_data_incidentsOutage and degradation history
get_incidentSingle incident details by ID
get_data_latencyWebSocket/REST latency and data freshness
get_data_slaMonthly SLA compliance report

Web3 Authentication

ToolDescription
web3_challengeGet a SIWE challenge message for a wallet address
web3_signupCreate a free-tier account and API key with a signed SIWE message
web3_list_keysList all API keys for a wallet
web3_revoke_keyRevoke a specific API key
web3_subscribeSubscribe to a paid tier (build/pro) via x402 USDC payment on Base

Free-tier flow: web3_challenge (get SIWE message) → sign with personal_sign (EIP-191) → web3_signup (submit signature) → receive API key.

Paid-tier flow (x402): web3_subscribe with tier → returns 402 with pricing → sign USDC transfer (EIP-3009 on Base) → web3_subscribe again with payment_signature → receive API key + subscription.

Pricing Tiers

Some endpoints require a paid plan. The server returns clear error messages with upgrade guidance when tier limits are hit.

TierPriceAccess
Free$0/moBTC-only historical data
Build$49/moAll coins, REST API, 25 WS subs
Pro$199/moFull orderbook depth, 100 WS subs
EnterpriseCustomTick data, 200 WS subs

Upgrade at 0xarchive.io/pricing.

Tool Annotations

All 57 tools carry MCP annotations so clients can reason about safety and retry behavior.

Market data tools (52):

AnnotationValueMeaning
readOnlyHinttrueTools never modify data
destructiveHintfalseNo destructive side effects
idempotentHinttrueSafe to retry on failure
openWorldHinttrueQueries an external API

Web3 tools (5): readOnlyHint: false, idempotentHint: false — these create accounts, keys, and subscriptions.

All tools also declare an outputSchema so clients can validate structured responses.

Smart Defaults

  • Time range: Defaults to last 24 hours if not specified
  • Limit: Defaults to 100 records
  • Interval: Defaults to 1h for candles
  • Pagination: Returns cursor for next page when more data available
  • Timestamps: Accepts both Unix milliseconds and ISO 8601 strings

Reviews

No reviews yet

Sign in to write a review