Weather MCP server

Weather MCP server

weather-jalateras•byjalateras

A Model Context Protocol server that fetches weather alerts and forecasts from the National Weather Service API and offers system tools for MCP clients.

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

WHAT IT DOES

  • •Provides weather alerts for states and forecasts for specific coordinates.
  • •Includes system tools that run shell commands and show system process information.
  • •Exposes weather and system capabilities as MCP tools and resources.

BEST FOR

  • •Asking about current weather alerts in a state.
  • •Getting a forecast for given latitude and longitude coordinates.
  • •Checking which processes use the most CPU on a system.

ABOUT WEATHER-JALATERAS

Weather MCP server is cataloged as an MCP server attributed to jalateras. A Model Context Protocol server that fetches weather alerts and forecasts from the National Weather Service API and offers system tools for MCP clients. 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.

能力检查器

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

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

Which external API does the server use for weather data?

It uses the National Weather Service (NWS) API to fetch weather alerts and forecasts.

Can the server be used from Claude Desktop?

Yes, the server can be registered with Claude Desktop and selected from its MCP server menu.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3a843786b38f · 采集于 2026-11-13 11:15:13 UTC

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

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

Weather MCP Server

Overview

This project implements a Model Context Protocol (MCP) server that provides weather information services. It leverages the National Weather Service (NWS) API to fetch weather alerts and forecasts, and exposes them as tools that can be used by MCP clients like Claude.

The server is built with a modular architecture following best practices for Python projects, making it easy to maintain and extend.

Features

  • Weather Tools: Get weather alerts for states and forecasts for specific coordinates
  • System Tools: Run shell commands and view system process information
  • MCP Integration: Seamlessly integrates with MCP clients like Claude Desktop

Installation

Prerequisites

  • Python 3.11 or higher
  • uv package manager

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/weather.git
    cd weather
    
  2. Install dependencies using uv:

    make install
    
  3. For development, install additional dependencies:

    make dev
    

Usage

Running the Server

To start the MCP server:

make run

Or directly with uv:

uv run python -m main

Connecting to Claude Desktop

  1. Update your Claude Desktop configuration to include the weather server:
{
  "mcpServers": {
    "weather": {
      "command": "python",
      "args": ["-m", "main"],
      "cwd": "/path/to/weather"
    }
  }
}
  1. Restart Claude Desktop to apply the changes

  2. In Claude Desktop, you can now select the "weather" MCP server from the MCP server dropdown menu

The weather MCP server will be available to Claude Desktop, allowing you to interact with weather data directly in your conversations.

Example Queries

Once connected, you can ask Claude:

  • "What are the current weather alerts in CA?"
  • "What's the forecast for latitude 37.7749, longitude -122.4194?"
  • "What processes are using the most CPU on my system?"

Project Structure

weather/
├── src/
│   └── weather/
│       ├── __init__.py          # Package initialization
│       ├── server.py            # Main server setup
│       ├── tools/               # Tool implementations
│       │   ├── __init__.py
│       │   ├── weather_tools.py
│       │   └── system_tools.py
│       ├── resources/           # Resource implementations
│       │   ├── __init__.py
│       │   └── system_resources.py
│       ├── services/            # External service integrations
│       │   ├── __init__.py
│       │   ├── weather_service.py
│       │   └── system_service.py
│       └── utils/               # Helper functions
│           ├── __init__.py
│           ├── http.py
│           └── formatting.py
├── tests/                       # Test suite
├── main.py                      # Entry point
├── pyproject.toml               # Dependencies and metadata
├── Makefile                     # Build commands
└── README.md                    # This file

Make Targets

The project includes several make targets to simplify development:

TargetDescription
installInstall project dependencies using uv
lintRun ruff linter with auto-fix using uv
formatRun black formatter using uv
format-checkCheck if files would be reformatted by black
lint-formatRun both linter and formatter
testRun tests using pytest with uv
cleanRemove build artifacts and cache files
outdatedCheck for outdated dependencies using uv
upgrade-depsUpgrade all outdated dependencies using uv
runStart the MCP server using uv
inspectorStart the MCP Inspector for testing
hooksInstall git hooks
dev-serverStart the MCP server in development mode
stop-serverStop the MCP server and Inspector
claude-installInstall the server in Claude Desktop
claude-uninstallUninstall the server from Claude Desktop

