TM

twolven/mcp-stockscreen

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

49 stars 21 forks 품질 58 트렌드 21MIT

2lven/mcp-stockscreen는 MCP 서버 후보자는 https://github.com/twolven/mcp-stockscreen.에서 수입했습니다

개요

2lven/mcp-stockscreen는 MCP 서버 후보자는 https://github.com/twolven/mcp-stockscreen.에서 수입했습니다

개요(AI 번역)

Yahoo Finance-backed 기술, 기본, 옵션, 뉴스, 사용자 정의 및 시계 화면에 대한 Typed FastMCP 서버. 로컬 stdio와 containerized Streamable HTTP 전송을 지원합니다.

도구

  • [T0]]
  • get_stock_news(symbol, days_back=30)
  • [T2]]
  • [T3]

레거시 입력 및 5 개의 원본 화면 범주가 유지됩니다. 알 수없는 기준은 침묵적으로 무시됩니다. 기술적인 스크린은 본래 가격, 양, SMA-50/SMA-200, RSI 및 ATR 기준을 지원합니다. 기본 화면은 최소 / 최대 시장 캡, P / E, 배당, 수익 성장, 이익 마진, 채무 / 책임, 가격 / 책, AUM, 비용 비율 및 볼륨을 포함합니다. 옵션 화면에는 IV, 옵션 볼륨, 퍼 / 통화 비율, 퍼짐, 만료일 및 수입 일 경계가 포함됩니다. ETF, 뉴스 및 배열 된 사용자 정의 표준은 원래 이름을 유지합니다. Explicit 상징 또는 시계표는 선호됩니다. yfinance의 documented screen] size=250], US-region filter, category-aware EquityQuery/ETFQuery predicates, 그리고 Asset/market-cap downing order를 사용한다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

StockScreen MCP

A typed FastMCP server for Yahoo Finance-backed technical, fundamental, options, news, custom, and watchlist screening. It supports local stdio and containerized Streamable HTTP transports.

Tools

  • run_stock_screen(screen_type, criteria, watchlist=None, save_result=None)
  • get_stock_news(symbol, days_back=30)
  • manage_watchlist(action, name, symbols=None)
  • get_screening_result(name)

Legacy inputs and the five original screen categories are retained. Unknown criteria are rejected rather than silently ignored. Technical screens support the original price, volume, SMA-50/SMA-200, RSI, and ATR criteria. Fundamental screens include minimum/maximum market cap, P/E, dividend, revenue growth, profit margin, debt/equity, price/book, AUM, expense ratio, and volume. Options screens include IV, option volume, put/call ratio, spread, expiration-day, and earnings-day bounds. ETF, news, and nested custom criteria retain their original names. Explicit symbols or a watchlist are preferred. With neither, the server uses yfinance’s documented screen query with size=250, US-region filters, category-aware EquityQuery/ETFQuery predicates, and assets/market-cap descending order. Universe metadata includes source, category, requested/returned size, sort, and as-of time. Missing requested metrics reject a symbol instead of becoming zero, and every rejected symbol retains reasons. Persistence names are restricted and normalized JSON writes are atomic under ~/.stockscreen; no migration runs during import.

uv sync --locked
uv run python stockscreen.py

The server uses stdio and emits no logs or migration messages to stdout. Yahoo Finance is an unofficial personal-use source and may be delayed, incomplete, rate-limited, or structurally changed. Results are not investment advice or guaranteed real-time data.

Docker / Streamable HTTP

The container runs as an unprivileged user, installs the locked production dependencies, and serves MCP at http://127.0.0.1:8000/mcp. Start it with:

docker compose up --build -d
Invoke-RestMethod http://127.0.0.1:8000/health

Connect a Streamable HTTP-capable MCP client to http://127.0.0.1:8000/mcp. The named stockscreen-data volume persists watchlists and saved results across container replacement. To avoid a port collision when running multiple servers, set MCP_HOST_PORT before starting Compose, for example $env:MCP_HOST_PORT=8002. Stop the container with docker compose down; add --volumes only when you intentionally want to delete the persisted data.

The Compose mapping intentionally binds to localhost. The endpoint has no authentication or TLS and must not be exposed to an untrusted network without a properly configured reverse proxy and access control.

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →