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
- Clone the repository:
git clone https://github.com/<your-username>/<repo-name>.git cd <repo-name> - Install dependencies:
npm install - Set up environment variables:
Create a.envfile and add:NEWS_API_KEY=your_newsapi_key - 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.
Weather & Stock MCP Server
Project Details
- Jeetinida/stocknews-mcp
- weather
- Last Updated: 3/25/2025
Recomended MCP Servers
A Model Context Protocol (MCP) server that enables LLMs to interact with iOS simulators through natural language commands.
MCP Server for GitHub Advanced Security
The Neuro-Symbolic Autonomy Framework integrates neural, symbolic, and autonomous learning methods into a single, continuously evolving AI agent-building...
基于 Model Context Protocol (MCP) 的服务器,提供对神岛引擎开放接口整合工具。
🤗 smolagents: a barebones library for agents. Agents write python code to call tools and orchestrate other agents.
Supabase MCP Server enabling Cursor & Windsurf to use any method from Management API and query your database
基于 Model Context Protocol (MCP) 协议的全网热点趋势一站式聚合服务





