Skip to main content
Glama

Weather & Stock MCP Server

by Jeetinida

天気と株価 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
A
license - permissive license
-
quality - not tested

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.

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

  1. 機能🚀
    1. インストールとセットアップ ⚙️
      1. 前提条件
      2. 手順
    2. 使用方法 🛠️
      1. 株価を取得
      2. 過去の株価データを取得する
      3. ニュースを入手
    3. 貢献中🤝
      1. ライセンス🐟

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          This SSE-based MCP server allows users to connect and interact with National Weather Service APIs to retrieve weather alerts and forecasts.
          Last updated -
          90
          Python
        • A
          security
          A
          license
          A
          quality
          An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
          Last updated -
          1
          Python
          MIT License
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          An MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.
          Last updated -
          Python
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          An MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.
          Last updated -
          12
          TypeScript
          MIT License

        View all related MCP servers

        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/Jeetinida/stocknews-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server