PluginBench
MCP Server
Active
MIT

Reins MCP Server

io.github.R2Rlabs/hyperliquid-reins

What is the Reins MCP server?

Risk limits and an audit log for AI agents trading Hyperliquid, enforced outside the model.

How to install Reins

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • REINS_SYMBOLS
    required

    Markets the agent may trade, comma separated, e.g. BTC,ETH. Every other market is refused.

  • REINS_MAX_POSITION_USD
    required

    Largest position per market, in USD.

  • REINS_DAILY_LOSS_USD
    required

    Realised loss in a UTC day after which new risk is refused.

  • REINS_MAX_LEVERAGE

    Largest total exposure as a multiple of account value.

  • REINS_MODE

    paper (live prices, simulated fills, nothing signed) or live.

  • REINS_NETWORK

    Hyperliquid network for prices and, in live mode, orders. Mainnet spends real money.

  • REINS_REQUIRE_STOP_LOSS

    true to refuse any order that adds risk without a stop-loss.

  • REINS_LOG_FILE

    Decision log, one JSON line per action with the agent's stated reason. In memory if unset.

  • REINS_PAPER_FILE

    Where the paper account is kept between runs. In memory if unset.

  • REINS_ACCOUNT_ADDRESS

    Live mode: the Hyperliquid account traded. Approve Reins' 2 bp builder fee from it first: npx @r2rlabs/reins approve-builder

  • REINS_PRIVATE_KEY
    secret

    Live mode: an API wallet's key, which can trade but not withdraw. Never the account's own key.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "hyperliquid-reins": {
      "command": "npx",
      "args": [
        "-y",
        "@r2rlabs/reins"
      ],
      "env": {
        "REINS_SYMBOLS": "<YOUR_REINS_SYMBOLS>",
        "REINS_MAX_POSITION_USD": "<YOUR_REINS_MAX_POSITION_USD>",
        "REINS_DAILY_LOSS_USD": "<YOUR_REINS_DAILY_LOSS_USD>",
        "REINS_MAX_LEVERAGE": "<YOUR_REINS_MAX_LEVERAGE>",
        "REINS_MODE": "<YOUR_REINS_MODE>",
        "REINS_NETWORK": "<YOUR_REINS_NETWORK>",
        "REINS_REQUIRE_STOP_LOSS": "<YOUR_REINS_REQUIRE_STOP_LOSS>",
        "REINS_LOG_FILE": "<YOUR_REINS_LOG_FILE>",
        "REINS_PAPER_FILE": "<YOUR_REINS_PAPER_FILE>",
        "REINS_ACCOUNT_ADDRESS": "<YOUR_REINS_ACCOUNT_ADDRESS>",
        "REINS_PRIVATE_KEY": "<YOUR_REINS_PRIVATE_KEY>"
      }
    }
  }
}

Related MCP servers

Corporate travel booking and expense management for TripGain, exposed as an MCP server.

View repository →

Build product adoption your way - Product adoption infrastructure no-code or all-code.

Generate and manage Claude Code configs: CLAUDE.md, skills, agents, hooks, and MCP settings.

View repository →

Enterprise certification for codebases with multi-agent security, reliability, and quality audits

View repository →

Verify docs against code, detect drift, and generate verified specs (MCP server).

View repository →

Persistent AI memory for coding assistants. 80+ tools for decisions, patterns, errors.

View repository →