npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@0xarchive/mcp-server

v1.0.0

Published

MCP server exposing 0xArchive market data API as tools for Claude Desktop/Code/API

Downloads

61

Readme

0xArchive MCP Server

MCP (Model Context Protocol) server that exposes 0xArchive's market data API as tools for Claude Desktop, Claude Code, and other MCP-compatible clients.

Query historical and real-time orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality metrics across Hyperliquid, HIP-3, and Lighter.xyz via natural language.

Setup

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.

3. Add to Claude Code

claude mcp add 0xarchive -s user -t stdio -e OXARCHIVE_API_KEY=0xa_your_key_here -- 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_key_here"
      }
    }
  }
}

Available Tools (26)

Hyperliquid

| Tool | Description | |------|-------------| | get_instruments | List all Hyperliquid perp/spot instruments | | get_orderbook | Current L2 orderbook snapshot | | get_orderbook_history | Historical orderbook snapshots | | get_trades | Trade/fill history | | get_candles | OHLCV candle data | | get_funding_current | Current funding rate | | get_funding_history | Funding rate history | | get_open_interest | Current open interest | | get_open_interest_history | Open interest history | | get_liquidations | Liquidation history |

HIP-3 (Builder Perps)

| Tool | Description | |------|-------------| | get_hip3_instruments | List HIP-3 instruments | | get_hip3_orderbook | Current HIP-3 orderbook | | get_hip3_trades | HIP-3 trade history | | get_hip3_candles | HIP-3 candle data | | get_hip3_funding | HIP-3 funding history |

Lighter.xyz

| Tool | Description | |------|-------------| | get_lighter_instruments | List Lighter instruments | | get_lighter_orderbook | Current Lighter orderbook | | get_lighter_trades | Lighter trade history | | get_lighter_candles | Lighter candle data | | get_lighter_funding | Lighter funding history |

Data Quality

| Tool | Description | |------|-------------| | get_data_quality_status | System health across all exchanges | | get_data_coverage | Data coverage (earliest/latest, records, completeness) | | get_symbol_coverage | Per-symbol coverage with gap detection | | get_data_incidents | Outage and degradation history | | get_data_latency | WebSocket/REST latency and data freshness | | get_data_sla | Monthly SLA compliance report |

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 | $499/mo | Tick data, 200 WS subs |

Upgrade at 0xarchive.io/pricing.

Tool Annotations

All 26 tools carry MCP annotations so clients can reason about safety and retry behavior:

| Annotation | Value | Meaning | |------------|-------|---------| | readOnlyHint | true | Tools never modify data | | destructiveHint | false | No destructive side effects | | idempotentHint | true | Safe to retry on failure | | openWorldHint | true | Queries an external API |

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

Example Queries

Once configured, ask Claude things like:

  • "What instruments are available on Hyperliquid?"
  • "Show me BTC's current orderbook"
  • "Get ETH trades from the last hour"
  • "Get SOL 4h candles for the past week"
  • "What's the current funding rate for BTC?"
  • "Show me liquidations on ETH in the last 24 hours"
  • "List all available HIP-3 instruments"
  • "Get km:US500 candles on HIP-3"
  • "Are there any data quality issues right now?"
  • "Show me the SLA report for January 2026"
  • "What's the data latency across exchanges?"