MCP Yahoo Finance

Integrations

  • Provides a way to run the MCP Yahoo Finance server in a Docker container for more isolated deployment

  • References the original and current repositories, along with acknowledgments to the original creator and contributors

  • Includes configuration information for running on Linux systems with appropriate paths

MCP ヤフーファイナンス

Yahoo!ファイナンスとの連携のためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、価格や企業情報を取得し、財務データを視覚化するためのツールを提供します。

このプロジェクトは、視覚化機能が追加された、maxscheijen/mcp-yahoo-financeのフォークおよび拡張です。

特徴

  • 財務データ: 現在の株価、過去の株価、配当、損益計算書などを取得します
  • ビジュアル分析: 市場感情、ポートフォリオの追跡、テクニカル分析のための美しい視覚化を生成します
  • 簡単な統合: Claude Desktop、VS Code、Cursor、その他のMCPクライアントと連携

セットアップ手順

1. リポジトリのクローンを作成する

このリポジトリをローカル マシンにクローンします。

git clone https://github.com/leoncuhk/mcp-yahoo-finance.git cd mcp-yahoo-finance

2. 依存関係をインストールする

pip を使用して必要な依存関係をインストールします。

pip install -r requirements.txt

requirements.txt ファイルが見つからない場合は、依存関係を直接インストールできます。

pip install mcp yfinance pandas matplotlib seaborn plotly kaleido numpy pillow base64io

3. MCPクライアントを構成する

クロードデスクトップ

これをclaude_desktop_config.jsonに追加します (存在しない場合は作成します)。

  • macOS/Linux : ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows : %APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "yahoo-finance": { "command": "uvx", "args": ["mcp-yahoo-finance"] } } }

docker を使用することもできます:

{ "mcpServers": { "yahoo-finance": { "command": "docker", "args": ["run", "-i", "--rm", "IMAGE"] } } }
VSコード

これを.vscode/mcp.jsonに追加します:

{ "servers": { "yahoo-finance": { "command": "uvx", "args": ["mcp-yahoo-finance"] } } }
カーソル

カーソル MCP 構成に以下を追加します:

{ "mcp-servers": { "yahoo-finance": { "command": "uvx", "args": ["mcp-yahoo-finance"] } } }

4. MCPクライアントを再起動します

設定後、Claude Desktop またはお好みの MCP クライアントを再起動してサーバーをロードします。

利用可能なツール

基本財務データ

  • get_current_stock_price : シンボルの現在の株価を取得する
  • get_stock_price_by_date : 特定の日付の株価を取得する
  • get_stock_price_date_range : 日付範囲の株価を取得する
  • get_historical_stock_prices : カスタマイズ可能な期間の過去の株価データを取得する
  • get_dividends : 株式の配当情報を取得する
  • get_income_statement : 損益計算書データを取得する
  • get_cashflow : キャッシュフロー計算書データを取得する
  • get_earning_dates : 収益日情報を取得する
  • get_news : 株式の最新ニュースを取得する

視覚化ツール

  • generate_market_dashboard : リアルタイムのインデックスパフォーマンスを表示する市場感情ダッシュボードを作成する
  • generate_portfolio_report : ポートフォリオパフォーマンス追跡レポートを生成する
  • generate_stock_technical_analysis : 株式のテクニカル分析レポートを作成する

視覚化の例

市場センチメントダッシュボード

ポートフォリオ追跡

株式テクニカル分析

プロンプトの例

以下に、クロードに試していただきたいプロンプトの例を示します。

基本財務データ

  1. 「アップルの現在の株価はいくらですか?」
  2. 「AppleとGoogleの株価の差はどれくらいですか?」
  3. 「2025年1月1日から2025年3月31日の間にAppleの株価はどれくらい変化したでしょうか?」

視覚化リクエスト

  1. 「主要指数のパフォーマンスを示す市場感情ダッシュボードを生成します。」
  2. 「テクノロジー株 AAPL、MSFT、GOOGL、AMZN、NVDA のポートフォリオ追跡レポートを作成します。」
  3. 「移動平均とサポート/レジスタンスレベルを含むテスラ株のテクニカル分析チャートを見せてください。」
  4. 「S&P 500、ダウ・ジョーンズ、NASDAQ を使用して市場感情ダッシュボードを生成します。」
  5. 「エネルギー株(XOM、CVX、BP、COP、SLB)のポートフォリオレポートを作成できますか?」
  6. 「RSI とボリュームパターンを示す NVDA 株の詳細なテクニカル分析が必要です。」

テスト

視覚化機能をテストするには:

cd tests python test_visualization.py

これにより、 examplesディレクトリにサンプルの視覚化画像が生成されます。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

謝辞

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

モデル コンテキスト プロトコルを通じて財務データ (株価、企業情報) を取得し、財務の視覚化を生成するツールを提供します。

  1. Features
    1. Setup Instructions
      1. 1. Clone the Repository
      2. 2. Install Dependencies
      3. 3. Configure MCP Client
      4. 4. Restart your MCP client
    2. Available Tools
      1. Basic Financial Data
      2. Visualization Tools
    3. Visualization Examples
      1. Market Sentiment Dashboard
      2. Portfolio Tracking
      3. Stock Technical Analysis
    4. Example Prompts
      1. Basic Financial Data
      2. Visualization Requests
    5. Testing
      1. License
        1. Acknowledgements

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that provides tools to search and retrieve economic data series from the Federal Reserve Economic Data (FRED) API.
            Last updated -
            2
            3
            TypeScript
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that enables Claude Desktop to access and analyze Chinese and global financial market data through the AKShare library.
            Last updated -
            3
            Python
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A web scraper for financial table data that implements the Model Context Protocol, allowing users to query stock data from multiple Chinese financial websites including THS, TDX, and EastMoney.
            Last updated -
            13
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables AI assistants like Claude to programmatically access financial data from Financial Modeling Prep API, including company profiles, financial statements, metrics, SEC filings, and market data.
            Last updated -
            5
            Python
            MIT License

          View all related MCP servers

          ID: h1x8swudcp