MCP cover image
See in Github
2025-03-15

1

Github Watches

0

Github Forks

0

Github Stars

Weather MCP Server

Overview

This project implements a Model Context Protocol (MCP) server that allows AI assistants (such as Claude) to interact with the National Weather Service (NWS) API. The server provides real-time weather alerts and forecasts for a given location.

Features

  • Retrieve active weather alerts for a given US state.
  • Fetch weather forecasts for a specified latitude and longitude.
  • Implements the FastMCP framework to expose tools for AI interaction.

Technologies Used

  • Python
  • FastMCP
  • httpx (for asynchronous HTTP requests)

Prerequisites

Before running this project, ensure you have:

  • Python installed (version 3.11.6 or higher recommended)
  • uv package manager (pip install uv)
  • httpx installed (pip install httpx)
  • fastmcp installed (pip install fastmcp)
  • Claude Desktop app

uv Package Manager Installation

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Add to PATH

Installation & Setup

  1. Clone the repository: git clone https://github.com/ankushmehta123/weather-mcp-server.git

  2. Install dependencies: pip install -r requirements.txt

  3. Configure your MCP server by adding the following to claude_desktop_config.json:

     "mcpServers": {
         "weather": {
             "command": "C:/Users/"enter_your_username"/.local/bin/uv.exe",
             "args": [
                 "--directory",
                 "directory_location of main.py",
                 "run",
                 "main.py"
             ]
         }
     }
    }
    
    

Usage

Run main.py python main.py

Available API Tools

Open Claude Desktop, you would see: 2 MCP tools available (at right-side of the search-bar)

<img/ alt="météo-MCP-Server image">

You can ask real-time weather-related questions to Claude now

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

  • modelcontextprotocol
  • Serveurs de protocole de contexte modèle

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

    Reviews

    5 (1)
    Avatar
    user_1YMvadJK
    2025-04-15

    The Supavec MCP Server by MCP-Mirror is an outstanding product for managing server tasks efficiently. Its robust features and seamless functionality make it a must-have for anyone serious about server management. The intuitive user interface and comprehensive tools provided ensure a smooth and hassle-free experience. Highly recommended for its reliability and performance. For more details, visit: [product link].