Paradex Trading

io.github.tradeparadex由 GitHub 帳號 tradeparadex 發布v0.1.2更新於 Oct 24, 2026

MCP server for Paradex perp trading. Market data, accounts, orders, positions, and vaults.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

把 AI 助理連接到 Starknet 上的 Paradex 交易所,可查詢行情、帳戶與金庫,並下單或取消訂單。

可以做什麼
  • 讀取系統與行情資料:系統設定與狀態、市場清單、市場摘要、資金費率、訂單簿、K 線、成交、最佳買賣價
  • 檢視帳戶:帳戶摘要、持倉、成交明細、資金費支付、交易紀錄
  • 管理訂單:查詢未成交訂單、建立訂單、取消訂單、查詢訂單狀態與歷史
  • 檢視金庫:金庫清單與設定、餘額、摘要、存取紀錄、持倉、帳戶資訊
  • 使用內建分析提示詞:市場總覽、持倉與投資組合風險、對沖、清算保護、金庫與資金費率機會
適用情境
適合讓助理研究 Paradex 永續合約行情、檢視持倉與金庫,或用自然語言草擬並送出訂單。建議先在測試網試用交易流程,再切換到正式環境。
執行需求
以本機 Python 套件執行(需 Python 3.10+,建議使用 uv 或 uvx)。僅公開行情不需憑證;交易需要 PARADEX_ACCOUNT_PRIVATE_KEY,或使用簽章代理模式的四個變數。PARADEX_ENVIRONMENT 選擇 prod、testnet 或 nightly。需能連線 Paradex API,並支援代理相關環境變數。
安裝前請注意
交易需在 PARADEX_ACCOUNT_PRIVATE_KEY 提供以太坊私鑰,該金鑰可控制帳戶,請勿寫入共用設定,優先使用簽章代理模式或測試網。下單與取消訂單工具會操作真實訂單並可能動用資金。請求會送往 Paradex,若設定了代理也會經過代理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Paradex Trading,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

MCP Paradex Server

[smithery badge]

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

[Paradex Server MCP server]

Quickstart

New here? See the Quickstart Guide for step-by-step setup instructions for Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Claude.ai web, and ChatGPT.

Need a remote HTTP endpoint for ChatGPT or Claude.ai web? See the HTTP Deployment Guide for Railway, Render, Fly.io, AWS Lambda, and Docker/VPS options.

Overview

This project provides a bridge between AI assistants (like Claude) and Paradex, a privacy-preserving multi-asset exchange on Starknet with spot, perpetuals, options, and commodity futures. 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+

  • uv — required for the uvx run method

    macOS: Install via brew install uv so the binary lands in /usr/local/bin, which GUI apps like Claude Desktop can find. The curl-pipe install puts uv in ~/.local/bin, which GUI apps cannot see.

Installation

Quick Start

Cursor IDE

Click to automatically configure this MCP server in Cursor:

[Install MCP Server]

Claude Code CLI
bash
claude mcp add paradex uvx mcp-paradex
Smithery (Claude Desktop)
bash
npx -y @smithery/cli@latest mcp add @tradeparadex/mcp-paradex-py --client claude

Standard Installation

PyPI
bash
pip install mcp-paradex
uvx (Recommended)
bash
uvx mcp-paradex

Development Setup

  1. Clone the repository:

    bash
    git clone https://github.com/tradeparadex/mcp-paradex-py.gitcd mcp-paradex-py
  2. Install development dependencies:

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

    bash
    uv run mcp-paradex

Configuration

Environment Variables

Set these environment variables for authentication:

  • PARADEX_ENVIRONMENT: Set to prod, testnet, or nightly (default: prod)
  • PARADEX_ACCOUNT_PRIVATE_KEY: Your Paradex account private key
Signer mode (no private key)

To trade through a signing proxy that holds the key, set these four and leave PARADEX_ACCOUNT_PRIVATE_KEY unset:

  • PARADEX_SIGNER_HEADER: the header the server puts each message hash in, base64
  • PARADEX_SIGNER_SIGNATURE: the placeholder the server sends as the signature, for the proxy to replace
  • PARADEX_ACCOUNT_ADDRESS: your Paradex account address
  • PARADEX_ACCOUNT_PUBLIC_KEY: the public key of the key the proxy signs with

Every tool call returns a configuration error while any of the four is missing. If a private key is also set, the server uses the signer and logs a warning. Block-trade tools are not available in signer mode.

Outbound proxy

The server sends Paradex API requests through HTTPS_PROXY, HTTP_PROXY or ALL_PROXY when set, skips the hosts listed in NO_PROXY, and trusts the CA bundle in SSL_CERT_FILE.

Using .env File

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

Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "paradex": {      "command": "uvx",      "args": ["mcp-paradex"],      "env": {        "PARADEX_ENVIRONMENT": "testnet",        "PARADEX_ACCOUNT_PRIVATE_KEY": "your_private_key"      }    }  }}
Docker (local / stdio)
bash
# Build imagedocker build . -t tradeparadex/mcp-paradex-py
# Run (public only)docker run --rm -i tradeparadex/mcp-paradex-py
# Run with trading capabilitiesdocker run --rm -e PARADEX_ACCOUNT_PRIVATE_KEY=your_key -i tradeparadex/mcp-paradex-py
Docker (AWS Lambda / HTTP)

Use Dockerfile.aws for remote deployments via AWS Lambda with the Lambda Web Adapter. The adapter bridges Lambda invocations to the server's HTTP endpoint, so no Lambda-specific code is needed.

bash
# Builddocker build -f Dockerfile.aws -t tradeparadex/mcp-paradex-py-aws .
# Test locally (mirrors Lambda config)docker run --rm -p 8080:8080 \  -e MCP_TRANSPORT=streamable-http \  -e MCP_STATELESS=true \  -e MCP_PORT=8080 \  -e PARADEX_ENVIRONMENT=prod \  tradeparadex/mcp-paradex-py-aws

The server will be available at http://localhost:8080/mcp.

Deploying to Lambda:

  1. Push the image to ECR
  2. Create a Lambda function from the container image
  3. Set the Lambda Function URL invoke mode to RESPONSE_STREAM
  4. Set environment variables on the Lambda function:
    • MCP_TRANSPORT=streamable-http
    • MCP_STATELESS=true
    • PARADEX_ENVIRONMENT=prod (or testnet)
    • PARADEX_ACCOUNT_PRIVATE_KEY=your_key (optional, for trading)

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:

json
"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

來源:README.md,提交 6922474

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分