Weather MCP Server

by oyzh888

275 downloads
Not rated
GitHub

About

This is a tutorial repo about MCP server and client

Details

Author
oyzh888
Downloads
275
Categories
Media, API

- Get weather alerts for US states
- Get detailed weather forecasts for specific locations

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Weather MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install with Python 3.12+ and uv, then run uv run weather-server. The server exposes two tools: get_alerts(state) for US state weather alerts and get_forecast(latitude, longitude) for location-specific forecasts. To use with Claude for Desktop, add a configuration entry to claude_desktop_config.json pointing to the server directory.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "weather mcp server": {
            "weather-oyzh888": {
                "command": "uv",
                "args": [
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "weather-oyzh888": {
        "command": "uv",
        "args": [
            "venv"
        ]
    }
}

Weather MCP Server

This is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service API.

Project Structure

weather/
├── mcp-server/           # MCP server implementation
│   └── weather.py       # Main server code
├── pyproject.toml       # Project configuration and dependencies
└── README.md           # This file

Features

- Get weather alerts for US states
- Get detailed weather forecasts for specific locations

Prerequisites

- Python 3.12 or higher
- uv package manager

Installation

1. Create and activate a virtual environment:
```bash
uv venv
source .venv/bin/activate # On Unix/macOS

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.