Provides tools for Web3 authentication and wallet-based account management, enabling users to generate SIWE challenges, sign up for accounts, manage API keys, and process subscriptions through Ethereum-compatible wallet signatures.
0xArchive MCP Server
Query crypto market data across Hyperliquid, HIP-3, and Lighter.xyz using natural language in Claude.
73 tools covering orderbooks, trades, candles, funding rates, open interest, liquidations, L4 order-level data, 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.jsThen ask Claude: "What's BTC's current funding rate?"
Usage Examples
Ask Claude... | Tool that fires |
"Give me a BTC market summary" |
|
"Show ETH 4h candles for the past week" |
|
"What's the current funding rate for SOL?" |
|
"Compare BTC funding on Hyperliquid vs Lighter" |
|
"Show me SOL liquidations in the last 24 hours" |
|
"Get BTC orderbook with 20 levels" |
|
"Any data incidents this month?" |
|
"What's the km:US500 price on HIP-3?" |
|
"Show me the SLA report for January 2026" |
|
Setup (detailed)
1. Install & Build
git clone https://github.com/0xArchiveIO/0xarchive-mcp.git
cd 0xarchive-mcp
npm install
npm run build2. 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.js4. 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 (73)
Hyperliquid
Tool | Description |
| List all Hyperliquid perp/spot instruments |
| Get a single Hyperliquid instrument by coin |
| Current L2 orderbook snapshot |
| Historical orderbook snapshots |
| Trade/fill history |
| OHLCV candle data |
| Current funding rate |
| Funding rate history |
| Current open interest |
| Open interest history |
| Liquidation history |
| Liquidations for a specific user address |
| Aggregated liquidation volume (USD buckets) |
| Per-coin data freshness and lag |
| Combined market summary (price, funding, OI, volume, liquidations) |
| Mark/oracle/mid price history |
Hyperliquid L4 (Order-Level)
Tool | Description |
| Order history with user attribution (Build+ tier) |
| Aggregated order placement, cancellation, and fill metrics (Build+ tier) |
| TP/SL order history with trigger prices and triggered status (Pro+ tier) |
| L4 orderbook reconstruction at a specific timestamp (Pro+ tier) |
| Raw order-level changes (new, modified, cancelled, filled) over a time range (Build+ tier) |
| Periodic full order-level orderbook checkpoints (Pro+ tier) |
HIP-3 (Builder Perps)
Tool | Description |
| List HIP-3 instruments |
| Get a single HIP-3 instrument by coin |
| Current HIP-3 orderbook |
| Historical HIP-3 orderbook snapshots |
| HIP-3 trade history |
| Most recent HIP-3 trades |
| HIP-3 candle data |
| Current HIP-3 funding rate |
| HIP-3 funding history |
| Current HIP-3 open interest |
| HIP-3 open interest history |
| HIP-3 liquidation events (Feb 2026+) |
| Aggregated HIP-3 liquidation volume (USD buckets, Feb 2026+) |
| Per-coin HIP-3 data freshness and lag |
| Combined HIP-3 market summary |
| HIP-3 mark/oracle/mid price history |
HIP-3 L4 (Order-Level)
Tool | Description |
| HIP-3 order history with user attribution (Build+ tier) |
| Aggregated HIP-3 order placement, cancellation, and fill metrics (Build+ tier) |
| HIP-3 TP/SL order history with trigger prices and triggered status (Pro+ tier) |
| HIP-3 L4 orderbook reconstruction at a specific timestamp (Pro+ tier) |
| HIP-3 raw order-level changes over a time range (Build+ tier) |
| HIP-3 periodic full order-level orderbook checkpoints (Pro+ tier) |
Lighter.xyz
Tool | Description |
| List Lighter instruments |
| Get a single Lighter instrument by coin |
| Current Lighter orderbook |
| Historical Lighter orderbook snapshots |
| Lighter trade history |
| Most recent Lighter trades |
| Lighter candle data |
| Current Lighter funding rate |
| Lighter funding history |
| Current Lighter open interest |
| Lighter open interest history |
| Per-coin Lighter data freshness and lag |
| Combined Lighter market summary |
| Lighter mark/oracle/mid price history |
Lighter L3 (Order-Level)
Tool | Description |
| Current L3 order-level orderbook with order IDs and user addresses (Pro+ tier) |
| Historical L3 orderbook snapshots with individual orders (Pro+ tier) |
Data Quality
Tool | Description |
| System health across all exchanges |
| Data coverage (earliest/latest, records, completeness) |
| Coverage for a specific exchange |
| Per-symbol coverage with gap detection |
| Outage and degradation history |
| Single incident details by ID |
| WebSocket/REST latency and data freshness |
| Monthly SLA compliance report |
Web3 Authentication
Tool | Description |
| Get a SIWE challenge message for a wallet address |
| Create a free-tier account and API key with a signed SIWE message |
| List all API keys for a wallet |
| Revoke a specific API key |
| Subscribe 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.
Tier | Price | Access |
Free | $0/mo | BTC-only historical data |
Build | $49/mo | All coins, REST API, 25 WS subs |
Pro | $199/mo | Full orderbook depth, 100 WS subs |
Enterprise | Custom | Tick data, 200 WS subs |
Upgrade at 0xarchive.io/pricing.
Tool Annotations
All 73 tools carry MCP annotations so clients can reason about safety and retry behavior.
Market data tools (68):
Annotation | Value | Meaning |
|
| Tools never modify data |
|
| No destructive side effects |
|
| Safe to retry on failure |
|
| Queries 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
Bulk Data Downloads
For large-scale data exports (full order books, complete trade history, etc.), use the S3 Parquet bulk export available at 0xarchive.io/data. The Data Explorer lets you select time ranges, symbols, and data types, then download compressed Parquet files directly. The MCP tools are best for point queries and moderate-sized data pulls; for bulk needs, the Data Explorer is significantly faster.