Skip to main content
Glama
Jeetinida

Weather & Stock MCP Server

by Jeetinida

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

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

機能🚀

  • 🐼 Yahoo Finance を使ってリアルタイムの株価を取得する

  • 📊過去の株価データ(日次、週次、月次)を取得する

  • 📰 NewsAPIから株式関連ニュースを入手

  • 🌦️ National Weather Service API を使用して天気警報と予報を取得します

Related MCP server: Finance Tools MCP

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

前提条件

  • 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

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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