Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LIGHTER_URLNoAPI base URLmainnet
LIGHTER_READ_ONLYNoIf 'true', disables order-placement tools
LIGHTER_PRIVATE_KEYNoAPI-key private key for TRADE mode
LIGHTER_MAX_SLIPPAGENoMax slippage fraction on market orders0.005
LIGHTER_ACCOUNT_INDEXNoSub-account index for READ+ mode
LIGHTER_API_KEY_INDEXNoIndex of the API key2
LIGHTER_MAX_QUOTE_USDNoCap on opening trade size in USDC100
LIGHTER_MCP_LOG_LEVELNoLog level on stderrINFO
LIGHTER_NO_INTEGRATORNoIf 'true', strips integrator params entirely
LIGHTER_ALLOWED_SYMBOLSNoComma-separated symbol allowlist
LIGHTER_INTEGRATOR_MAKER_FEENoOverride maker fee (raw int)100
LIGHTER_INTEGRATOR_TAKER_FEENoOverride taker fee (raw int)200
LIGHTER_INTEGRATOR_ACCOUNT_INDEXNoOverride integrator account (forks)725426

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
how_to_approve_integratorA

How to opt in to sending integrator fees to the lighter-mcp maintainer.

Use this if a user asks how to support the project, how integrator attribution works in practice, or how to make fees actually flow.

Returns instructions for both the browser-based flow (recommended — wallet UI handles the L1 signature, no private key exposure) and the CLI fallback for power users. No call is made to Lighter from this tool.

get_statusA

Server diagnostics: current mode, safety policy, and integrator attribution.

Reveals no secrets — safe to call from any client. Use this to verify:

  • which tier the server is running in (PUBLIC / READ / TRADE)

  • active safety limits (max_quote_usd, max_slippage, allowed_symbols)

  • whether integrator/partner attribution is active and at what fee rates

Anyone curious about fees should call this tool — it's the authoritative answer.

list_marketsA

List all tradeable perpetual markets on Lighter.

Returns symbol, market_index, min_base_amount, min_quote_amount, price_tick, size_tick, max_leverage for each market.

get_marketA

Get metadata for a single market by symbol (e.g. 'HYPE', 'ETH').

Returns None if the symbol is not listed.

get_candlesA

OHLCV candles for a market.

Args: symbol: e.g. 'HYPE', 'ETH' interval: minutes per candle — 1, 5, 15, 60, 240, or 1440 (1d) limit: number of candles back from now (max ~500)

get_tickerB

Current best bid / best ask / last price for a market.

get_orderbookC

Top-N order book levels.

Returns {"bids": [[price, size], ...], "asks": [[price, size], ...]}.

get_funding_rateB

Current funding rate and next funding timestamp for a perp market.

Funding occurs every 8h. Positive rate = longs pay shorts.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xDegenMo/lighter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server