金融市场数据分析服务器

MCP市场数据服务器是一个生产级的金融分析服务器,提供机构级市场洞察,包括成交量分析、技术分析、技术区域、开盘区间突破分析和公平价值缺口分析,适用于算法交易、量化分析和AI交易代理。

  • by fintools-ai
  • Python
  • 本地部署
  • 4 星标
  • 更新于
在 GitHub 查看 fintools-ai/mcp-market-data-server

使用说明

MCP市场数据服务器

强大的FastMCP服务器,为LLM代理和交易应用程序提供全面的金融市场数据分析工具。


🎯 概述

这 MCP市场数据服务器 是一个实现生产就绪的财务分析服务器 模型上下文协议(MCP)。它提供了四种强大的分析工具,可提供机构级市场见解:

  • 🎚️ 体积剖面分析 -根据成交量分布确定关键支撑/阻力位
  • 📈 技术分析 -通过多时间段分析访问15+个标准指标
  • 🎯 技术区 -计算高概率价格区,以做出精确的进入/退出决策
  • 📊 ORB分析 -开盘区间突破水平,用于日内/0DTE交易的多期分析
  • 🔍 公允价值缺口分析 -检测均值回归交易的价格失衡和未填补的缺口

非常适合算法交易、定量分析和人工智能驱动的交易代理。

✨ 特性

📊 多时间框架分析

  • ⏱️ 1分钟:头皮和微动
  • ⏱️ 5分钟:日内波动交易
  • ⏱️ 1天:头寸交易和趋势分析

📈 卷配置文件智能

  • 🎯 控制点(POC)识别
  • 📊 价值区域高/低(VAH/VAL)计算
  • 🔥 高/低容量节点检测
  • 💹 体积动力学和动量分析
  • 📈 上行概率评估

🔧 技术指标套件

  • 移动平均值:SMA(20,50,200),EMA(20),VWAP
  • 动量:RSI、MACD、随机振荡指标
  • 波动性:ATR(平均真实范围)
  • 体积:OBV、CMF、体积变化率
  • 高级:Ichimoku Cloud,趋势强度分析
  • 模式:发散检测

🎯 智能区域分析

  • 📐 斐波那契回撤/延伸水平
  • 📅 前一天的高/低水平
  • 📊 基于ATR的波动区
  • 🎚️ 体积剖面衍生区域
  • 🎨 区域强度分类

📊 打开范围突破(ORB)

  • ⏱️ 多时段分析(5、15、30分钟)
  • 🎯 批量突破确认
  • 📈 扩展目标(0.5x、1x、1.5x、2x)
  • 🔍 ORB挤压检测
  • 📡 交易偏差分析

🔍 公允价值缺口(FVG)检测

  • 📊 3手柄模式识别
  • 📈 多时间段差距分析(1m、5m、15m)
  • 🎯 填充百分比和交互跟踪
  • 💹 间隙形成过程中的体积分析
  • 📐 统计填充概率
  • 🎨 间隙强度分类

🚀 企业功能

  • ⚡ 异步/等待架构,实现高性能
  • 🔒 安全的API密钥管理
  • 🏗️ 模块化、可扩展设计
  • 📝 全面的日志记录和错误处理
  • 🧪 全面测试覆盖
  • 📋 全程键入提示

📖 api参考

🎚️ financial_volume_profile

分析不同价格水平的交易量分布,以确定关键交易区域。

请求:

{
  "tool": "financial_volume_profile", 
  "symbol": "AAPL"
}

答复:

{
  "symbol": "AAPL",
  "status": "success",
  "timeframe_volume_profile": {
    "5m": {
      "volume_profile_structure": {
        "point_of_control": 150.25,
        "value_area_high": 151.80,
        "value_area_low": 149.10,
        "high_volume_nodes": [...],
        "low_volume_nodes": [...]
      },
      "volume_dynamics": {
        "supports_continued_upside": true,
        "volume_supports_upside_probability": 75.5,
        "volume_trend": "increasing",
        "volume_bias": "bullish"
      }
    }
  },
  "consolidated_analysis": {
    "supports_continued_upside": true,
    "confidence": "high"
  }
}

📈 financial_technical_analysis

在多个时间范围内提供全面的技术指标。

请求:

{
  "tool": "financial_technical_analysis",
  "symbol": "MSFT"
}

答复:

