MCP weather forecast server using MET Norway data

MCP weather forecast server using MET Norway data

mcp-server-weather-forecast•byhitechdk

A FastMCP server exposing a get_weather tool that retrieves daily weather forecasts for a latitude and longitude from the MET Norway API.

License: MIT License•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Retrieves weather forecast data for a specified latitude and longitude via the MET Norway API.
  • •Summarizes forecasts into daily summaries showing most frequent weather symbols for night, morning, afternoon and evening, plus minimum and maximum temperatures.
  • •Returns the forecast in local time and maps weather symbol codes into human-readable descriptions.

BEST FOR

  • •Getting a daily weather summary for a location specified by coordinates.
  • •Exposing weather forecast data to MCP clients through a FastMCP tool.

ABOUT MCP-SERVER-WEATHER-FORECAST

MCP weather forecast server using MET Norway data is cataloged as an MCP server attributed to hitechdk. A FastMCP server exposing a get_weather tool that retrieves daily weather forecasts for a latitude and longitude from the MET Norway API. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP weather forecast server using MET Norway data are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How are forecasts summarized for each day?

The daily summary includes the most frequent weather symbols for night, morning, afternoon and evening, along with the day's minimum and maximum temperatures.

What are the inputs to the get_weather tool?

It takes a latitude and a longitude as float arguments and returns a formatted string containing the daily weather forecast.

Upstream README

View this exact version on GitHub

README.md · 32cc8f08bd33 · Fetched 2026-11-13 10:58:14 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Weather Forecast Tool

Description

This Python code provides a tool to fetch and summarize weather forecasts for a given location using the MET Norway API. It leverages the FastMCP framework for tool registration and uses httpx for asynchronous HTTP requests.

Features

  • Weather Forecast: The get_weather function retrieves weather forecast data for a specified latitude and longitude.

  • Daily Summary: The summarize_daily_timeseries_most_occurrences function processes the raw forecast data to provide a concise daily summary, including:

    • Most frequent weather symbols for night, morning, afternoon, and evening.
    • Minimum and maximum temperatures for the day.
    • The forecast will be returned in local time.
  • HTTP Requests: The make_net_request function handles asynchronous HTTP requests to the MET Norway API.

  • Weather Symbol Mapping: The map_weather_symbol function translates weather symbol codes from the API into human-readable descriptions.

Dependencies

  • Python 3.13+
  • collections
  • datetime
  • typing
  • asyncio
  • json
  • httpx
  • mcp.server.fastmcp

Setup

  1. Install Dependencies:

    Install MCP and other dependencies as needed (see MCP documentation)

  2. Obtain Coordinates: You'll need the latitude and longitude for the location you want the weather forecast for.

Usage

  1. Import: Import the necessary modules and initialize the FastMCP server.

    from collections import Counter
    from datetime import datetime, timezone, timedelta
    from mcp.server.fastmcp import FastMCP
    from typing import Any
    import asyncio
    import json
    import httpx
    
    mcp = FastMCP("weather")
    
  2. Use the get_weather tool:

    async def main():
        weather_data = await get_weather(55.6761, 12.5683) # Example: Copenhagen, Denmark
        print(weather_data)
    
    if __name__ == "__main__":
        asyncio.run(main())
    

    Replace 55.6761 and 12.5683 with the desired latitude and longitude.

Tool Definition

* get_weather(latitude: float, longitude: float) -> str * Retrieves and formats the weather forecast for a given location. * Arguments: * latitude (float): The latitude of the location. * longitude (float): The longitude of the location. * Returns: * str: A formatted string containing the daily weather forecast.

MCP

The code uses the FastMCP framework. Please refer to the FastMCP documentation for details on how to set up and run the server.

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP weather forecast server using MET Norway data from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-weather-forecast)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research