Weather & Stock MCP Server

Integrations

  • Utilized for version control and code management of the MCP server.

  • Serves as the runtime environment for the MCP server, allowing it to handle financial and weather data requests.

  • Used for managing the server's dependencies and running the application.

天気と株価 MCP サーバー 🌦️📉

このプロジェクトは、さまざまな API を使用して天気警報、予報、株価、履歴データ、ニュースを提供するMCP (Model Context Protocol) サーバーです。

機能🚀

  • 🐼 Yahoo Finance を使ってリアルタイムの株価を取得する
  • 📊過去の株価データ(日次、週次、月次)を取得する
  • 📰 NewsAPIから株式関連ニュースを入手
  • 🌦️ National Weather Service API を使用して天気警報と予報を取得します

インストールとセットアップ ⚙️

前提条件

  • Node.js (v18以上)
  • ギット
  • NewsAPIのAPIキー

手順

  1. リポジトリをクローンします。
    git clone https://github.com/<your-username>/<repo-name>.git cd <repo-name>
  2. 依存関係をインストールします:
    npm install
  3. 環境変数を設定します。
    .envファイルを作成し、以下を追加します。
    NEWS_API_KEY=your_newsapi_key
  4. サーバーを起動します。
    npm start

使用方法 🛠️

MCP サーバーは次のツールを提供します。

株価を取得

{ "tool": "get-stock-price", "params": { "symbol": "AAPL" } }

過去の株価データを取得する

{ "tool": "get-historical-data", "params": { "symbol": "AAPL", "startDate": "2024-01-01", "endDate": "2024-03-01", "interval": "1d" } }

ニュースを入手

{ "tool": "get-news", "params": { "stockName": "Tesla", "startDate": "2024-03-01", "endDate": "2024-03-10" } }

貢献中🤝

ぜひこのリポジトリをフォークして変更を加え、プルリクエストを送信してください!🚀

ライセンス🐟

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

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

MCP インターフェースを通じて、リアルタイムの天気警報、予報、株価、履歴データ、株式関連ニュースを提供します。

  1. Features 🚀
    1. Installation & Setup ⚙️
      1. Prerequisites
      2. Steps
    2. Usage 🛠️
      1. Get Stock Price
      2. Get Historical Stock Data
      3. Get News
    3. Contributing 🤝
      1. License 🐟
        ID: y4gap285bd