Skip to main content
Glama

fintools-mcp

通过 MCP(模型上下文协议)为 AI 助手提供的金融分析工具。

让 Claude、ChatGPT、Cursor 或任何兼容 MCP 的 AI 能够进行真正的金融分析——不仅仅是股票价格,而是交易员实际使用的分析工具包。

工具

工具

功能

get_technical_indicators

RSI、MACD、ATR、EMA(9/21/50/200)、斐波那契水平、趋势评估

get_stock_quote

当前价格、成交量、52 周区间、市值

get_trend_score

从 -100(强下跌趋势)到 +100(强上涨趋势)的趋势评分及组件细分

get_support_resistance

关键支撑/阻力位,包含触碰次数和强度评级

get_screen_stocks

按 RSI、趋势评分、EMA 位置、相对成交量筛选标普 500 指数成分股——快速发现设置

analyze_options_chain

包含 IV 分析、流动性过滤、看跌/看涨比率的期权链

calculate_position_size

基于风险的仓位规模计算,包含止损和止盈目标

calculate_atr_position

基于 ATR 的仓位规模计算——根据波动率自动计算止损和目标

analyze_trades

根据交易盈亏计算胜率、利润因子、夏普比率、回撤和连胜/连败记录

compare_tickers

多个代码之间的并排技术对比

Related MCP server: MCP YFinance Stock Server

工作原理

fintools-mcp 序列图

快速入门

安装

pip install fintools-mcp

或者使用 uv:

uv pip install fintools-mcp

添加到 Claude Desktop

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "fintools": {
      "command": "uv",
      "args": ["run", "--from", "fintools-mcp", "fintools-mcp"]
    }
  }
}

或者如果通过 pip 安装:

{
  "mcpServers": {
    "fintools": {
      "command": "fintools-mcp"
    }
  }
}

添加到 Claude Code

claude mcp add fintools -- uv run --from fintools-mcp fintools-mcp

示例

配置完成后,您可以询问 AI 助手如下问题:

  • “查找处于超卖状态但仍高于 200 EMA 的标普 500 股票”

  • “SPY 的趋势评分是多少?”

  • “显示 NVDA 的支撑位和阻力位”

  • “AAPL 目前的技术设置如何?”

  • “分析下周五的 SPY 期权链”

  • “如果我想以 10 万美元的账户做多 NVDA,风险承受能力为 1.5%,我应该买多少股,止损位在哪里?”

  • “比较 AAPL、GOOGL、MSFT 和 AMZN——哪一个趋势最强?”

  • “这是我最近的 20 笔交易:[150, -80, 200, ...]——我的胜率和夏普比率是多少?”

示例输出

技术指标

> "What's the technical setup on SPY?"

SPY @ $573.42
  RSI(14): 58.3 — bullish momentum
  MACD: 2.14 (histogram +0.38, bullish)
  ATR(14): $7.82
  EMAs: 9 > 21 > 50 > 200 (fully stacked bullish)
  Fibonacci: In golden pocket (0.618-0.65 retracement)
  Trend: Bullish (all signals aligned)

仓位规模

> "Size a long position on AAPL at $227, stop $220, target $245"

  Shares: 214
  Position value: $48,578
  Risk: $1,498 (1.5% of $100k)
  Reward: $3,852
  R:R ratio: 2.57

架构

fintools-mcp/
├── fintools_mcp/
│   ├── server.py              # MCP server — tool definitions
│   ├── data.py                # Market data via yfinance
│   ├── indicators/            # Technical indicators (standalone, no deps)
│   │   ├── rsi.py             # RSI — Wilder's smoothing
│   │   ├── macd.py            # MACD (12, 26, 9)
│   │   ├── atr.py             # ATR — Average True Range
│   │   ├── ema.py             # EMA — any period
│   │   ├── vwap.py            # VWAP — intraday, daily reset
│   │   └── fibonacci.py       # Fibonacci retracement + golden pocket
│   └── analysis/
│       ├── position_sizer.py  # Risk-based + ATR-based sizing
│       └── trade_stats.py     # KPI calculator (60+ metrics)
└── tests/

数据源

  • 股票数据: Yahoo Finance(免费,无需 API 密钥)

  • 期权数据: Yahoo Finance 期权链

  • 基本功能无需 API 密钥。

开发

git clone https://github.com/slimbiggins007/fintools-mcp.git
cd fintools-mcp
uv sync
uv run python -m fintools_mcp  # starts the MCP server

运行测试:

uv run pytest

许可证

MIT

Available Tools

