Skip to content
VS Code

lighter mcp for VS Code

io.github.winter0x/lighter-mcp

Read Lighter perpetual markets and place guarded orders, including the H100 compute-price market.

client:VS Code transport:stdio runtime:npm

Install lighter mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "lighter-network",
      "description": "LIGHTER_NETWORK",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lighter-account-index",
      "description": "LIGHTER_ACCOUNT_INDEX",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lighter-api-key-index",
      "description": "LIGHTER_API_KEY_INDEX",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lighter-api-key-private-key",
      "description": "LIGHTER_API_KEY_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lighter-max-notional-usd",
      "description": "LIGHTER_MAX_NOTIONAL_USD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lighter-chain-id",
      "description": "LIGHTER_CHAIN_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lighter-read-only-token",
      "description": "LIGHTER_READ_ONLY_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "lighter-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "lighter-mcp"
      ],
      "env": {
        "LIGHTER_NETWORK": "${input:lighter-network}",
        "LIGHTER_ACCOUNT_INDEX": "${input:lighter-account-index}",
        "LIGHTER_API_KEY_INDEX": "${input:lighter-api-key-index}",
        "LIGHTER_API_KEY_PRIVATE_KEY": "${input:lighter-api-key-private-key}",
        "LIGHTER_MAX_NOTIONAL_USD": "${input:lighter-max-notional-usd}",
        "LIGHTER_CHAIN_ID": "${input:lighter-chain-id}",
        "LIGHTER_READ_ONLY_TOKEN": "${input:lighter-read-only-token}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

lighter mcp in other clients