Skip to main content
Glama
MCP Paradex Server

MCP Paradex Server

by sv

MCP Paradex 服务器

铁匠徽章

Paradex 交易平台的模型上下文协议 (MCP) 服务器实现。

概述

该项目在人工智能助手(例如 Claude)和 Paradex 永续期货交易平台之间架起了一座桥梁。使用 MCP 标准,人工智能助手可以:

  • 从 Paradex 检索市场数据

  • 管理交易账户和金库

  • 下达和管理订单

  • 监控位置和平衡

Related MCP server: MCP Paradex Server

先决条件

  • Python 3.10+

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 mcp-paradex-py:

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

使用 uv(更快的替代方案)

  1. 克隆此存储库:

    git clone https://github.com/sv/mcp-paradex-py.git
    cd mcp-paradex-py
  2. 创建虚拟环境:

    uv venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  3. 安装依赖项:

   uv pip install -e .

配置

设置您的配置:

cp .env.template .env

然后使用您的 Paradex 凭证编辑.env文件。

运行服务器

Docker(推荐)

docker build . -t sv/mcp-paradex-py

在 Cursor 中添加 MCP 作为命令

仅限公众

docker run --rm -i sv/mcp-paradex-py

允许交易

docker run --rm -e PARADEX_ACCOUNT_PRIVATE_KEY=0xprivatekey -i sv/mcp-paradex-py

Smithery.ai 集成

该 MCP 服务器与Smithery.ai兼容,后者是一个用于发现和部署 MCP 服务器的平台。

Claude桌面配置

要通过 Smithery.ai 将此服务器与 Claude Desktop 一起使用:

  1. 打开 Claude Desktop 并从菜单中启用开发者模式

  2. 前往“设置”>“开发者”,然后点击“编辑配置”

  3. 将以下配置添加到您的claude_desktop_config.json :

{
  "mcpServers": {
    "paradex": {
      "command": "uvx",
      "args": ["--with-editable", ".", "mcp-paradex"],
      "env": {
        "PARADEX_ENVIRONMENT": "testnet",
        "PARADEX_ACCOUNT_PRIVATE_KEY": "your_private_key"
      }
    }
  }
}
  1. 用您的实际 Paradex 私钥替换your_ethereum_private_key

  2. 保存文件并重新启动Claude Desktop

Smithery.ai 注册中心

该服务器包含一个smithery.yaml文件,其中包含 Smithery.ai 注册表的元数据。如果您想将此服务器发布到 Smithery.ai,可以使用 Smithery CLI:

# Install Smithery CLI
npm install -g @smithery/cli

# Login to Smithery
smithery login

# Publish the server
smithery publish

有关发布到 Smithery.ai 的更多信息,请参阅Smithery 文档。

可用资源和工具

资源

系统资源

  • paradex://system/config - 获取 Paradex 系统配置和交易所的基本信息

  • paradex://system/time - 获取当前系统时间(自纪元以来的毫秒数)

  • paradex://system/state - 获取当前 Paradex 系统运行状态

市场资源

  • paradex://markets - 从 Paradex 获取可用市场列表

  • paradex://market/summary/{market_id} - 获取特定交易对的详细市场信息

Vault 资源

  • paradex://vaults - 列出 Paradex 上所有可用的 vaults

  • paradex://vaults/config - 获取 vaults 的全局配置

  • paradex://vaults/balance/{vault_id} - 获取特定保险库的余额

  • paradex://vaults/summary/{vault_id} - 获取保险库的综合摘要

  • paradex://vaults/transfers/{vault_id} - 获取保险库的存款和取款历史记录

  • paradex://vaults/positions/{vault_id} - 获取保险库的当前交易头寸

  • paradex://vaults/account-summary/{vault_id} - 获取保险库的交易账户信息

工具

系统工具

  • paradex_system_config - 获取全局 Paradex 系统配置

  • paradex_system_state - 获取当前系统状态

市场工具

  • paradex_markets - 获取有关市场的详细信息,包括基准/报价资产、最小报价单位和其他交易参数

  • paradex_market_summaries - 获取价格、交易量、24 小时变化和其他关键市场指标的摘要

  • paradex_funding_data - 获取永久市场的历史融资利率数据

  • paradex_orderbook - 获取具有可自定义深度的市场的当前订单簿

  • paradex_klines - 获取市场的历史烛台(OHLCV)数据

  • paradex_trades - 获取市场近期交易的价格、规模和时间戳信息

  • paradex_bbo - 获取市场最佳买入价和卖出价(最小价差)