{
  "symbol": "MSFT", 
  "status": "success",
  "timeframe_indicators": {
    "1d": {
      "indicators": {
        "current_price": 380.50,
        "sma_20": 375.20,
        "sma_50": 370.15,
        "rsi": 65.2,
        "macd": {
          "macd": 2.34,
          "signal": 1.98,
          "histogram": 0.36
        },
        "atr": 8.45,
        "vwap": 379.80
      },
      "trend_analysis": {
        "trend": "uptrend",
        "strength": "moderate"
      }
    }
  }
}

🎯 financial_technical_zones

使用多种方法确定精确的支撑/阻力区。

请求:

{
  "tool": "financial_technical_zones",
  "symbol": "GOOGL"  
}

答复:

{
  "symbol": "GOOGL",
  "status": "success", 
  "timeframe_zones": {
    "5m": {
      "zones": [
        {
          "type": "SUPPORT",
          "level": 142.50,
          "strength": "strong",
          "source": "Volume Profile POC",
          "confidence": 85
        },
        {
          "type": "RESISTANCE", 
          "level": 145.80,
          "strength": "moderate",
          "source": "Previous Day High",
          "confidence": 70
        }
      ]
    }
  }
}

📊 analyze_open_interest

分析日内和0DTE交易策略的开盘区间突破模式。

请求:

{
  "tool": "analyze_open_interest",
  "symbol": "SPY"
}

答复:

{
  "symbol": "SPY",
  "status": "success",
  "timestamp": "2024-03-15T14:30:00Z",
  "market_session": "regular_hours",
  "current_price": 425.50,
  "orb_analysis": {
    "5min": {
      "orb_high": 424.75,
      "orb_low": 424.25,
      "orb_range": 0.50,
      "position": "above_range",
      "breakout_confirmed": true,
      "breakout_type": "bullish",
      "volume_analysis": {
        "volume_ratio_vs_day_avg": 1.35,
        "high_volume": true
      },
      "targets": {
        "bull_1x": 425.25,
        "bear_1x": 423.75
      },
      "targets_hit": ["bull_0.5x", "bull_1x"]
    }
  },
  "trading_bias": {
    "bias": "bullish",
    "confidence": "high",
    "strength_factors": [
      "5min bullish breakout confirmed",
      "5min high volume above range"
    ]
  },
  "orb_squeeze": {
    "squeeze_detected": false,
    "compression_ratio": 0.95
  }
}

🔍 financial_fvg_analysis

检测并分析多个时间范围内的公允价值缺口。

请求:

{
  "tool": "financial_fvg_analysis",
  "symbol": "AAPL"
}

答复:

{
  "symbol": "AAPL",
  "status": "success",
  "current_price": 195.50,
  "timeframe_data": {
    "1m": {
      "fvg_count": 3,
      "gaps": [
        {
          "gap_id": "1m_2024-12-01T14:15:00Z",
          "type": "bullish",
          "price_levels": {
            "gap_high": 195.80,
            "gap_low": 195.20,
            "gap_size": 0.60
          },
          "volume_data": {
            "candle_2_volume": 125000,
            "avg_volume_20_periods": 67000
          },
          "filled_percentage": 0.0,
          "age_minutes": 15
        }
      ]
    }
  },
  "nearest_gaps": {
    "above_current_price": [
      {"level": 196.10, "distance": 0.60, "timeframe": "1m"}
    ],
    "below_current_price": [
      {"level": 194.75, "distance": 0.75, "timeframe": "5m"}
    ]
  }
}

🎯 使用示例

基本分析

# Query: "Show me AAPL volume profile analysis"
# Response: Complete volume distribution with POC at $150.25

多工具分析

# Query: "Analyze TSLA using all technical tools and provide trading recommendation"
# Response: Comprehensive analysis with volume profile, indicators, and key zones

具体场景

# Scalping Setup
# Query: "Find 1-minute support levels for SPY for quick trades"

# Swing Trading
# Query: "Identify 5-minute resistance zones for NVDA breakout trading"

# Position Trading  
# Query: "Show daily technical analysis for QQQ trend confirmation"

# Mean Reversion
# Query: "Identify partially filled FVGs in NVDA that could complete filling"

# 0DTE Trading
# Query: "Analyze SPY ORB for 0DTE entry - is breakout confirmed?"

# FVG Trading
# Query: "Find unfilled gaps in TSLA for retracement entries"