New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

lighter-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lighter-mcp

MCP server for Lighter perpetuals, including the H100 compute-price market. Built by Prism. Not affiliated with, endorsed by, or operated by Lighter or elliottech.

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
34
3.03%
Maintainers
1
Weekly downloads
 
Created
Source

lighter-mcp

An MCP server that gives an agent read access to Lighter markets and a guarded path to place orders, including market 182, the perpetual on NVIDIA H100 rental cost.

Built by Prism. Not affiliated with, endorsed by, or operated by Lighter or elliottech.

Run it

npx -y lighter-mcp

Node 20 or newer. The server speaks MCP over stdio and writes diagnostics to stderr.

Client configuration

{
  "mcpServers": {
    "lighter": {
      "command": "npx",
      "args": ["-y", "lighter-mcp"],
      "env": {
        "LIGHTER_NETWORK": "mainnet"
      }
    }
  }
}

Tools

ToolArgumentsSigns
lighter_marketsquery, limitno
lighter_marketmarket_id or symbol, depthno
lighter_h100noneno
lighter_fundingmarket_id or symbol, history_limitno
lighter_accountaccount_index, optional market selectorno
lighter_place_ordermarket selector, side, size, order_type, price, max_notional_usdyes
lighter_cancelmarket selector, order_indexyes
lighter_cancel_allnoneyes
lighter_hedge_h100gpu_hours, side, max_notional_usd, executeonly when execute is true

Lighter cancels account-wide, so lighter_cancel_all clears every market and cannot be scoped to one. Order indexes travel as decimal strings, since they exceed the safe integer range.

lighter_markets reads Lighter's market-detail route. That route carried 229 markets on mainnet on 2026-08-26, and the response reports the live count.

lighter_funding returns Lighter's own rates. The same route carries Binance, Bybit, and Hyperliquid for reference, and those rows are left out, since a position opened here collects Lighter's rate.

Responses are JSON, capped at 16,000 characters. Long lists are shortened and the count of omitted items is reported, so a full market listing cannot flood the context.

Environment

VariableRequiredPurpose
LIGHTER_NETWORKnomainnet, testnet, or robinhood. Defaults to mainnet
LIGHTER_ACCOUNT_INDEXfor signingSub-account the agent trades from
LIGHTER_API_KEY_INDEXfor signingAPI key slot, 0 to 254
LIGHTER_API_KEY_PRIVATE_KEYfor signingAPI key private key
LIGHTER_MAX_NOTIONAL_USDfor signingPer-order notional ceiling, no default
LIGHTER_CHAIN_IDon robinhoodLayer-2 chain id bound into every signature
LIGHTER_READ_ONLY_TOKENnoRead account state without a signing key

Set all four signing variables or none. A partial set stops the server at startup with a message naming what is missing, rather than starting in a state where an order fails halfway through.

Mainnet signs against chain id 304 and testnet against 300, so LIGHTER_CHAIN_ID is only there to override them. Lighter on Robinhood Chain publishes no chain id, so signing there needs one, and the server stops at startup instead of letting the first order fail at the signer.

How the write path is guarded

  • lighter_place_order and lighter_hedge_h100 require max_notional_usd on every call. There is no default and no way to opt out.
  • The order is priced against one book snapshot and checked as a dry run. A worst-case notional above the ceiling is refused before a signature exists, and the order that is signed is the one that was checked.
  • The server applies its own LIGHTER_MAX_NOTIONAL_USD as a second ceiling, and the lower of the two wins.
  • lighter_hedge_h100 returns a plan and sends nothing unless execute is true.
  • There is no transfer tool and no change-pubkey tool.

A Lighter API key is full write authority over the account it is bound to, so run this server against a dedicated sub-account funded with only what the agent may lose.

Limitations

The H100 book is thin. Measured on 2026-08-26 it traded about $7,100 over 24 hours, held open interest near $10,000, and showed 4.00 of size at the top of book on each side. Lighter's Standard rate tier allows 60 requests per minute, so the server caches the market list for 30 seconds.

License

Apache-2.0. See LICENSE and NOTICE.

Keywords

mcp

FAQs

Package last updated on 02 Sep 2026

Related posts