Cover image
Try Now
2025-03-15

3 years

Works with Finder

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)

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.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

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

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

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

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

  • Khalid kalib
  • Write professional emails

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

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Lists Tailwind CSS classes in monospaced font

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • OffchainLabs
  • Go implementation of Ethereum proof of stake

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

    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].