
OpenWeather-MCP
一个简单的MCP,可使用开放天气API查看任何城市的当前天气
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
Weather MCP Project
This project is a Model Context Protocol (MCP) server that fetches weather information using the OpenWeatherMap API.
Prerequisites
-
API Key: You need an API key from OpenWeatherMap. Ensure you have access to the following APIs:
- Geocoding API
- Current Weather Data API
Installation
- Clone the repository.
- Install dependencies:
npm install
Usage
Run the MCP server with the following command:
node main.ts --api-key <YOUR_API_KEY>
Replace <YOUR_API_KEY>
with your OpenWeatherMap API key.
Features
- Fetches weather information for a given city.
- Provides concise weather summaries.
Notes
- Ensure your API key has access to both the Geocoding API and the Current Weather Data API from OpenWeatherMap.
- The server uses
yargs
for command-line argument parsing.
License
This project is licensed under the MIT License.
相关推荐
😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack
Reviews

user_gqR3RDBL
As an avid user of the OpenWeather-MCP, I can confidently say that this application is a game-changer for weather updates. Developed by Zerofelx, it offers a seamless experience with accurate and timely weather information. The integration and user-friendly interface make it a must-have for anyone needing reliable weather data. Whether you're planning your day or preparing for a trip, OpenWeather-MCP has got you covered! Highly recommended!

user_yKKnPbhP
I've been using the openweather-mcp app by zerofelx and I'm genuinely impressed! The interface is user-friendly, providing accurate and up-to-date weather information effortlessly. It's become my go-to app for planning my day. The seamless experience and reliable data make it a must-have. Highly recommend to anyone needing reliable weather updates!

user_J0luI1pF
As a devoted user of openweather-mcp, I can confidently say that this application by zerofelx has significantly improved the accuracy and accessibility of weather forecasts for me. The user-friendly interface and reliable updates make it an indispensable tool for daily weather planning. Highly recommended for anyone needing precise weather information!

user_XzRLIoYf
openweather-mcp is an indispensable tool for weather enthusiasts and developers alike. Developed by zerofelx, this application provides seamless integration with weather data, making it easy to stay updated with current conditions and forecasts. The user-friendly interface and comprehensive data make it a must-have for anyone needing reliable weather information. Highly recommended!