mcp-server-example

mcp-server-example

3.1

If you are the rightful owner of mcp-server-example and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A command-line and MCP-based weather application that provides current weather conditions, forecasts, and alerts for locations worldwide.

The Weather App is a versatile command-line and Model Context Protocol (MCP) based application designed to provide users with comprehensive weather information. It offers real-time weather conditions, daily and hourly forecasts, and alerts for any location globally. The app supports automatic location detection and allows users to retrieve weather data using geographic coordinates. It also includes features to test API connections and verify API key and subscription status. The application is built using Python and requires an OpenWeatherMap API key for accessing weather data. It is equipped with development tools for code quality assurance, including Black for formatting, isort for import sorting, Ruff for linting, and mypy for type checking. The app is designed to be easily extendable, allowing users to create their own MCP servers using the provided template.

Features

  • Get current weather conditions for any location
  • Get daily and hourly weather forecasts
  • Receive weather alerts
  • Retrieve weather data by coordinates
  • Automatic location detection

Tools

  1. get_current_weather

    Get the current weather conditions

  2. get_forecast

    Get daily weather forecasts

  3. get_hourly_forecast

    Get hourly weather forecasts

  4. get_alerts

    Get weather alerts

  5. get_weather_by_coordinates

    Get weather information through coordinates

  6. get_user_location

    Get the user's current location

  7. test_api_connection

    Test API connection

  8. check_api_key_and_subscription

    Check API keys and subscription status