StockFlow MCP Server
StockFlow MCP Server
Yahoo Finance를 통해 실시간 주식 데이터와 옵션 분석을 제공하는 Model Context Protocol (MCP) 서버입니다. LLM이 시장 데이터에 접근하고, 주식을 분석하며, 옵션 전략을 평가할 수 있게 해줍니다.
기능
주식 데이터
실시간 주가 및 주요 지표
OHLC 값을 포함한 과거 가격 데이터
기업 펀더멘털 및 재무제표
시장 지표 및 비율
옵션 분석
전체 옵션 체인 데이터
Greeks (delta, gamma, theta, vega)
거래량 및 미결제약정 추적
옵션 전략 분석
Related MCP server: MCP Yahoo Finance
설치
# Install dependencies
pip install mcp yfinance
# Clone the repository
git clone https://github.com/twolven/stockflow
cd stockflow사용 방법
저장소를 클론합니다:
git clone https://github.com/twolven/mcp-stockflow.git
cd mcp-stockflow의존성을 설치합니다:
pip install -r requirements.txtClaude 설정에 추가합니다:
claude-desktop-config.json파일의mcpServers섹션에 다음을 추가하세요:
{
"mcpServers": {
"stockflow": {
"command": "python",
"args": ["path/to/stockflow.py"]
}
}
}"path/to/stockflow.py"를 stockflow.py 파일을 저장한 전체 경로로 바꾸세요.
Claude 사용 프롬프트
Claude로 작업할 때, 사용 가능한 도구를 이해시키기 위해 이 프롬프트를 사용할 수 있습니다:
"저는 stockflow 도구를 활성화했습니다. 이 도구는 주식 시장 데이터에 접근할 수 있게 해줍니다. 다음 세 가지 주요 함수를 사용할 수 있습니다:
get_stock_data- 종합적인 주식 정보 가져오기:
{
"symbol": "AAPL",
"include_financials": true, # optional
"include_analysis": true, # optional
"include_calendar": true # optional
}get_historical_data- 가격 이력 및 기술적 지표 가져오기:
{
"symbol": "AAPL",
"period": "1y", # 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
"interval": "1d", # 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo
"prepost": false # optional - include pre/post market data
}get_options_chain- 옵션 데이터 가져오기:
{
"symbol": "AAPL",
"expiration_date": "2024-12-20", # optional - uses nearest date if not specified
"include_greeks": true # optional
}모든 응답에는 현재 가격 데이터, 오류 처리, 종합적인 시장 정보가 포함됩니다."
서버 실행
python stockflow.pyMCP 클라이언트와 함께 사용
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
server_params = StdioServerParameters(
command="python",
args=["stockflow.py"]
)
async def run():
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
# Get current stock data
result = await session.call_tool(
"get-stock-data",
arguments={"symbol": "AAPL"}
)
# Get options chain
options = await session.call_tool(
"get-options-chain",
arguments={
"symbol": "AAPL",
"expiration_date": "2024-12-20"
}
)
if __name__ == "__main__":
import asyncio
asyncio.run(run())사용 가능한 도구
get-stock-data현재 가격 및 거래량
시가총액 및 P/E 비율
52주 최고/최저
get-historical-dataOHLC 가격
구성 가능한 기간
거래량 데이터
get-options-chain콜 및 풋
행사가
Greeks 및 IV
거래량 및 미결제약정
사용 가능한 리소스
company-info://{symbol}회사 설명
섹터 및 산업
직원 수
웹사이트
financials://{symbol}손익계산서
대차대조표
현금흐름표
프롬프트
analyze-options옵션 전략 분석
위험/보상 평가
시장 상황 평가
요구 사항
Python 3.12+
mcp
yfinance
제한 사항
데이터는 Yahoo Finance에서 제공되며 지연될 수 있습니다
옵션 데이터 가용성은 시장 시간에 따라 다릅니다
Yahoo Finance API 제한에 따라 속도 제한이 적용됩니다
기여
기여는 언제나 환영합니다! Pull Request를 자유롭게 제출해 주세요.
라이선스
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다 - 자세한 내용은 LICENSE 파일을 참조하세요.
저자
Todd Wolven - 리드 AI 소프트웨어 개발자 및 오픈소스 GenAI 엔지니어
감사의 말
Anthropic의 Model Context Protocol (MCP)로 구축됨
데이터 제공: Yahoo Finance
Anthropic의 Claude와 함께 사용하도록 개발됨
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.38MIT
- AlicenseBqualityBmaintenanceA Model Context Protocol server that enables interaction with Yahoo Finance to retrieve stock pricing, company information, and historical financial data through natural language queries.1029MIT
- AlicenseCqualityNot gradedmaintenanceA Model Context Protocol server that provides tools for interacting with Yahoo Finance, allowing users to retrieve stock prices, company information, and perform financial data comparisons.11
- AlicenseCqualityDmaintenanceA Model Context Protocol server providing comprehensive financial data from Yahoo Finance, allowing users to retrieve detailed stock information, financial statements, options data, and market news.34MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Real-time news with bias scoring, live market data, and AI-powered options pricing
Appeared in Searches
- Real-Time Stock Options Data for All NASDAQ Stocks
- Yahoo Finance MCP (Model Context Protocol) Server
- A server for exploring business analysis, market research, and idea validation techniques
- A guide to investing in managed funds and equities
- A platform for live probability option trading with indicators across multiple markets
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/twolven/mcp-stockflow'
If you have feedback or need assistance with the MCP directory API, please join our Discord server