# Lighter MCP

> Lighter MCP is an open-source MCP server. Read Lighter perpetual markets and place guarded orders, including the H100 compute-price market. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/winter0x/lighter-agent/tree/HEAD/packages/mcp
- **MCP Registry name:** io.github.winter0x/lighter-mcp
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add lighter-mcp --env LIGHTER_API_KEY_PRIVATE_KEY='<LIGHTER_API_KEY_PRIVATE_KEY>' --env LIGHTER_READ_ONLY_TOKEN='<LIGHTER_READ_ONLY_TOKEN>' -- npx -y lighter-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "lighter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lighter-mcp"
      ],
      "env": {
        "LIGHTER_API_KEY_PRIVATE_KEY": "<LIGHTER_API_KEY_PRIVATE_KEY>",
        "LIGHTER_READ_ONLY_TOKEN": "<LIGHTER_READ_ONLY_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "lighter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lighter-mcp"
      ],
      "env": {
        "LIGHTER_API_KEY_PRIVATE_KEY": "<LIGHTER_API_KEY_PRIVATE_KEY>",
        "LIGHTER_READ_ONLY_TOKEN": "<LIGHTER_READ_ONLY_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lighter-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "lighter-mcp"
      ],
      "env": {
        "LIGHTER_API_KEY_PRIVATE_KEY": "<LIGHTER_API_KEY_PRIVATE_KEY>",
        "LIGHTER_READ_ONLY_TOKEN": "<LIGHTER_READ_ONLY_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lighter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lighter-mcp"
      ],
      "env": {
        "LIGHTER_API_KEY_PRIVATE_KEY": "<LIGHTER_API_KEY_PRIVATE_KEY>",
        "LIGHTER_READ_ONLY_TOKEN": "<LIGHTER_READ_ONLY_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "lighter-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "lighter-mcp"
      ],
      "env": {
        "LIGHTER_API_KEY_PRIVATE_KEY": "<LIGHTER_API_KEY_PRIVATE_KEY>",
        "LIGHTER_READ_ONLY_TOKEN": "<LIGHTER_READ_ONLY_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is Lighter MCP free?

Yes. Lighter MCP is open source, so you can use and self-host it for free.

### How do I add Lighter MCP to Claude Code?

Run this command in your terminal: claude mcp add lighter-mcp --env LIGHTER_API_KEY_PRIVATE_KEY='<LIGHTER_API_KEY_PRIVATE_KEY>' --env LIGHTER_READ_ONLY_TOKEN='<LIGHTER_READ_ONLY_TOKEN>' -- npx -y lighter-mcp

---
Source: https://ai-powered.com/mcp/lighter-mcp
