---
title: "Hyperliquid and Lighter MCP server"
description: "Give your AI client typed tools for Hyperliquid and Lighter market reads. Connect to hosted 0xArchive MCP with OAuth, without an API key."
canonical_url: "https://0xarchive.io/mcp"
markdown_url: "https://0xarchive.io/mcp.md"
route: "/mcp"
robots: "index, follow"
generated_from: "prerendered_html"
---

# Give your agent market records, not guesses.

Ask your agent for market records, not guesses. Connect your compatible client to hosted 0xArchive MCP with OAuth for Hyperliquid and Lighter market reads.

[Choose your client](https://docs.0xarchive.io/mcp-server#client-setup)

Hosted OAuth connection. No 0xArchive API key required.

![BTC](https://0xarchive.io/markets/hyperliquid/BTC.svg)

## Position history

Hyperliquid core

How did Account A’s BTC position change from 7 to 8 October?

> The position stayed long at 1,002.67899 BTC. Unrealized P&L moved from +$1.62M to −$855.03K.

Tool `get_account_positions_history`

![BTC](https://0xarchive.io/markets/hyperliquid/BTC.svg)

## Account A · BTC

Hyperliquid

long

Unrealized P&L USD

**−$855,025.39**

Position size BTC

**1,002.68**

Entry price USD

**81,832.7**

7 Oct 2026 · 16:00 UTC

Mark price USD

**83,444**

Position value USD

**$83,667,545.64**

Unrealized P&L USD

**+$1,615,575.64**

8 Oct 2026 · 16:00 UTC

Mark price USD

**80,980**

Position value USD

**$81,196,944.61**

Unrealized P&L USD

**−$855,025.39**

7 Oct 16:00 to 8 Oct 16:00 2026 UTC

7 Oct 16:00 to 8 Oct 16:00 2026 UTC

## Connect your client with OAuth

Add the remote server URL and complete your client’s OAuth sign-in. Your client manages its token; there is no local server to run.

`https://mcp.0xarchive.io/mcp`

## Market data in your agent workflow

Use Claude, ChatGPT, Codex, Cursor or another compatible remote MCP client. Follow the setup for the client you already use.

Claude

ChatGPT

Codex

Cursor

Other compatible remote MCP clients

## A question, a history window, an answer

Ask for dated market observations or public position history. Let your client retrieve the fields your research needs instead of guessing endpoints.

### Market summaries

Read price, funding and open interest together.

### Historical bars

Retrieve dated OHLCV bars for analysis.

### Public position history

Read periodic position observations through typed tools.

## Connect your agent to the archive.

Add the hosted URL and complete your client’s OAuth connection.

[Choose your client](https://docs.0xarchive.io/mcp-server#client-setup)

[Client setup](https://docs.0xarchive.io/mcp-server#client-setup) [Build directly with REST](https://0xarchive.io/rest-api) [Explore account position history](https://0xarchive.io/data-types/account-positions) [WebSocket market data](https://0xarchive.io/websocket) [Hyperliquid and Lighter market data](https://0xarchive.io/data-types) [Replayable market data for agent workflows](https://0xarchive.io/resources/market-data-guides/replayable-market-data-for-mcp-cli-and-agent-workflows) [Hyperliquid market data](https://0xarchive.io/hyperliquid) [Lighter market data](https://0xarchive.io/lighter)
