crypto-indicators-mcp

by kukapay
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Serves as the default data source for cryptocurrency price and volume data, which can be configured in environment variables when setting up the MCP server.

  • Required as the runtime environment for the MCP server, with version 18.x or higher needed to run the cryptocurrency analysis tools.

  • Used for package management, with version 8.x or higher required to install the necessary dependencies.

加密指标 MCP 服务器

MCP 服务器提供一系列加密货币技术分析指标和策略,使 AI 交易代理能够有效分析市场趋势并制定强大的量化策略。

特征

  • 技术指标:涵盖趋势、动量、波动性和交易量类别的 50 多个指标。
  • 交易策略:对应策略输出信号: -1 (卖出)、 0 (持有)、 1 (买入)。
  • 灵活的数据源:默认为 Binance,可配置为任何ccxt支持的交易所。
  • 模块化设计:指标和策略分类,以便于维护。

安装

先决条件

  • Node.js (v18.x 或更高版本)
  • npm(v8.x 或更高版本)

步骤

  1. 克隆存储库
    git clone https://github.com/kukapay/crypto-indicators-mcp.git cd crypto-indicators-mcp
  2. 安装依赖项
    npm install
  3. 配置 MCP 客户端:要将此服务器与 Claude Desktop 等 MCP 客户端一起使用,请将以下内容添加到您的配置文件(或等效文件)中:
    { "mcpServers": { "crypto-indicators-mcp": { "command": "node", "args": ["path/to/crypto-indicators-mcp/index.js"], "env": { "EXCHANGE_NAME": "binance" } } } }

可用工具

趋势指标

  • calculate_absolute_price_oscillator ):测量两个 EMA 之间的差异以识别趋势强度 (APO)。
  • calculate_aroon :使用高/低价极值(Aroon)识别趋势变化和强度。
  • calculate_balance_of_power :根据价格变动(BOP)衡量买入压力与卖出压力。
  • calculate_chande_forecast_oscillator :预测相对于过去趋势的未来价格走势(CFO)。
  • calculate_commodity_channel_index :检测超买/超卖情况和趋势逆转(CCI)。
  • calculate_double_exponential_moving_average :平滑价格数据,减少趋势检测的滞后(DEMA)。
  • calculate_exponential_moving_average ):在趋势分析 (EMA) 中,对近期价格赋予更大的权重。
  • calculate_mass_index :通过测量范围扩展(MI)来识别潜在的逆转。
  • calculate_moving_average_convergence_divergence平均线收敛发散度:通过 EMA 差异(MACD)跟踪动量和趋势方向。
  • calculate_moving_max :计算滚动期内的最高价格(MMAX)。
  • calculate_moving_min :计算滚动期内的最低价格(MMIN)。
  • calculate_moving_sum :计算滚动期内的价格总和(MSUM)。
  • calculate_parabolic_sar :为趋势跟踪(PSAR)提供停止和反转点。
  • calculate_qstick :根据开盘价差(Qstick)衡量买入/卖出压力。
  • calculate_kdj :结合随机和动量信号进行趋势分析(KDJ)。
  • calculate_rolling_moving_average :应用滚动 EMA 实现更平滑的趋势跟踪 (RMA)。
  • calculate_simple_moving_average移动平均值:计算一段时间内的平均价格以确定趋势(SMA)。
  • calculate_since_change :跟踪自上次重大价格变化以来的时间。
  • calculate_triple_exponential_moving_average :比 DEMA 进一步减少滞后,以实现趋势清晰度(TEMA)。
  • calculate_triangular_moving_average ):对中间价格进行更多加权,以获得更平滑的趋势(TRIMA)。
  • calculate_triple_exponential_average :用三重平滑(TRIX)测量动量。
  • calculate_typical_price :计算最高价、最低价和收盘价的平均值,以获得平衡的趋势视图。
  • calculate_volume_weighted_moving_average加权移动平均值:将成交量纳入趋势强度的移动平均线(VWMA)。
  • calculate_vortex :使用真实范围(Vortex)识别趋势方向和强度。

动量指标

  • calculate_awesome_oscillator :使用中线交叉(AO)衡量市场动量。
  • calculate_chaikin_oscillator :跟踪累积/分布动量(CMO)。
  • calculate_ichimoku_cloud :提供支撑、阻力和动量(Ichimoku)的全面视图。
  • calculate_percentage_price_oscillator :将 MACD 标准化为动量百分比 (PPO)。
  • calculate_percentage_volume_oscillator :通过 EMA 差异(PVO)测量成交量动量。
  • calculate_price_rate_of_change :以百分比变化(ROC)跟踪价格动量。
  • calculate_relative_strength_index :通过动量(RSI)识别超买/超卖情况。
  • calculate_stochastic_oscillator :将收盘价与动量信号(STOCH)的范围进行比较。
  • calculate_williams_r :测量相对于近期高低范围的动量(威廉姆斯 %R)。

