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.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • 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

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

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

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

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2: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].