Skip to main content
Glama

nerve-mcp

MCP server for NERVE — the AI-powered perpetual DEX. Trade any market with AI conviction scoring, directly from Claude, GPT, Cursor, or any MCP-compatible agent.

What it does

Exposes NERVE's trading API as MCP tools so AI assistants can:

  • Browse markets and orderbooks

  • Place trades (market and limit orders) with leverage

  • Monitor positions and account balance

  • Get AI conviction scores before trading

  • Pull OHLCV candle data for analysis

  • View your AI behavioral trading profile

Related MCP server: bybit-trading-mcp

Install

npm install -g nerve-mcp

Or run directly with npx:

npx nerve-mcp

Configuration

Set your NERVE API key as an environment variable:

export NERVE_API_KEY=nrv_sk_your_key_here

Optional: override the API URL (defaults to https://nerve-opal.vercel.app):

export NERVE_API_URL=https://your-nerve-instance.com

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "nerve": {
      "command": "npx",
      "args": ["-y", "nerve-mcp"],
      "env": {
        "NERVE_API_KEY": "nrv_sk_your_key_here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "nerve": {
      "command": "npx",
      "args": ["-y", "nerve-mcp"],
      "env": {
        "NERVE_API_KEY": "nrv_sk_your_key_here"
      }
    }
  }
}

Available Tools

Tool

Description

get_markets

List all trading pairs with prices, 24h change, volume

get_market_detail

Detailed info for one market (funding rate, OI, stats)

get_orderbook

Order book with bids, asks, and spread

place_order

Place a market or limit order with leverage

get_positions

View all open positions with PnL

close_position

Close a position by symbol

get_account

Account equity, margin, and unrealized PnL

get_ai_score

AI conviction score for a potential trade (0-100)

get_ai_profile

Your AI behavioral trading profile and insights

get_candles

OHLCV candlestick data for technical analysis

Examples

Once configured, you can ask your AI assistant things like:

  • "What markets are available on NERVE?"

  • "Show me the BTC-PERP orderbook"

  • "What's the AI conviction score for longing ETH at 5x leverage?"

  • "Place a market buy for 0.1 BTC-PERP at 10x leverage"

  • "What are my open positions?"

  • "Show me my trading profile"

Development

git clone https://github.com/LXGIC-Studios/nerve-mcp.git
cd nerve-mcp
npm install
npm run build

Test locally with the MCP inspector:

npx @modelcontextprotocol/inspector node dist/index.js

License

MIT


Built by LXGIC Studios

GitHub · Twitter

Want more free tools like this? We have 100+ on our GitHub: github.com/lxgicstudios

Available Tools

10 tools
close_positionC

Close an open position for a specific symbol

Inputs: symbol (required).

get_accountA

Get account summary including equity, available margin, unrealized PnL, and margin usage

Inputs: no named parameters.

get_ai_profileB

Get the user's AI behavioral trading profile with discipline score, emotional stability, win rate, best/worst pairs, optimal hours, and personalized insights

Inputs: no named parameters.

get_ai_scoreA

Get AI conviction score for a potential trade. Returns 0-100 conviction, recommendation, risk flags, and suggested position size.

Inputs: side (required), size (required), symbol (required), leverage (required).

get_candlesC

Get OHLCV candlestick chart data for technical analysis

Inputs: symbol (required), interval (required), limit.

get_market_detailB

Get detailed info for a specific market including price, orderbook summary, funding rate, open interest, and 24h stats

Inputs: symbol (required).

get_marketsA

List all available trading pairs with real-time prices, 24h change, volume, and max leverage

Inputs: no named parameters.

get_orderbookB

Get the order book for a symbol with bids, asks, and spread

Inputs: symbol (required), depth.

get_positionsA

Get all open positions with entry price, current price, PnL, and leverage

Inputs: no named parameters.

place_orderC

Place a trade on NERVE. Supports market and limit orders with configurable leverage.

Inputs: side (required), size (required), type (required), symbol (required), +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource+action (place_order vs close_position vs get_positions vs get_account). There is mild overlap between get_markets, get_market_detail, and get_orderbook since the detail tool already includes an orderbook summary and 24h stats, but descriptions give enough cues to separate list/detail/book use cases.

    Naming Consistency5/5

    Every tool follows the same snake_case verb_noun convention (place_order, get_positions, get_market_detail, close_position, get_ai_score). get_ai_score/get_ai_profile are a consistent sub-family and remain clearly readable.

    Tool Count5/5

    Ten tools is a well-scoped surface for a trading client: ordering, positions, market data, account, and AI signals. Each tool covers a distinct capability without filler.

    Completeness3/5

    Core read paths and order entry/exit are covered, but place_order supports limit orders with no cancel_order or list_open_orders tool, and there is no order/trade history or leverage/margin adjustment. Agents can trade but cannot manage resting orders, which is a notable lifecycle gap.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP-compatible AI clients to access live crypto market data and AI-driven quantitative analysis, with structured outputs and full observability.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI tools to execute trades and fetch market data across six crypto exchanges via natural language or API, with dual Telegram and MCP interfaces.
      2
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables agents to access live crypto market data and execute risk-controlled paper trades through standardized MCP tool calls.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to discover trading domains, inspect bots, backtest and submit crypto trading strategies for validation and live deployment, and monitor tournament and leaderboard status via MCP tools.
      9
      MIT