账户工具

  • paradex_account_summary - 获取帐户摘要信息

  • paradex_account_positions - 获取当前账户头寸

  • paradex_account_fills - 获取账户交易填充

  • paradex_account_funding_payments - 获取账户资金支付

  • paradex_account_transactions - 获取账户交易历史记录

订购工具

  • paradex_open_orders - 获取账户的所有未结订单

  • paradex_create_order - 在 Paradex 上创建新订单

  • paradex_cancel_orders - 取消现有订单

  • paradex_order_status - 获取订单状态

  • paradex_orders_history - 获取帐户的历史订单

Vault 工具

  • paradex_vaults - 通过过滤选项获取有关特定保险库或所有保险库的详细信息

  • paradex_vaults_config - 获取保险库的全局配置,包括费用、限制和其他设置

  • paradex_vault_balance - 获取保险库的当前余额以及可用/锁定资金信息

  • paradex_vault_summary - 获取保险库性能、余额和活动的全面摘要

  • paradex_vault_transfers - 获取保险库的存款和取款历史记录

  • paradex_vault_positions - 获取保险库的当前交易头寸,包括市场、规模、入场价格等详细信息

  • paradex_vault_account_summary - 获取保险库的交易账户信息,包括保证金和风险指标

交易分析提示

该MCP服务器提供结构化的提示,AI助手可以使用它来执行复杂的交易分析并生成交易策略。

市场分析

  • market_overview - 全面了解加密货币市场,包括涨幅最大/跌幅最大的市场、交易量最大的市场、融资利率异常和市场微观结构分析

  • market_analysis - 特定市场的详细技术和微观结构分析,包括支撑/阻力位、图表模式、订单簿分析和持仓建议

头寸和投资组合管理

  • position_management - 全面分析现有仓位,包括投资组合热度、相关性、风险指标以及获利回吐和亏损管理的具体建议

  • create_optimal_order - 根据波动性、流动性、风险承受能力和理想进入策略为市场设计最佳订单参数

  • hedging_strategy - 使用相关性分析、对冲比率计算和实施计划为特定头寸制定有效的对冲策略

  • portfolio_risk_assessment - 对交易组合进行全面的风险分析,包括风险敞口分析、相关性评估、VaR 计算和风险降低建议

  • liquidation_protection - 通过严重程度分类和保护策略识别并减轻未平仓头寸的清算风险

投资策略

  • vault_analysis - 对保险库进行全面分析,用于投资决策,包括绩效指标、风险概况和适用性评估

  • funding_rate_opportunity - 识别和评估跨市场的融资利率套利机会,包括收益率计算和实施策略

  • trading_consultation - 交互式提示序列,提供个性化交易建议和咨询

MCP 文档

通过让客户访问 Paradex 文档,我们看到了明显更好的效果。

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

贡献

请参阅CONTRIBUTING.md了解如何为该项目做出贡献、开发设置以及我们的编码标准。

执照

MIT 许可证

Available Tools

16 tools
paradex_bboA
Read-only
Get the current best available prices for immediate execution decisions.

Use this tool when you need to:
- Make quick trading decisions without full orderbook depth
- Calculate current spread costs before placing orders
- Monitor real-time price changes efficiently
- Get a snapshot of current market conditions
- Determine fair mid-price for calculations

The BBO provides the most essential price information with minimal data,
perfect for quick decisions or when full orderbook depth isn't needed.

Example use cases:
- Calculating current trading spreads before placing orders
- Monitoring real-time price movements efficiently
- Determining execution prices for immediate market orders
- Calculating mid-price for order placement strategies
- Setting appropriate limit order prices to improve fill chances

Inputs: market_id (required).

paradex_filters_modelA
Read-only
Get detailed schema information to build precise data filters.

Use this tool when you need to:
- Understand exactly what fields are available for filtering
- Learn the data types and formats for specific fields
- Build complex JMESPath queries with correct syntax
- Create sophisticated filtering and sorting expressions

Knowing the exact schema helps you construct precise filters that
return exactly the data you need, avoiding trial and error.

Example use cases:
- Learning what fields exist in market data responses
- Finding the correct property names for filtering
- Understanding data types for numerical comparisons
- Building complex multi-criteria filters for large datasets

