StockFlow MCPサーバー
Yahoo Financeを通じてリアルタイムの株式データとオプション分析を提供するモデルコンテキストプロトコル(MCP)サーバー。LLM(法務・法務・法務)が市場データにアクセスし、株式を分析し、オプション戦略を評価できるようにします。
特徴
株価データ
- リアルタイムの株価と主要指標
- OHLC値を含む過去の価格データ
- 企業の基礎情報と財務諸表
- 市場指標と比率
オプション分析
- 完全なオプションチェーンデータ
- ギリシャ文字(デルタ、ガンマ、シータ、ベガ)
- 取引量と未決済建玉の追跡
- オプション戦略分析
インストール
使用法
- リポジトリをクローンします。
- 依存関係をインストールします:
- Claude 構成に追加します。claude
claude-desktop-config.json
で、mcpServers
セクションに以下を追加します。
「path/to/stockflow.py」を、stockflow.py ファイルを保存した場所へのフルパスに置き換えます。
クロードの使用プロンプト
Claude を操作するときは、次のプロンプトを使用して、使用可能なツールを理解できるようにすることができます。
株式市場データにアクセスできるストックフローツールを有効にしました。以下の3つの主な機能をご利用いただけます。
get_stock_data
- 包括的な株価情報を取得します:
get_historical_data
- 価格履歴とテクニカル指標を取得します。
get_options_chain
- オプションデータを取得します:
すべての応答には、現在の価格データ、エラー処理、包括的な市場情報が含まれます。
サーバーの実行
MCPクライアントでの使用
利用可能なツール
get-stock-data
- 現在の価格と数量
- 時価総額とPER
- 52週間の高値/安値
get-historical-data
- OHLC価格
- 設定可能な期間
- ボリュームデータ
get-options-chain
- コールとプット
- 行使価格
- ギリシャ人とIV
- 取引量と未決済建玉
利用可能なリソース
company-info://{symbol}
- 会社概要
- セクターと業界
- 従業員数
- Webサイト
financials://{symbol}
- 損益計算書
- 貸借対照表
- キャッシュフロー計算書
プロンプト
analyze-options
- オプション戦略分析
- リスクと報酬の評価
- 市場状況の評価
要件
- Python 3.12以上
- マクピー
- yファイナンス
制限事項
- データはYahoo Financeから取得されており、遅延が生じる可能性があります。
- オプションデータの利用可能時間は市場時間によって異なります
- Yahoo Finance APIの制限に基づいてレート制限が適用されます
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
著者
トッド・ウルブン - ( https://github.com/twolven )
謝辞
謝辞
- Anthropicのモデルコンテキストプロトコル(MCP)を使用して構築
- データはYahoo Financeより提供
- アントロピックのクロードとの使用のために開発されました
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Yahoo Finance を通じてリアルタイムの株式データとオプション分析を提供するモデル コンテキスト プロトコル サーバー。LLM が市場データにアクセスし、株式を分析し、オプション戦略を評価できるようになります。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.Last updated -4PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs like Claude to interact with the Alpaca trading API, allowing for trading stocks, checking positions, fetching market data, and managing accounts through natural language.Last updated -PythonMIT License
Ramp MCP Serverofficial
-securityAlicense-qualityA Model Context Protocol server that enables access to Ramp financial data through an in-memory database, allowing LLMs to analyze transactions, reimbursements, bills, and other financial information from Ramp's platform.Last updated -14PythonMIT License- AsecurityFlicenseAqualityA Model Context Protocol server that enables LLMs to access comprehensive financial data from Alpha Vantage API, including stock prices, fundamentals, forex, crypto, and economic indicators.Last updated -9412JavaScript