Skip to main content
Glama
FinanceExpert

FinanceExpert

by geddamsatish

mcp-stock-server (FinanceExpert)

FastMCP로 구축된 소규모 Model Context Protocol 서버입니다. yfinance를 통해 Yahoo Finance 시장 데이터를 제공하므로, 어시스턴트가 시세, CSV 형식의 과거 데이터, 일반 텍스트 유니코드 가격 차트를 가져올 수 있습니다.

요구 사항

  • Python 3.11+

  • uv (권장) 또는 pyproject.toml에서 종속성을 설치하는 다른 방법

Related MCP server: Yahoo Finance MCP Server

설정

cd mcp-stock-server
uv sync

실행 (stdio)

이 서버는 stdio를 통해 MCP와 통신합니다(mcp.run()의 기본값):

uv run python server.py

MCP 서버로 추가 (Cursor)

  1. Cursor 설정 → MCP를 엽니다(또는 MCP JSON 설정을 편집하세요 — macOS/Linux에서는 보통 ~/.cursor/mcp.json).

  2. 작업 디렉토리가 이 저장소이고 명령어가 server.py로 시작하는 stdio 서버를 등록합니다.

옵션 A — uv run (권장)

**/absolute/path/to/mcp-stock-server**를 저장소를 복제한 실제 경로로 바꾸세요.

{
  "mcpServers": {
    "FinanceExpert": {
      "command": "uv",
      "args": ["run", "python", "server.py"],
      "cwd": "/absolute/path/to/mcp-stock-server"
    }
  }
}

uv sync 이후, 이 설정은 **uv.lock**의 고정된 종속성을 사용합니다.

옵션 B — 프로젝트 가상 환경 Python

MCP 클라이언트에서 uv를 호출하지 않으려면 다음을 사용하세요:

{
  "mcpServers": {
    "FinanceExpert": {
      "command": "/absolute/path/to/mcp-stock-server/.venv/bin/python",
      "args": ["server.py"],
      "cwd": "/absolute/path/to/mcp-stock-server"
    }
  }
}

먼저 가상 환경을 생성하세요(저장소 루트에서): uv sync (.venv에 종속성 설치).

  1. 설정을 저장하고 Cursor를 재시작(또는 MCP를 새로고침)합니다. MCP 패널에서 get_stock_analysis, get_historical_prices, get_stock_price_chart 도구가 포함된 FinanceExpert를 확인할 수 있습니다.

다른 MCP 클라이언트(예: Claude Code, MCP를 지원하는 편집기)도 동일한 개념을 사용합니다: stdio 서버를 위한 command + args + cwd.

도구

도구

설명

get_stock_analysis

스냅샷 텍스트: 현재 가격, 50일 이동 평균, 애널리스트 추천 키(Ticker.info에서 가져옴).

get_historical_prices

days 달력 일수만큼의 기간에 대한 일일 종가(close) 열을 CSV로 제공(period=f"{days}d"). 기본값 days=30.

get_stock_price_chart

박스 형태의 ASCII/유니코드 차트: 영역 채우기, 가격 축, 시간 축의 시작/종료 날짜, 8단계 스파크라인.

get_stock_price_chart 매개변수

  • ticker — 심볼, 예: INTU, AAPL.

  • days — **period**가 생략되었을 때 사용: Yahoo 범위 Nd(달력 일수). 기본값 30.

  • period — 선택적 Yahoo 기간 문자열; 설정 시 **days**보다 우선합니다. 예: 10y, 5y, 1y, 6mo, ytd, max.

예시:

  • 지난 한 달간의 세션(달력 일수 기준): days=30

  • 지난 10년(Yahoo 윈도우): period="10y"

시장 데이터는 yfinance를 통해 Yahoo에서 가져오며, 의미론은 yfinance history(period=...)와 일치합니다.

면책 조항

시세 및 과거 데이터는 정보 제공용일 뿐이며 투자 조언이 아닙니다. Yahoo 데이터는 지연되거나 오류가 포함될 수 있으므로, 의사 결정 시 독립적으로 확인하십시오.

Available Tools

3 tools
get_historical_pricesC

Fetches historical closing prices for chart generation.

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

get_stock_analysisA

Fetches real-time stock price, 50-day average, and analyst recommendations.

Inputs: ticker (required). Returns: result

get_stock_price_chartA

Plain-text Unicode chart. Pass period (e.g. 10y, 5y, 1y) for calendar ranges, or use days alone.

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

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 3 tools

    Disambiguation4/5

    Tools are mostly distinct: get_historical_prices provides raw data for charts, get_stock_analysis gives real-time price and fundamentals, and get_stock_price_chart returns a visual chart. However, get_historical_prices and get_stock_price_chart both relate to historical data, causing slight overlap.

    Naming Consistency5/5

    All tools use a consistent get_verb_noun pattern (get_historical_prices, get_stock_analysis, get_stock_price_chart). Naming is clear and predictable.

    Tool Count5/5

    With 3 tools covering historical data, real-time analysis, and charting, the set is appropriately scoped for a finance assistant. No tool feels unnecessary.

    Completeness3/5

    The tools cover basic stock data retrieval and charting but lack fundamental operations like search, comparison, or portfolio management. Gaps exist for a fully comprehensive finance tool.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables querying Yahoo Finance data including stock prices, historical data, financial statements, dividends, news, analyst recommendations, and company information through the yfinance library.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to retrieve stock market data and financial information from Yahoo Finance using the yfinance Python library. Supports querying stock prices, historical data, and other financial metrics through natural language.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables retrieval of comprehensive financial data from Yahoo Finance, including stock prices, company info, financial statements, options, and news, for stock analysis and market research.
      9
      372
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides access to Yahoo Finance data including real-time stock quotes, historical prices, financial statements, company info, symbol search, and news.
      6
      41 npm
      1
      MIT