Inputs: tool_name (required).

paradex_funding_dataA
Read-only
Analyze funding rates for potential funding arbitrage or to understand holding costs.

Use this tool when you need to:
- Calculate expected funding payments for a position
- Find markets with extreme funding rates for potential arbitrage
- Understand historical funding patterns for a market
- Evaluate the cost of holding a position over time

This data is critical for perpetual futures traders to assess the carrying cost
of positions and identify potential funding arbitrage opportunities.

Example use cases:
- Finding markets with negative funding for "paid to hold" opportunities
- Calculating the funding component of a trade's P&L
- Comparing funding rates across different assets for relative value trades
- Analyzing funding rate volatility to predict potential rate changes

Inputs: market_id (required), start_unix_ms (required), end_unix_ms (required). Returns: object

paradex_klinesA
Read-only
Analyze historical price patterns for technical analysis and trading decisions.

Use this tool when you need to:
- Perform technical analysis on historical price data
- Identify support and resistance levels from price history
- Calculate indicators like moving averages, RSI, or MACD
- Backtest trading strategies on historical data
- Visualize price action over specific timeframes

Candlestick data is fundamental for most technical analysis and trading decisions,
providing structured price and volume information over time.

Example use cases:
- Identifying chart patterns for potential entries or exits
- Calculating technical indicators for trading signals
- Determining volatility by analyzing price ranges
- Finding significant price levels from historical support/resistance
- Measuring volume patterns to confirm price movements

Inputs: market_id (required), start_unix_ms (required), end_unix_ms (required), resolution. Returns: result

paradex_marketsA
Read-only
Find markets that match your trading criteria or get detailed market specifications.

Use this tool when you need to:
- Understand exact tick sizes and minimum order sizes before placing trades
- Find all markets for a specific asset (e.g., all BTC-based markets)
- Compare contract specifications across different markets
- Identify markets with specific characteristics for your trading strategy

Retrieves comprehensive details about specified markets, including
base and quote assets, tick size, minimum order size, and other
trading parameters. If "ALL" is specified or no market IDs are provided,
returns details for all available markets.

Example use cases:
- Finding the minimum order size for a new trade
- Identifying markets with the smallest tick size for precise entries
- Checking which assets are available for trading

`asset_kind` is the type of asset in the market. It can be `PERP` or `PERP_OPTION`.