17 tools
about_fintoolsA

Explain the public connector and the paid Fintools MCP package.

Use this when a user asks what Fintools can do, what package is installed, how to upgrade, or why a market-analysis workflow is unavailable here.

Inputs: no named parameters. Returns: result

analyze_options_chainD

Paid Fintools MCP required: options-chain context and liquidity filters.

Inputs: ticker (required), expiration, min_volume, max_spread_pct, +1 more. Returns: result

analyze_tradesC

Paid Fintools MCP required: trade-stat calculations and review context.

Inputs: pnls (required), starting_equity. Returns: result

calculate_atr_positionC

Paid Fintools MCP required: ATR-based position sizing.

Inputs: ticker (required), period, risk_pct, direction, +3 more. Returns: result

calculate_position_sizeC

Paid Fintools MCP required: risk-based position sizing.

Inputs: ticker (required), stop_price (required), entry_price (required), target_price (required), +2 more. Returns: result

check_connectionA

Confirm that the public Fintools connector is connected and responding.

Inputs: no named parameters. Returns: result

compare_tickersC

Paid Fintools MCP required: side-by-side technical comparison.

Inputs: tickers (required), period. Returns: result

find_breakoutsD

Paid Fintools MCP required: breakout discovery and candidate surfacing.

Inputs: max_rsi, min_rsi, max_results, exclude_symbols, +1 more. Returns: result

get_data_source_statsA

Show public connector cache status and provider request counters.

Inputs: no named parameters. Returns: result

get_market_snapshotD

Paid Fintools MCP required: day-context gates, flags, and fresh_add_status.

Inputs: ticker (required), period. Returns: result

get_option_quoteC

Paid Fintools MCP required: option quote, spread, IV, and entry P&L context.

Inputs: option_symbol (required), entry_price. Returns: result

get_stock_quoteB

Get a basic stock quote in the public Fintools connector.

Args: ticker: Stock symbol, such as AAPL, SPY, or TSLA.

Inputs: ticker (required). Returns: result

get_support_resistanceC

Paid Fintools MCP required: support/resistance levels and structure.

Inputs: ticker (required), lookback, max_levels. Returns: result

get_technical_indicatorsC

Paid Fintools MCP required: RSI, MACD, ATR, EMAs, Fibonacci, and chart context.

Inputs: ticker (required), period, interval. Returns: result

get_trend_scoreC

Paid Fintools MCP required: graduated trend score with component breakdowns.

Inputs: ticker (required). Returns: result

screen_stocksC

Paid Fintools MCP required: custom screens by trend, RSI, EMAs, and volume.

Inputs: rsi_max, rsi_min, tickers, universe, +6 more. Returns: result

winner_similarity_scanC

Paid Fintools MCP required: winner-similarity candidate ranking and triage.

Inputs: tickers (required), max_results. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 17 tools

    Disambiguation5/5

    Each tool has a distinct purpose: quotes, technical analysis, options, position sizing, screening, meta functions. No two tools appear to do the same thing, and descriptions clearly differentiate them.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern with snake_case (e.g., get_stock_quote, calculate_position_size). Minor inconsistency: 'about_fintools' and 'winner_similarity_scan' break the pattern slightly, but overall the naming is predictable and clear.

    Tool Count5/5

    With 17 tools, the server covers a broad financial toolkit without being overwhelming. Each tool appears necessary for the domain of financial analysis and trading, and the count feels well-scoped.

    Completeness4/5

    The tool set covers core financial workflows: quotes, technical indicators, options, trades, scanning, and position sizing. Minor gaps exist (e.g., no historical price data, no news), but the provided tools form a coherent and functional surface for the stated purpose.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      Not graded
      maintenance
      Enables LLMs to retrieve, analyze, and visualize stock prices and financial report data for quantitative trading research and investment analysis. Provides real-time and historical stock data, financial statement analysis, key metric calculations, and trading signal visualization.
      13
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to retrieve real-time stock data, manage watchlists, and perform comprehensive technical analysis using Yahoo Finance API. Provides 18+ tools for stock price tracking, trend analysis, volatility assessment, and financial indicators through MCP integration.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides comprehensive financial analysis and real-time market data including stock information, options chains, technical indicators, financial statements, earnings calendars, and market sentiment indicators through integration with yfinance and other financial APIs.
      14
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides comprehensive stock intelligence workflows by integrating data from multiple providers for market analysis, technical indicators, and fundamental data. It enables users to perform technical, fundamental, and risk analysis alongside options and news tracking through a unified tool registry.
      -