# perp-cli MCP server

> Lets an AI client trade perpetual futures across multiple DEXs, compare funding rates, manage portfolios, and run trading bots.

- Repository: https://github.com/hypurrquant/perp-cli
- Page: https://hostedmcp.org/servers/hypurrquant/perp-cli
- Transport: stdio
- Stars: 42
- License: MIT

## Install

### Claude Code

```sh
claude mcp add perp-cli -- npx -y perp-cli
```

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

```json
{
  "mcpServers": {
    "perp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "perp-cli"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "perp-cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "perp-cli"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"perp-cli","type":"stdio","command":"npx","args":["-y","perp-cli"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "perp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "perp-cli"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add perp-cli -- npx -y perp-cli
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.perp-cli]
command = "npx"
args = ["-y", "perp-cli"]
```

### Gemini CLI

```sh
gemini mcp add -s user perp-cli npx -- -y perp-cli
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "perp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "perp-cli"
      ]
    }
  }
}
```

## FAQ

### Does perp-cli MCP server need API keys for market data?

No. Market data tools work without keys; account and trading tools require running perp setup first so the server can read the same wallet.

### How many MCP tools does perp-mcp expose?

perp-mcp serves 31 tools to Claude Desktop, Cursor and other MCP clients.

### How do I configure the perp-cli MCP server?

Add an mcpServers entry with command npx and args -y -p perp-cli perp-mcp. Never put private keys in the MCP config.

### Can perp-cli scan for funding rate arbitrage opportunities?

Yes, it supports perp-perp and spot-perp funding rate scans with one-command dual-leg entry and exit.

### Which exchanges does perp-cli support for trading?

It trades on 10 venues including Hyperliquid (with HIP-3 dexes), Pacifica, Lighter, Aster, Ondo Perps, Arcus, QFEX, RISEx and TxFlow.
