Weather & Stock MCP Server

by Jeetinida

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.

Weather & Stock MCP Server 🌦️📉

This project is an MCP (Model Context Protocol) server that provides weather alerts, forecasts, stock prices, historical data, and news using various APIs.

Features 🚀

  • 🐼 Fetch real-time stock prices using Yahoo Finance
  • 📊 Retrieve historical stock data (daily, weekly, monthly)
  • 📰 Get stock-related news from NewsAPI
  • 🌦️ Fetch weather alerts and forecasts using the National Weather Service API

Installation & Setup ⚙️

Prerequisites

  • Node.js (v18 or higher)
  • Git
  • An API key for NewsAPI

Steps

  1. Clone the repository:
    git clone https://github.com/<your-username>/<repo-name>.git cd <repo-name>
  2. Install dependencies:
    npm install
  3. Set up environment variables:
    Create a .env file and add:
    NEWS_API_KEY=your_newsapi_key
  4. Start the server:
    npm start

Usage 🛠️

The MCP server provides the following tools:

Get Stock Price

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

Get Historical Stock Data

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

Get News

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

Contributing 🤝

Feel free to fork this repo, make changes, and submit a pull request! 🚀

License 🐟

This project is licensed under the MIT License.

-
security - not tested
F
license - not found
-
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.

Provides real-time weather alerts, forecasts, stock prices, historical data, and stock-related news through an MCP interface.

  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 🐟

        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
          F
          license
          -
          quality
          Provides real-time access to global stock market data including current prices, historical charts, and company financial information through a Model Context Protocol (MCP) server for AI assistants.
          Last updated -
          TypeScript
          • Linux
          • Apple

        View all related MCP servers

        ID: y4gap285bd