Perp Cli logo

Perp Cli

by hypurrquant

Trades and analyzes perpetual futures across multiple DEXs through an MCP server with JSON output and dry-run controls.

Install Perp Cli

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hypurrquant-perp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "perp-cli",
        "perp-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

hypurrquant/perp-cli connects AI agents to perpetual-futures venues including Hyperliquid, Pacifica, Lighter, and additional supported exchanges. Its 18 tools cover market data, trade execution, portfolio analytics, funding-rate arbitrage, and cross-exchange comparison. The packaged MCP server uses stdio and supports JSON-oriented workflows with dry-run validation before signed actions. Reach for it when an agent needs to monitor or operate multi-venue perpetual positions from one interface.

Use cases

  • Scan funding rates across perpetual venues
  • Compare order books and market data across exchanges
  • Validate and execute multi-venue trades
  • Review balances, positions, and portfolio risk
  • Monitor or run funding-arbitrage workflows

Key features

  • 18 MCP tools for perpetual-futures workflows
  • Market data and cross-exchange comparison
  • Trade execution with dry-run validation
  • Funding-rate arbitrage scanning and execution
  • Unified portfolio and risk analytics
  • JSON, field-filtered, and NDJSON output

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

20/20 checks healthy over the last 89d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · perp-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars40Stargazers on the source repository.
npm downloads942Package downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Perp Cli works

What hypurrquant/perp-cli does

hypurrquant/perp-cli exposes multi-venue perpetual-futures operations through an MCP server backed by the perp-cli command-line package. It covers market inspection, account and portfolio data, trade execution, funding-rate arbitrage, risk checks, and cross-exchange comparisons.

The supported trading venues include Hyperliquid, Pacifica, Lighter, Lighter RH, Aster, Ondo Perps, Arcus, QFEX, RISEx, and TxFlow. GRVT, Extended, and Variational provide market data, while Derive provides options data. Venue capabilities differ: some support trading only with restrictions, and some are data-only.

How it works

The package includes three executables: perp for the main CLI, perp-mcp for the stdio MCP server, and perp-guardrail for signing protection. An MCP-compatible agent can use the server to request structured results from the same command and venue model used by the CLI.

Market-data operations can be used without keys. Account access and trading use wallet configuration created through the setup flow, which creates or imports an encrypted Open Wallet Standard vault wallet. The setup process can register agent keys and asks for confirmation before signatures. A single EVM key covers Hyperliquid, Lighter, and Aster.

Agent-oriented output includes JSON, field selection, newline-delimited JSON, and dry-run modes. Market orders have a slippage bound, and the CLI includes pre-trade validation and client-id deduplication.

Setup and configuration

Install the package globally with npm:

Terminal
npm install -g perp-cli

The MCP executable is then available as:

bash
perp-mcp

Alternatively, use the package without a global install through npx. Run perp setup to create or import a wallet, select venues, and configure agent keys. Keys are entered through a hidden prompt or stdin rather than command-line arguments or ~/.perp/.env. Add -n testnet to CLI commands that should target a test network.

Tools and capabilities

The server covers the following operational areas:

  • Query market lists, prices, order books, funding rates, and klines.
  • Inspect balances, positions, orders, margin, portfolio risk, and execution history.
  • Submit market, limit, and stop orders, close positions, and perform scale or split execution.
  • Scan and execute perpetual-perpetual or spot-perpetual funding arbitrage.
  • Compare venues and return unified cross-exchange portfolio information.
  • Run dry-run checks before sending trade or funds operations.
  • Work with deposits, withdrawals, transfers, bridges, and inter-exchange rebalancing.
  • Manage strategy jobs such as grid, DCA, TWAP, trailing-stop, and other bot algorithms.

Limitations and notes

Trading support varies by venue. QFEX, RISEx, and TxFlow are marked for manual trading only, while Arcus and some other paths have access or whitelist requirements. RISEx and TxFlow mainnet support has not been verified. GRVT, Extended, and Variational are market-data venues in the support matrix, and Derive is used for options data.

Signing and fund movement require wallet access and user confirmation. Dry-run mode validates operations without sending them, but it is a validation mechanism rather than a substitute for exchange, wallet, or venue risk controls. The package also documents venue-specific differences for funding, WebSocket support, deposits, withdrawals, and restricted regions.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Perp Cli

hypurrquant/perp-cli is an MCP server that connects AI agents to perpetual-futures venues including Hyperliquid, Pacifica, Lighter, and others. Its main tools provide market data, trade execution, portfolio analytics, funding-rate arbitrage scanning, and cross-exchange comparison, with dry-run support for validating actions before signing.

Install it with `npm install -g perp-cli`, then run the included `perp-mcp` executable as a stdio MCP server. You can also use the package through `npx` without a global installation. Wallet setup is handled separately with `perp setup` when account access or trading is needed.

Yes, hypurrquant/perp-cli supports dry-run validation for trading and other operations. Use the CLI's `--dry-run` option to validate an action without sending it, while market orders also apply a configured slippage bound.

hypurrquant/perp-cli supports trading on Hyperliquid, Pacifica, Lighter, Lighter RH, Aster, Ondo Perps, Arcus, QFEX, RISEx, and TxFlow, with venue-specific restrictions. GRVT, Extended, and Variational provide market data, and Derive provides options data.

Yes, the project names Cursor as a supported agent environment and provides an installable agent skill through `npx skills add hypurrquant/perp-cli`. The MCP executable itself uses stdio, while the bundled skill supplies command guidance and operational workflows for Cursor and other agent CLIs.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPerp Cli AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hypurrquant-perp-cli?style=directory)](https://allmcps.com/mcp/hypurrquant-perp-cli)
HTML Embed
<a href="https://allmcps.com/mcp/hypurrquant-perp-cli"><img src="https://allmcps.com/api/badge/hypurrquant-perp-cli?style=directory" alt="Perp Cli on AllMCPs" /></a>