Cover image
Try Now
2025-03-10

MCP -Server, um das Wetter in den USA zu bekommen

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

Weather MCP Server

This repository contains a weather information service built using the MCP (Model-Completion-Protocol) framework. The service provides weather forecasts for any city by leveraging the National Weather Service (NWS) API.

Features

  • Geocode city names to latitude/longitude coordinates
  • Fetch weather data from the National Weather Service API
  • Get detailed weather forecasts including temperature, conditions, and wind information
  • Modular design with separate tools for each step of the process

Available MCP Tool

  • get_weather: Get complete weather information for a city

Installation

We recommend using uv to manage your Python projects:

uv add "mcp[cli]"

Alternatively:

pip install mcp

Usage

Test the MCP Server Locally

To test the MCP server locally, use:

mcp dev weather.py

Use with Claude Desktop

To use this weather server with Claude Desktop, add the following configuration to your Claude Desktop config:

{
  "mcpServers": {
    "my_python_server": {
      "command": "/Users/<user_name>/.local/bin/uv",
      "args": [
        "--directory",
        "/Users/<user_name>/<git_repository_path>",
        "run",
        "weather.py"
      ]
    }
  }
}

Make sure to replace the directories with your own path: </Users/user_name/Your_directory>

Example

Once configured, you can ask Claude questions like:

  • "What's the weather in San Francisco?"
  • "How's the weather in New York City?"
  • "Get me the weather forecast for Chicago"

Claude will use the MCP server to fetch and display the weather information.

License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0). See the LICENSE.md file for details.

相关推荐

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

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

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • OffchainLabs
  • GO -Umsetzung des Ethereum -Beweises des Anteils

  • huahuayu
  • Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.

  • deemkeen
  • Steuern Sie Ihren MBOT2 mit einer Power Combo: MQTT+MCP+LLM

    Reviews

    4 (1)
    Avatar
    user_W8nO91BT
    2025-04-16

    I have been using the mcp-us-city-weather application for a while now, and it's fantastic! Developed by yogi-miraje, this tool provides accurate and up-to-date weather data for various US cities. The interface is user-friendly, and the information is presented clearly. Whether you need to plan your day or check the weather for travel, this app is reliable and efficient. Highly recommended for anyone looking for a dependable US weather information source. Check it out at https://github.com/yogi-miraje/mcp-us-city-weather.