You can use JMESPath expressions (https://jmespath.org/specification.html) to filter, sort, or limit the results.
Use the `paradex_filters_model` tool to get the filters for a tool.
Examples:
- Filter by base asset: "[?base_asset=='BTC']"
- Sort by 24h volume: "sort_by([*], &volume_24h)"
- Limit to top 5 by volume: "[sort_by([*], &to_number(volume_24h))[-5:]]"

Inputs: market_ids, jmespath_filter, limit, offset.

paradex_market_summariesA
Read-only
Identify the most active or volatile markets and get current market conditions.

Use this tool when you need to:
- Find the most active markets by volume for liquidity analysis
- Discover markets with significant price movements for momentum strategies
- Compare current prices across multiple assets
- Identify markets with unusual behavior for potential opportunities

Retrieves current market summary information including price, volume,
24h change, and other key market metrics. If "ALL" is specified or no market IDs
are provided, returns summaries for all available markets.

Example use cases:
- Finding high-volatility markets for short-term trading
- Identifying top gainers and losers for the day
- Comparing volume across different markets to find liquidity
- Getting the current price and 24-hour range for price analysis

You can use JMESPath expressions (https://jmespath.org/specification.html) to filter, sort, or limit the results.
Use the `paradex_filters_model` tool to get the filters for a tool.
Examples:
- Filter by high price: "[?high_price > `10000`]"
- Sort by volume: "sort_by([*], &volume)"
- Get top 3 by price change: "[sort_by([*], &to_number(price_change_percent))[-3:]]"

Inputs: market_ids, jmespath_filter, limit, offset.

paradex_orderbookA
Read-only
Analyze market depth and liquidity to optimize order entry and execution.

Use this tool when you need to:
- Assess true liquidity before placing large orders
- Identify potential support/resistance levels from order clusters
- Determine optimal limit order prices for higher fill probability
- Detect order imbalances that might signal price direction

Understanding the orderbook is essential for effective trade execution,
especially for larger orders or in less liquid markets.

Example use cases:
- Finding the optimal limit price to ensure your order gets filled
- Estimating potential slippage for market orders of different sizes
- Identifying large resting orders that might act as support/resistance
- Detecting order book imbalances that could predict short-term price moves

Inputs: market_id (required), depth. Returns: object

paradex_system_configA
Read-only
Understand the exchange's global parameters that affect all trading activity.

Use this tool when you need to:
- Check fee schedules before placing trades
- Verify trading limits and restrictions
- Understand exchange-wide parameters that affect your trading
- Keep up with changes to the exchange's configuration

This information provides important context for making trading decisions and
understanding how the exchange operates.

Example use cases:
- Checking current fee tiers for different markets
- Verifying maximum leverage available for specific markets
- Understanding global trading limits or restrictions
- Checking if any exchange-wide changes might affect your trading strategy

Inputs: no named parameters. Returns: starknet_gateway_url, starknet_fullnode_rpc_url, starknet_fullnode_rpc_base_url…

paradex_system_stateA
Read-only
Verify the exchange is fully operational before executing trades.

Use this tool when you need to:
- Check if Paradex is functioning normally before placing important orders
- Verify system status if you encounter unexpected behavior
- Confirm that maintenance periods are not in effect
- Check exchange clock synchronization with your own systems

This is especially important before executing critical trades or when
experiencing unexpected behavior from other API calls.

Example use cases:
- Verifying the exchange is operational before executing a trading strategy
- Checking if maintenance mode is active when experiencing delays
- Confirming exchange status during periods of market volatility
- Diagnosing API issues by checking system health

Inputs: no named parameters. Returns: Model representing the current state of the Paradex system.

paradex_tradesA
Read-only
Analyze actual market transactions to understand market sentiment and liquidity.

Use this tool when you need to:
- Detect large trades that might signal institutional activity
- Calculate average trade size during specific periods
- Identify buy/sell pressure imbalances
- Monitor execution prices vs. order book prices
- Understand market momentum through trade flow

Trade data provides insights into actual market activity versus just orders,
helping you understand how other participants are behaving.

Example use cases:
- Detecting large "whale" transactions that might influence price
- Analyzing trade sizes to gauge market participation
- Identifying periods of aggressive buying or selling
- Understanding trade frequency as an indicator of market interest
- Comparing executed prices to orderbook mid-price for market impact analysis

Inputs: market_id (required), start_unix_ms (required), end_unix_ms (required).

paradex_vault_account_summaryA
Read-only
Get a comprehensive overview of a vault's trading account status.

Use this tool when you need to:
- Check account health and available margin
- Monitor total exposure and leverage
- Understand risk metrics and account status
- Assess trading capacity before placing new orders
- Get a consolidated view of account performance

This provides essential information about account standing and
trading capacity to inform risk management decisions.

Example use cases:
- Checking available margin before placing new orders
- Monitoring account health during market volatility
- Assessing total exposure across all markets
- Understanding maintenance margin requirements
- Planning position adjustments based on account metrics

Inputs: vault_address (required). Returns: result

paradex_vault_balanceA
Read-only

Get the current balance of a specific vault.

Retrieves the current balance information for a specific vault, including available funds, locked funds, and total balance. This is essential for understanding the financial state of a vault before executing trades or withdrawals.

Inputs: vault_address (required). Returns: result

paradex_vault_positionsA
Read-only
Monitor active trading positions to track performance and manage risk.

Use this tool when you need to:
- Get a complete view of all open positions for a vault
- Monitor unrealized P&L across all positions
- Check liquidation prices and margin requirements
- Assess position sizing and leverage across markets
- Track entry prices and position duration

Position monitoring is fundamental to risk management and provides
the necessary information for trade management decisions.

Example use cases:
- Checking the current status of all open trades
- Monitoring unrealized profit/loss across positions
- Assessing liquidation risk during market volatility
- Comparing performance across different markets
- Planning adjustments to position sizes or leverage

Inputs: vault_address (required). Returns: result

paradex_vaultsA
Read-only
Get detailed information about a specific vault or all vaults if no address is provided.

Retrieves comprehensive details about a specific vault identified by its address,
including configuration, permissions, and other vault-specific parameters.

Use jmespath_filter to reduce the number of results as much as possible as number of vaults can be large.

You can use JMESPath expressions to filter, sort, or limit the results.
Examples:
- Filter by owner: "[?owner_account=='0x123...']"
- Filter by status: "[?status=='ACTIVE']"
- Find vaults with specific strategy: "[?contains(strategies, 'strategy_id')]"
- Sort by creation date: "sort_by([*], &created_at)"
- Limit to newest vaults: "sort_by([*], &created_at)[-5:]"
- Select specific fields: "[*].{address: address, name: name, kind: kind, status: status}"

Inputs: vault_address, jmespath_filter, limit, offset.

paradex_vault_summaryA
Read-only
Get a comprehensive summary of a specific vault or all vaults if no address is provided.

Retrieves a summary of all important information about a vault,
including balance, positions, recent activity, and performance metrics.
This provides a high-level overview of the vault's current state.

Use jmespath_filter to reduce the number of results as much as possible as number of vaults can be large.

You can use JMESPath expressions to filter, sort, or transform the results.
Examples:
- Filter by TVL: "[?to_number(tvl) > `10000`]"
- Filter by performance: "[?to_number(total_roi) > `5.0`]"
- Sort by TVL (descending): "reverse(sort_by([*], &to_number(tvl)))"
- Get top performers: "sort_by([*], &to_number(total_roi))[-3:]"
- Filter by recent returns: "[?to_number(roi_24h) > `0.5`]"
- Extract specific metrics: "[*].{address: address, tvl: tvl, total_roi: total_roi, volume_24h: volume_24h}"

Inputs: vault_address, jmespath_filter, limit, offset.

paradex_vault_transfersA
Read-only
Track deposit and withdrawal history for auditing and reconciliation.

Use this tool when you need to:
- Verify deposits have completed and are available for trading
- Track withdrawal status and confirm transaction settlement
- Audit the complete fund flow history for a vault
- Reconcile on-chain transactions with platform records
- Understand historical capital allocation patterns

Complete transfer history is essential for proper accounting and provides
a clear audit trail of all capital movements.

Example use cases:
- Confirming that a recent deposit was credited to your account
- Tracking the status of pending withdrawals
- Creating transaction reports for accounting or tax purposes
- Verifying the total amount deposited over time
- Analyzing deposit/withdrawal patterns for strategy insights

Inputs: vault_address (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose. Market data tools (bbo, orderbook, klines, trades, markets, summaries, funding_data) cover different aspects. Vault tools (vault_account_summary, vault_balance, vault_positions, vaults, vault_summary, vault_transfers) each provide unique account information. System tools (system_config, system_state) and filters_model serve separate needs. No significant overlap.

    Naming Consistency4/5

    All tool names follow the pattern 'paradex_' followed by a domain noun or compound noun (e.g., 'bbo', 'filters_model', 'vault_account_summary'). The naming structure is consistent, though some names use a single noun (e.g., 'paradex_markets') and others use multiple nouns (e.g., 'paradex_market_summaries'). This is a minor deviation from a strict pattern, but overall it is clear and predictable.

    Tool Count4/5

    With 16 tools, the count is on the higher side for a data-oriented server, but each tool serves a distinct data retrieval purpose (market, system, vault). No tool seems superfluous. The number is appropriate for the scope of providing comprehensive read access to exchange data and account information.

    Completeness2/5

    The tool set is missing critical trading execution tools such as place_order, cancel_order, or modify_order. Given that the tools extensively support pre-trade analysis and account monitoring, the lack of order management creates a significant gap for actual trading. This suggests an incomplete surface for a server named 'Paradex Server'.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables LLMs to interact with cryptocurrency exchanges through CCXT, allowing for tasks like fetching balances, market data, creating orders, and trading operations in a standardized way.
      8
      MIT
    • A
      license
      A
      quality
      Not graded
      maintenance
      A bridge between AI assistants and the Paradex perpetual futures trading platform that enables retrieving market data, managing trading accounts, placing orders, and monitoring positions.
      26
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A bridge between AI assistants and the Paradex perpetual futures trading platform for managing accounts, vaults, and orders. It enables users to retrieve real-time market data, monitor positions, and execute trading strategies through the Model Context Protocol.
      33
      92 PyPI
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server for the Hyperliquid decentralized exchange, enabling AI assistants to perform trading operations, manage accounts, and retrieve market data.
      38 PyPI
      3
      MIT