MCP.so
Sign In

Weather MCP Server

@JackKuo666

About Weather MCP Server

No overview available yet

Config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Tools

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

Weather MCP Server is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. It is designed for developers and AI assistants who need real-time weather alerts and forecasts for US locations.

How to use Weather MCP Server?

Clone the repository, set up a Python 3.10+ virtual environment, and install required packages with uv add "mcp[cli]" httpx. Configure settings in config.py (e.g., NWS_API_BASE, USER_AGENT, LOG_LEVEL). Run standalone with python weather.py or use as a tool named "weather" within an MCP client like Cline, calling get_alerts(state) and get_forecast(latitude, longitude).

Key features of Weather MCP Server

  • Get weather alerts for any US state
  • Get weather forecast for latitude/longitude coordinates
  • Uses National Weather Service API
  • Configurable logging and request timeout
  • Improved error handling and console logging
  • Compatible with MCP clients like Cline

Use cases of Weather MCP Server

  • Check active weather alerts before traveling to a US state
  • Retrieve a detailed forecast for a specific geographic location
  • Integrate real-time weather data into an AI assistant or automation
  • Monitor weather conditions for event planning or outdoor activities

FAQ from Weather MCP Server

What tools does Weather MCP Server provide?

It provides get_alerts(state) to retrieve weather alerts for a US state (two-letter code) and get_forecast(latitude, longitude) to get a forecast for a specific location.

What are the runtime requirements?

Python 3.10 or later, with the FastMCP and httpx packages installed.

How do I configure the server?

Edit config.py to change the NWS API base URL, user-agent string, log level, log format, and request timeout.

Can I use this server without Cline?

Yes. Run the server standalone with python weather.py, then call the tools using any MCP client.

How do I test the server?

Run python -m unittest test_weather.py for unit tests, or manually call tools via an MCP client.

Frequently asked questions

What tools does Weather MCP Server provide?

It provides `get_alerts(state)` to retrieve weather alerts for a US state (two-letter code) and `get_forecast(latitude, longitude)` to get a forecast for a specific location.

What are the runtime requirements?

Python 3.10 or later, with the FastMCP and httpx packages installed.

How do I configure the server?

Edit `config.py` to change the NWS API base URL, user-agent string, log level, log format, and request timeout.

Can I use this server without Cline?

Yes. Run the server standalone with `python weather.py`, then call the tools using any MCP client.

How do I test the server?

Run `python -m unittest test_weather.py` for unit tests, or manually call tools via an MCP client.

Comments

More Media & Design MCP servers