
maxscheijen/mcp-yahoo-finance
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Yahooファイナンス向けモデルコンテキストプロトコル(MCP)サーバー.
概要
Yahooファイナンス向けモデルコンテキストプロトコル(MCP)サーバー 価格、会社情報、履歴データ、財務諸表、ニュース、推奨事項、利益、配当およびオプションのツールを提供します。 mcp-yahoo-finance は初期開発中です。 ツール名と応答フィールドは、リリース間で変更する場合があります。 uvxを使用して別のインストールなしでmcp-yahoo-financeを実行できます。 リポジトリを機械にクローンした後にパッケージをインストールすることもできます。 claude desktop config.json に追加します。 1。 「Appleの株式価格は何ですか?」2。 "前のクローズ、イントラデーレンジ、および市場のステータスでAAPLの豊富な引用を私に与えます。" 3. 「Nvidiaの会社の概要を表示」 4. 「AppleとGoogleの株式価格の違いは何ですか?」 5. 「2024-01-01と2025-01-01の間のAppleの株式価格はいくらでしたか?」 6. 「AAPLの利用可能なオプションの有効期限は何ですか? 7. 「私に2024-01-19で拡張するAAPLのためのオプションチェーンを表示する」8.
概要(AI 翻訳)
MCP Yahooファイナンスは、モデルコンテキストプロトコル(MCP)サーバーです。 Yahooファイナンスからデータを取得します。 株式価格、会社データ、過去の価格、財務レポート、ニュース、アナリストの評価、業績の日付、配当、およびオプションデータを取得するために使用できます。
このプロジェクトは初期開発中です。 ツール名と応答フィールドは、リリース間で変更できます。
インストール
別のインストールなしでmcp-yahoo-financeを実行できます。 uvx を使用します。
##pipを使う
使用Git
リポジトリをクローンします。 開発環境をインストールします。
設定
##Claudeデスクトップ
claude_desktop_config.json ファイルにこのエントリを追加します。
Docker を使うこともできます。 IMAGE を Docker イメージ名で置換します。
VS コード
.vscode/mcp.json ファイルにこのエントリを追加します。
サンプル質問
以下のような質問をすることができます。
- 「Appleの株式価格とは?」
- 「AAPLの豊富な引用符を、先ほどのクローズ、イントラデーレンジ、市場状況で導きます。」
- 「Nvidiaの会社の概要を表示」
- 「AppleとGoogleの株式価格の違いは何ですか?」
- 「2024-01-01と2025-01-01の間のAppleの株式価格はいくらでしたか?」
- 「AAPLの利用可能なオプションの有効期限は何ですか
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Yahoo Finance
MCP Yahoo Finance is a Model Context Protocol (MCP) server. It gets data from Yahoo Finance. You can use it to get stock prices, company data, past prices, financial reports, news, analyst ratings, earnings dates, dividends, and options data.
This project is in early development. Tool names and response fields can change between releases.
Install
You can run mcp-yahoo-finance without a separate install. Use uvx.
Use pip
pip install mcp-yahoo-finance
Use Git
Clone the repository. Then install the development environment:
git clone [email protected]:maxscheijen/mcp-yahoo-finance.git
cd mcp-yahoo-finance
uv sync
Configure
Claude Desktop
Add this entry to your claude_desktop_config.json file:
{
"mcpServers": {
"yahoo-finance": {
"command": "uvx",
"args": ["mcp-yahoo-finance"]
}
}
}
You can also use Docker. Replace IMAGE with the Docker image name:
{
"mcpServers": {
"yahoo-finance": {
"command": "docker",
"args": ["run", "-i", "--rm", "IMAGE"]
}
}
}
VS Code
Add this entry to your .vscode/mcp.json file:
{
"servers": {
"yahoo-finance": {
"command": "uvx",
"args": ["mcp-yahoo-finance"]
}
}
}
Example questions
You can ask questions like these:
- “What is the stock price of Apple?”
- “Give me a rich quote for AAPL with the previous close, intraday range, and market status.”
- “Show me the company overview for Nvidia.”
- “What is the difference in stock price between Apple and Google?”
- “How much did the stock price of Apple change between 2024-01-01 and 2025-01-01?”
- “What are the available options expiration dates for AAPL?”
- “Show me the options chain for AAPL expiring on 2024-01-19.”
- “What are the call and put options for Tesla?”
Response data
Tools return data in JSON format. This is an example of a rich quote:
{
"symbol": "AAPL",
"currentPrice": 243.5822,
"previousClose": 241.33,
"absoluteChange": 2.2522,
"percentChange": 0.9331,
"open": 242.1,
"dayHigh": 244.2,
"dayLow": 241.9,
"volume": 45678901,
"marketStatus": "REGULAR",
"currency": "USD",
"exchange": "NMS",
"timestamp": "2025-01-02T15:30:00+00:00",
"source": {
"provider": "Yahoo Finance",
"endpoint": "info",
"fetchedAt": "2025-01-02T15:30:01+00:00"
}
}
Errors use the same format for all tools. An error includes an error code and a message:
{
"error": {
"code": "NO_DATA",
"message": "No historical data found for AAPL"
}
}
インストール
uvx mcp-yahoo-finance設定
{
"mcpServers": {
"yahoo-finance": {
"command": "uvx",
"args": ["mcp-yahoo-finance"]
}
}
}