Weather Forecast Tool
@hitechdk
About Weather Forecast Tool
Get weather forecasts using an AI agent and an MCP server.
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Weather Forecast Tool?
Weather Forecast Tool is a Python program that fetches and summarizes weather forecasts for a given location using the MET Norway API. It uses the FastMCP framework for tool registration and httpx for asynchronous HTTP requests.
How to use Weather Forecast Tool?
Install dependencies (Python 3.13+, httpx, mcp.server.fastmcp), obtain latitude and longitude for the desired location, import the modules and initialize a FastMCP server named "weather". Then call the get_weather(latitude, longitude) tool asynchronously.
Key features of Weather Forecast Tool
- Retrieves weather forecast data for a specified latitude and longitude.
- Provides a concise daily summary with weather symbols for night, morning, afternoon, and evening.
- Includes minimum and maximum temperatures for the day.
- Returns forecasts in local time.
- Translates weather symbol codes into human‑readable descriptions.
- Uses asynchronous HTTP requests.
Use cases of Weather Forecast Tool
- Integrate a weather forecast tool into an AI assistant to answer weather queries.
- Automate daily weather reports for a fixed set of coordinates.
- Build a simple weather dashboard that summarizes upcoming forecasts.
- Provide localized weather data for travel planning or event scheduling.
FAQ from Weather Forecast Tool
What runtime does Weather Forecast Tool require?
It requires Python 3.13 or later and the following standard library modules: collections, datetime, typing, asyncio, json, as well as third-party packages httpx and mcp.server.fastmcp.
How does Weather Forecast Tool obtain weather data?
It fetches data from the MET Norway API (https://api.met.no/weatherapi/locationforecast/2.0) using asynchronous HTTP requests.
What input does the tool need?
The get_weather tool expects two float arguments: latitude and longitude of the location.
What format does the forecast return?
The tool returns a string containing a formatted daily weather forecast with most frequent weather symbols for periods of the day and temperature ranges.
Is the forecast returned in local time?
Yes, the README states that the forecast will be returned in local time.
Frequently asked questions
What runtime does Weather Forecast Tool require?
It requires Python 3.13 or later and the following standard library modules: `collections`, `datetime`, `typing`, `asyncio`, `json`, as well as third-party packages `httpx` and `mcp.server.fastmcp`.
How does Weather Forecast Tool obtain weather data?
It fetches data from the MET Norway API (`https://api.met.no/weatherapi/locationforecast/2.0`) using asynchronous HTTP requests.
What input does the tool need?
The `get_weather` tool expects two float arguments: `latitude` and `longitude` of the location.
What format does the forecast return?
The tool returns a string containing a formatted daily weather forecast with most frequent weather symbols for periods of the day and temperature ranges.
Is the forecast returned in local time?
Yes, the README states that the forecast will be returned in local time.
Basic information
More Media & Design MCP servers
Spotify MCP Server
marcelmaraisLightweight MCP server for Spotify
Photoshop MCP Server
loonghaoA Model Context Protocol (MCP) server that interfaces with Adobe Photoshop's Python API. Enables LLMs to execute image editing operations, automate workflows, and manage Photoshop tasks through structured commands and context-aware interactions.
Melrōse - programming of music melodies
emickleiinteractive programming of melodies, producing MIDI
YouTube MCP Server
anaisbettsA Model-Context Protocol Server for YouTube
百度地图 MCP Server
baidu-mapsBaidu Map MCP Server
Comments