Weather MCP Server

Weather MCP Server

mcp-server-weather-example-aman-panjwani•byaman-panjwani

A deployable Model Context Protocol weather server built with FastAPI that serves real-time forecasts and alerts from the U.S. National Weather Service API over SSE with API key authentication.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Defines two MCP tools, get_alerts and get_forecast, backed by the U.S. National Weather Service API.
  • •Wraps the weather tools in a FastAPI app exposed at an SSE endpoint.
  • •Supports API key authentication via an x-api-key header, configurable through an environment variable with multiple comma-separated keys.

BEST FOR

  • •Users wanting to deploy a cloud-hosted weather MCP server protected by API keys.
  • •Connecting MCP weather tools to Visual Studio Code and GitHub Copilot Chat agent mode.

ABOUT MCP-SERVER-WEATHER-EXAMPLE-AMAN-PANJWANI

Weather MCP Server is cataloged as an MCP server attributed to aman-panjwani. A deployable Model Context Protocol weather server built with FastAPI that serves real-time forecasts and alerts from the U.S. National Weather Service API over SSE with API key authentication. 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: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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 Weather MCP Server 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

What tools does the weather MCP server expose?

It defines get_alerts and get_forecast tools using the U.S. National Weather Service API.

How does the server authenticate incoming requests?

It uses x-api-key header-based security, with API keys supplied via an environment variable.

上游原版 README

在 GitHub 查看同一版本原文

README.md · f4f14a048b48 · 采集于 2026-11-13 11:29:01 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Deploying & Connecting Your Remote MCP Weather Server

This project lets you deploy a cloud-based Model Context Protocol (MCP) server that delivers real-time weather data using the U.S. National Weather Service API. It’s built with FastAPI, supports Server-Sent Events (SSE) for real-time communication, and uses secure API key authentication.

This repository provides a ready-to-deploy Weather MCP server. You'll walk through the full setup from cloning the code, configuring authentication, deploying to Azure Container Apps, and finally connecting it inside Visual Studio Code using the MCP extension.


Clone the Repository

git clone https://github.com/your-username/mcp-weather-server.git
cd mcp-weather-server

Understand the Structure

Before deploying, familiarize yourself with the core components:

  • weather.py – Defines two tools: get_alerts() and get_forecast() using the U.S. National Weather Service API.
  • main.py – Wraps the tools in a FastAPI app exposed at /sse, with support for SSE.
  • api_key_auth.py – Implements x-api-key header-based security for incoming requests.
  • Dockerfile – Builds and packages the app using Python 3.13 and the uv web server.

Configure API Key Authentication

Set your API key(s) securely via an environment variable:

export API_KEYS=<YOUR_API_KEY>

You can also supply multiple comma-separated keys. No need to hardcode secrets into the source code.


Build & Deploy to Azure Container Apps

Use the Azure CLI to build and deploy in a single step:

az containerapp up \
  -g <RESOURCE_GROUP> \
  -n weather-mcp \
  --environment <CONTAINERAPPS_ENV_NAME> \
  -l westus \
  --env-vars API_KEYS=<YOUR_API_KEY> \
  --source .

This command will:

  • Build the image using the included Dockerfile.
  • Deploy it to Azure Container Apps.
  • Inject your API key(s) via --env-vars.

Once deployed, Azure CLI will return a public URL this is the endpoint your MCP clients will use.

ContainerAppDeployResponse


Connect from Visual Studio Code

With the server up, connect it inside VS Code:

  1. Create a .vscode/mcp.json file in your project:
{
  "inputs": [
    {
      "type": "promptString",
      "id": "weather-api-key",
      "description": "Weather API Key",
      "password": true
    }
  ],
  "servers": {
    "weather-sse": {
      "type": "sse",
      "url": "https://weather-mcp.orangebush.westus.azurecontainerapps.io/sse",
      "headers": {
        "x-api-key": "${input:weather-api-key}"
      }
    }
  }
}
  1. Open the MCP extension sidebar in VS Code.
  2. Click Start next to your server entry.
  3. Enter the API key when prompted.

You're now connected and ready to process real-time weather queries.


Try It with GitHub Copilot Chat (Agent Mode)

  1. Launch GitHub Copilot Chat in Agent mode.
  2. Ask something like:

"How's the weather forecast in Georgia?"

The agent will call your get_forecast tool behind the scenes and return a live forecast based on NWS data.

RunAgent


You're All Set!

Your MCP server is now:

  • Cloud-hosted
  • API-key protected
  • Integrated with VS Code and GitHub Copilot

You can now build custom agents that interact with real-time weather data from anywhere.

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 Weather MCP Server 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-example-aman-panjwani)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

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

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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