# Hypelens Agent Rail

> Hypelens Agent Rail is an open-source MCP server. Place/cancel/close HL perps via MCP. Agent wallet once, 1bp fills, no sub. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/polyparlay/hypelens/tree/HEAD/agent-rail
- **MCP Registry name:** io.github.polyparlay/hypelens-agent-rail
- **Listing updated:** 2026-11-13

## About

Place/cancel/close HL perps via MCP. Agent wallet once, 1bp fills, no sub.

## Install

### Claude Code (Terminal)

```sh
claude mcp add hypelens-agent-rail --env HYPELENS_AGENT_PK='<HYPELENS_AGENT_PK>' -- npx -y @hypelens/hypelens-agent-rail
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "hypelens-agent-rail": {
      "command": "npx",
      "args": [
        "-y",
        "@hypelens/hypelens-agent-rail"
      ],
      "env": {
        "HYPELENS_AGENT_PK": "<HYPELENS_AGENT_PK>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "hypelens-agent-rail": {
      "command": "npx",
      "args": [
        "-y",
        "@hypelens/hypelens-agent-rail"
      ],
      "env": {
        "HYPELENS_AGENT_PK": "<HYPELENS_AGENT_PK>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "hypelens-agent-rail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hypelens/hypelens-agent-rail"
      ],
      "env": {
        "HYPELENS_AGENT_PK": "<HYPELENS_AGENT_PK>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "hypelens-agent-rail": {
      "command": "npx",
      "args": [
        "-y",
        "@hypelens/hypelens-agent-rail"
      ],
      "env": {
        "HYPELENS_AGENT_PK": "<HYPELENS_AGENT_PK>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "hypelens-agent-rail": {
      "command": "npx",
      "args": [
        "-y",
        "@hypelens/hypelens-agent-rail"
      ],
      "env": {
        "HYPELENS_AGENT_PK": "<HYPELENS_AGENT_PK>"
      }
    }
  }
}
```

## FAQ

### Is Hypelens Agent Rail free?

Yes. Hypelens Agent Rail is open source, so you can use and self-host it for free.

### How do I add Hypelens Agent Rail to Claude Code?

Run this command in your terminal: claude mcp add hypelens-agent-rail --env HYPELENS_AGENT_PK='<HYPELENS_AGENT_PK>' -- npx -y @hypelens/hypelens-agent-rail

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/hypelens-agent-rail