Run make help to see all available targets.

Using with Claude Desktop

To use the weather MCP server with Claude Desktop:

  1. Install the server in Claude Desktop:
make claude-install

This will:

  • Use the MCP CLI to install the server in Claude Desktop
  • Install the project in editable mode (-e .)
  • Register the server with the name "weather"
  • Configure the server to run from your project directory
  1. Restart Claude Desktop to apply the changes

  2. In Claude Desktop, you can now select the "weather" MCP server from the MCP server dropdown menu

The weather MCP server will be available to Claude Desktop, allowing you to interact with weather data directly in your conversations.

To uninstall the server from Claude Desktop:

make claude-uninstall

This will remove the weather MCP server configuration from Claude Desktop. You'll need to restart Claude to apply the changes.

Development Mode

For active development with automatic reloading when code changes:

# Start the server in development mode with the MCP Inspector
make dev-server

This will:

  1. Start the MCP server using the mcp dev command
  2. Install the project in editable mode (-e .)
  3. Launch the MCP Inspector automatically
  4. Enable automatic reloading when your code changes

The MCP Inspector will be available at http://localhost:5173 in your web browser.

To stop the server and Inspector:

make stop-server

This setup is ideal for iterative development as the server will automatically reload when you make changes to your code.

Inspector Features

The MCP Inspector allows you to:

  1. Explore Tools: View all available tools, their parameters, and documentation.
  2. Call Tools: Execute tools with custom parameters and see the results.
  3. Browse Resources: View all available resources and their current values.
  4. Test Prompts: If your server provides prompt templates, you can test them with different inputs.
  5. View Logs: See detailed logs of all interactions between the Inspector and your server.

Testing Weather Tools

With the Inspector, you can easily test the weather tools:

  1. Find the get_weather_alerts tool in the Inspector interface
  2. Enter a state code (e.g., "CA", "NY", "FL") in the parameters field
  3. Execute the tool and view the results

Similarly, you can test the get_forecast tool by providing latitude and longitude coordinates.

Testing System Tools

The Inspector also makes it easy to test system tools:

  1. Find the run_shell_command tool
  2. Enter a safe command (e.g., "ls -la", "echo hello") in the parameters field
  3. Execute the tool and view the results

Debugging with the Inspector

The Inspector is particularly useful for debugging:

  1. It shows detailed error messages if a tool call fails
  2. You can see the exact request and response payloads
  3. It helps identify issues with parameter validation or tool implementation

For more information about the MCP Inspector, visit the Model Context Protocol documentation.

Testing Locally

You can test your MCP server locally using the MCP CLI tool that comes with the mcp[cli] package:

  1. Start your server:

    make run
    
  2. In a separate terminal, use the MCP CLI to interact with your server:

    # List all available tools
    make inspector
    
    # Call a specific weather tool
    mcp call-tool http://localhost:8000 get_weather_alerts --args '{"state": "CA"}'
    
    # Get a weather forecast
    mcp call-tool http://localhost:8000 get_forecast --args '{"latitude": 37.7749, "longitude": -122.4194}'
    
    # List system resources
    mcp list-resources http://localhost:8000
    
    # Get system processes
    mcp get-resource http://localhost:8000 top_processes
    

If you're using uv directly, you can run the MCP CLI with:

uv run mcp list-tools http://localhost:8000

Development

Adding New Tools

To add a new tool to the server:

  1. Create a function in the appropriate tools module
  2. Register it with the @server.tool() decorator
  3. Update the tool registration in tools/__init__.py

Example:

@server.tool()
async def my_new_tool(param1: str, param2: int) -> str:
    """
    Tool description.
    
    Args:
        param1: Description of param1
        param2: Description of param2
        
    Returns:
        Description of return value
    """
    # Implementation
    return result

Adding New Resources

To add a new resource:

  1. Create a function in the appropriate resources module
  2. Register it with the @server.resource() decorator
  3. Update the resource registration in resources/__init__.py

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

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/weather-jalateras)

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