Skip to main content

MCP server for Paradex trading platform integration

Project description

MCP Paradex Server

smithery badge

Model Context Protocol (MCP) server implementation for the Paradex trading platform.

Paradex Server MCP server

Overview

This project provides a bridge between AI assistants (like Claude) and the Paradex perpetual futures trading platform. Using the MCP standard, AI assistants can:

  • Retrieve market data from Paradex
  • Manage trading accounts and vaults
  • Place and manage orders
  • Monitor positions and balance

Prerequisites

  • Python 3.10+

Installation

Quick Start

Cursor IDE

Click to automatically configure this MCP server in Cursor:

Install MCP Server

Claude Code CLI

claude mcp add paradex uvx mcp-paradex

Smithery (Claude Desktop)

npx -y @smithery/cli install @sv/mcp-paradex-py --client claude

Standard Installation

PyPI

pip install mcp-paradex

uvx (Recommended)

uvx mcp-paradex

Development Setup

  1. Clone the repository:

    git clone https://github.com/sv/mcp-paradex-py.git
    cd mcp-paradex-py
    
  2. Install development dependencies:

    uv sync --dev --all-extras
    
  3. Run locally:

    uv run mcp-paradex
    

Configuration

Environment Variables

Set these environment variables for authentication:

  • PARADEX_ENVIRONMENT: Set to testnet or mainnet
  • PARADEX_ACCOUNT_PRIVATE_KEY: Your Paradex account private key

Using .env File

cp .env.template .env
# Edit .env with your credentials

Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "paradex": {
      "command": "uvx",
      "args": ["mcp-paradex"],
      "env": {
        "PARADEX_ENVIRONMENT": "testnet",
        "PARADEX_ACCOUNT_PRIVATE_KEY": "your_private_key"
      }
    }
  }
}

Docker

# Build image
docker build . -t sv/mcp-paradex-py

# Run (public only)
docker run --rm -i sv/mcp-paradex-py

# Run with trading capabilities
docker run --rm -e PARADEX_ACCOUNT_PRIVATE_KEY=your_key -i sv/mcp-paradex-py

Available Resources and Tools

Resources

System Resources

  • paradex://system/config - Get Paradex system configuration
  • paradex://system/time - Get current system time
  • paradex://system/state - Get system operational state

Market Resources

  • paradex://markets - List of available markets
  • paradex://market/summary/{market_id} - Detailed market information

Vault Resources

  • paradex://vaults - List all vaults
  • paradex://vaults/config - Global vault configuration
  • paradex://vaults/balance/{vault_id} - Vault balance
  • paradex://vaults/summary/{vault_id} - Comprehensive vault summary
  • paradex://vaults/transfers/{vault_id} - Deposit/withdrawal history
  • paradex://vaults/positions/{vault_id} - Current trading positions
  • paradex://vaults/account-summary/{vault_id} - Trading account information

Tools

System Tools

  • paradex_system_config - Get global system configuration
  • paradex_system_state - Get current system state

Market Tools

  • paradex_markets - Get detailed market information
  • paradex_market_summaries - Get market summaries with metrics
  • paradex_funding_data - Get historical funding rate data
  • paradex_orderbook - Get current orderbook with customizable depth
  • paradex_klines - Get historical candlestick data
  • paradex_trades - Get recent trades
  • paradex_bbo - Get best bid and offer

Account Tools

  • paradex_account_summary - Get account summary
  • paradex_account_positions - Get current positions
  • paradex_account_fills - Get trade fills
  • paradex_account_funding_payments - Get funding payments
  • paradex_account_transactions - Get transaction history

Order Tools

  • paradex_open_orders - Get all open orders
  • paradex_create_order - Create new order
  • paradex_cancel_orders - Cancel existing orders
  • paradex_order_status - Get order status
  • paradex_orders_history - Get historical orders

Vault Tools

  • paradex_vaults - Get detailed vault information
  • paradex_vaults_config - Get global vault configuration
  • paradex_vault_balance - Get vault balance
  • paradex_vault_summary - Get comprehensive vault summary
  • paradex_vault_transfers - Get deposit/withdrawal history
  • paradex_vault_positions - Get current vault positions
  • paradex_vault_account_summary - Get vault trading account info

Trading Analysis Prompts

Market Analysis

  • market_overview - Comprehensive crypto market overview
  • market_analysis - Detailed technical and microstructure analysis

Position and Portfolio Management

  • position_management - Comprehensive position analysis
  • create_optimal_order - Design optimal order parameters
  • hedging_strategy - Develop effective hedging strategies
  • portfolio_risk_assessment - Thorough portfolio risk analysis
  • liquidation_protection - Identify and mitigate liquidation risks

Investment Strategies

  • vault_analysis - Comprehensive vault analysis for investment decisions
  • funding_rate_opportunity - Identify funding rate arbitrage opportunities
  • trading_consultation - Interactive trading advice and consultation

Documentation MCP

Enhanced results with Paradex documentation access:

"paradex-docs-mcp": {
   "command": "uvx",
   "args": [
      "--from",
      "mcpdoc",
      "mcpdoc",
      "--urls",
      "Paradex:https://docs.paradex.trade/llms.txt",
      "--transport",
      "stdio"
   ]
}

Contributing

Please see CONTRIBUTING.md for information on how to contribute to this project, development setup, and our coding standards.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_paradex-0.1.0.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_paradex-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_paradex-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_paradex-0.1.0.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_paradex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9db814697a14b6a824d0af8446858c03124e56bf864a6e55d2f1ee8eb2160b0b
MD5 93e57ae9fa505139c41708755c3df9d4
BLAKE2b-256 0811886c81038919d0aa06b22dd2e7912e0b4a6d5697573720d8dc3bb06b8fc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_paradex-0.1.0.tar.gz:

Publisher: publish.yml on sv/mcp-paradex-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_paradex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_paradex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_paradex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f2a51c8703a1c10cc931ccd0ecb5312f1d22be9e169347c9ed731ac9a18ebae
MD5 8ddbe1b4c4547cbb5e34adeaa562889f
BLAKE2b-256 3fbf369f406f5c4cb880a388944333a1764d3551132fef8a120fef28d21a94b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_paradex-0.1.0-py3-none-any.whl:

Publisher: publish.yml on sv/mcp-paradex-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page