波动率指标

  • calculate_acceleration_bands ):利用动态波动带 (AB) 来构建价格行为。
  • calculate_average_true_range :根据价格范围(ATR)衡量市场波动性。
  • calculate_bollinger_bands :用基于波动性的带(BB)包含价格行为。
  • calculate_bollinger_bands_width :通过带宽变化(BBW)量化波动性。
  • calculate_chandelier_exit :根据波动性(CE)设置追踪止损。
  • calculate_donchian_channel :通过高/低价通道(DC)跟踪波动性。
  • calculate_keltner_channel :结合 ATR 和 EMA 形成波动带(KC)。
  • calculate_moving_standard_deviation ):测量波动率的价格偏差 (MSTD)。
  • calculate_projection_oscillator :评估相对于预计价格(PO)的波动性。
  • calculate_true_range :计算波动性分析的每日价格范围(TR)。
  • calculate_ulcer_index :量化下行波动率和回撤(UI)。

成交量指标

  • calculate_accumulation_distribution :跟踪交易量流量以确认价格趋势(AD)。
  • calculate_chaikin_money_flow :通过交易量(CMF)衡量买入/卖出压力。
  • calculate_ease_of_movement :评估价格随交易量变动的容易程度(EMV)。
  • calculate_force_index :结合价格和交易量来计算动量强度(FI)。
  • calculate_money_flow_index :通过价格-交易量(MFI)识别超买/超卖。
  • calculate_negative_volume_index :跟踪交易量较低的日子(NVI)的价格变化。
  • calculate_on_balance_volume :累积交易量以预测价格走势(OBV)。
  • calculate_volume_price_trend :结合交易量和价格进行趋势确认(VPT)。
  • calculate_volume_weighted_average_price加权平均价格:按成交量加权的平均价格(VWAP)。

趋势策略

  • calculate_absolute_price_oscillator_strategy :从 APO 交叉生成买入/卖出信号(APO 策略)。
  • calculate_aroon_strategy :使用 Aroon 交叉(Aroon 策略)发出趋势逆转信号。
  • calculate_balance_of_power_strategy :根据 BOP 阈值发出信号(BOP 策略)。
  • calculate_chande_forecast_oscillator_strategy :利用 CFO 信号预测逆转(CFO 策略)。
  • calculate_kdj_strategy :结合 KDJ 线获取基于趋势的信号(KDJ 策略)。
  • calculate_macd_strategy :使用 MACD 交叉作为交易信号(MACD 策略)。
  • calculate_parabolic_sar_strategy :通过 PSAR 转变发出趋势方向信号(PSAR 策略)。
  • calculate_typical_price_strategy :从典型的价格趋势中生成信号。
  • calculate_volume_weighted_moving_average_strategy :根据 VWMA 交叉发出信号(VWMA 策略)。
  • calculate_vortex_strategy :利用 Vortex 交叉发出趋势方向信号(Vortex 策略)。

动量策略

  • calculate_momentum_strategy :根据动量方向发出信号。
  • calculate_awesome_oscillator_strategy :信号动量随 AO 交叉而变化(AO 策略)。
  • calculate_ichimoku_cloud_strategy :从一目均衡表云位置生成信号(一目均衡表策略)。
  • calculate_rsi2_strategy :使用 RSI 阈值发出超买/超卖信号(RSI 策略)。
  • calculate_stochastic_oscillator_strategy :使用随机交叉信号(STOCH 策略)。
  • calculate_williams_r_strategy :使用 Williams %R(Williams %R 策略)发出动量反转信号。

波动性策略

  • calculate_acceleration_bands_strategy加速带策略:利用加速带发出突破信号(AB 策略)。
  • calculate_bollinger_bands_strategy :发出布林带突破信号(BB 策略)。
  • calculate_projection_oscillator_strategy :信号波动率随 PO(PO 策略)变化。

交易量策略

  • calculate_chaikin_money_flow_strategy :使用 CMF(CMF 策略)发出交易量压力信号。
  • calculate_ease_of_movement_strategy :根据 EMV 趋势发出信号(EMV 策略)。
  • calculate_force_index_strategy :通过力度指数转变发出动量信号(FI 策略)。
  • calculate_money_flow_index_strategy :使用 MFI(MFI 策略)发出超买/超卖信号。
  • calculate_negative_volume_index_strategy :通过 NVI 变化发出信号趋势(NVI 策略)。
  • calculate_volume_weighted_average_price_strategy :从 VWAP 交叉发出信号(VWAP 策略)。

使用示例

例1:计算MACD指标

输入(自然语言提示)

Calculate the MACD for BTC/USDT on a 1-hour timeframe with fast period 12, slow period 26, signal period 9, and fetch 100 data points.

输出

{"macd": [...], "signal": [...], "histogram": [...]}

示例 2:计算 RSI 策略

输入(自然语言提示)

Give me the RSI strategy signals for ETH/USDT on a 4-hour timeframe with a period of 14 and 50 data points.

输出

[-1, 0, 1, 0, ...]

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

ID: yu2qrgmz0l