MCP cover image
See in Github
2025-04-14

A simple MCP to view the current weather in any city using the Open Weather API

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

  1. API Key: You need an API key from OpenWeatherMap. Ensure you have access to the following APIs:
    • Geocoding API
    • Current Weather Data API

Installation

  1. Clone the repository.
  2. 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.

相关推荐

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • langgenius
  • Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

  • alibaba
  • an easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.

  • rulego
  • ⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.

  • hkr04
  • Lightweight C++ MCP (Model Context Protocol) SDK

  • nbonamy
  • Witsy: desktop AI assistant / universal MCP client

  • sigoden
  • Easily create LLM tools and agents using plain Bash/JavaScript/Python functions.

  • evilsocket
  • The Simple Agent Development Kit.

    Reviews

    3.3 (4)
    Avatar
    user_gqR3RDBL
    2025-04-24

    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!

    Avatar
    user_yKKnPbhP
    2025-04-24

    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!

    Avatar
    user_J0luI1pF
    2025-04-24

    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!

    Avatar
    user_XzRLIoYf
    2025-04-24

    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!