Introducing Mudrex MCP
Now Trade Crypto with AI

What is MCP?

Model Context Protocol (MCP) is an open standard that connects AI apps to your tools and data — like USB-C, but for AI.

One Protocol, Every Tool

Instead of building a custom integration for each AI + exchange pair, MCP gives you one shared interface.

Open and Model-Agnostic

Works with Claude, ChatGPT, Gemini, and open-source models — any app that speaks MCP.

Secure by Design

Every tool call requires your approval. Your AI cannot act without permission.

How It Works

Three parts. One flow.

  1. 1

    Your AI App

    Any AI-powered app — Claude Desktop, Cursor, or a custom agent — runs an MCP client.

  2. 2

    The Mudrex MCP Server

    A lightweight server that exposes trading tools: place orders, read positions, and fetch market data.

  3. 3

    You Approve Each Action

    The AI proposes a trade or query. You confirm before anything executes.

API Key Creation

Generate a Mudrex API key and secret to authenticate MCP. Use the API secret as API_SECRET in your Claude config. See API key setup on the Mudrex docs.

API Key Management

Production Trading BotActive

Created: 4th Sep 2025

•••••••••••••••••••••••••••
API Key will expire on: 4th Sep 2026

Note: If your secret key is lost, you can rotate your API keys. This will generate a new Secret key for your application.

  1. 1Open Settings → Developer
  2. 2Click Generate New Key
  3. 3Copy and store it securely

Setting Up Claude Desktop

Add the Mudrex MCP server to Claude Desktop in a few minutes. In Settings → Developer → Edit Config, paste the JSON below into claude_desktop_config.json, set API_SECRET to your Mudrex API secret, and restart. Requires Node.js (for npx).

claude_desktop_config.json
{
  "mcpServers": {
    "mcp-futures-trading": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mudrex.com/mcp",
        "--header",
        "X-Authentication:${API_SECRET}"
      ],
      "env": {
        "API_SECRET": "<your-api-secret>"
      }
    }
  }
}

What Can You Do?

Run your entire trading workflow from a chat window — positions, orders, leverage, and market data.

View Open Positions

Ask for PnL, exposure, and open trades across all markets in a single message.

Close Positions

"Close all my BTC longs" — natural language in, closing orders out.

Change Leverage

Adjust leverage on any pair without opening the exchange UI.

Execute Market Orders

Buy or sell any supported asset directly from your chat interface.

Fetch Market Data

Pull real-time prices, order book depth, and k-line history for analysis.

Cancel Open Orders

"Cancel all my pending ETH orders" — revoke unfilled orders without opening the exchange.

Available MCP Tools

The Mudrex MCP server exposes futures trading tools your AI can call. Actions marked Required in the tables below need your approval before they run.

View the official MCP integration guide

Note: Transfer funds from your SPOT wallet to your FUTURES wallet in the Mudrex app or web platform before trading via MCP.

Orders

ToolDescriptionConfirmation
place_orderPlace LONG/SHORT (optionally attach SL/TP)Required
amend_orderAmend an existing order (price / SL / TP)Required
cancel_orderCancel an orderRequired
get_ordersList open orders
get_orderFetch a specific order by order_id
get_order_historyHistorical orders

Positions

ToolDescriptionConfirmation
get_positionsList open positions
close_positionClose a positionRequired
reverse_positionReverse a positionRequired
get_position_historyHistorical positions

Risk management (SL/TP)

ToolDescriptionConfirmation
place_risk_orderPlace stop-loss / take-profit on a positionRequired
amend_risk_orderAmend stop-loss / take-profit on a positionRequired
get_liquidation_priceCompute liquidation price for a position

Leverage & margin

ToolDescriptionConfirmation
get_leverageGet current leverage for a contract
set_leverageSet leverage for a contractRequired
add_marginAdd margin to a positionRequired

Markets & account

ToolDescriptionConfirmation
list_futuresList all available futures contracts
get_futureGet details for a contract (by id or symbol)
get_available_fundsAvailable funds for trading
get_fee_historyFee history

Frequently Asked Questions

Start Building with Mudrex MCP

Generate your API key, add the config, and connect your AI to Mudrex in minutes.