Skip to main content
Glama

mcpapp1 — Weather MCP Server

A small Model Context Protocol server that exposes live US weather alerts to MCP clients such as Claude Desktop, Claude Code, and Cursor.

Data comes from the National Weather Service API, which is free and requires no API key.

What it exposes

Kind

Name

Description

Tool

get_alerts(state)

Active weather alerts for a US state, by two-letter code (e.g. CA, NY)

Resource

echo://{message}

Echoes a message back; useful for verifying the server is reachable

Related MCP server: Weather MCP Server

Requirements

  • Python 3.13+

  • uv

Setup

git clone https://github.com/eyosiasbisrat/mcpapp1.git
cd mcpapp1
uv sync

Running

Run the server directly over stdio:

uv run server/weather.py

Or via the MCP CLI:

uv run mcp run server/weather.py

Inspect it interactively in the MCP Inspector:

uv run mcp dev server/weather.py

An MCP server speaks JSON-RPC over stdin/stdout, so running it by hand just waits silently for input. That is expected — normally a client launches it for you.

Connecting a client

Claude Code / Cursor

Both configs are already checked in and use relative paths, so they work after uv sync with no edits:

Reload the editor window and approve the server when prompted.

Claude Desktop

uv run mcp install server/weather.py

Then quit Claude Desktop completely — including the tray icon, since closing the window leaves it running — and reopen it.

If this prints Claude app not found while Claude Desktop is definitely installed, see below.

Troubleshooting

Claude app not found on Windows

mcp install looks for Claude Desktop's config in a fixed location:

%APPDATA%\Claude

If Claude Desktop was installed as an MSIX / Microsoft Store package, its data is redirected into the package container and that directory never exists:

%LOCALAPPDATA%\Packages\Claude_<id>\LocalCache\Roaming\Claude\claude_desktop_config.json

Two ways to resolve it.

Edit the real config directly — add an mcpServers entry to the claude_desktop_config.json at the packaged path above, keeping any existing keys intact.

Or bridge the paths once with a directory junction, after which mcp install works normally for every server:

cmd /c mklink /J "%APPDATA%\Claude" "%LOCALAPPDATA%\Packages\Claude_<id>\LocalCache\Roaming\Claude"

Substitute your actual package folder name for Claude_<id>. To undo it, cmd /c rmdir "%APPDATA%\Claude" removes only the link, not the config.

When registering the server manually on Windows, use uv's absolute path (e.g. C:\Users\<you>\.local\bin\uv.exe). Packaged apps do not reliably inherit your shell PATH, so a bare uv may fail to launch.

Verifying the server is actually loaded

Confirm the client spawned it by checking process parentage:

Get-CimInstance Win32_Process -Filter "Name='uv.exe'" | ForEach-Object {
  $p = Get-CimInstance Win32_Process -Filter "ProcessId=$($_.ParentProcessId)"
  "$($_.ProcessId) <- $($p.Name)"
}

A uv.exe whose parent is Claude.exe means the server is running. Note that some Claude Desktop builds do not write per-server logs to logs\, so an empty log folder is not evidence of failure.

Project layout

server/weather.py     the MCP server: tool, resource, and NWS client
main.py               placeholder entrypoint
.mcp.json             Claude Code server config
.cursor/mcp.json      Cursor server config
pyproject.toml        dependencies (httpx, mcp[cli])

Notes

  • get_alerts covers US states only, since NWS is a US agency.

  • Requests carry a User-Agent header, which the NWS API requires.

  • Network and HTTP errors are swallowed and surface as a friendly "unable to fetch" message rather than a traceback.

Available Tools

1 tool
get_alertsA

Get weather alerts for a US state.

Args: state: Two-letter US state code (e.g. CA, NY)

ParametersJSON Schema
NameRequiredDescriptionDefault
stateYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. 'Get' implies a read-only operation, but the description does not explicitly state side-effect-free behavior or any caveats about alert types or data source. It is not misleading, but it adds minimal behavioral context beyond what the name implies.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise, with a front-loaded purpose statement followed by a compact Args block. Every sentence earns its place and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a single well-documented parameter, an output schema, and no siblings, the description plus schema fully covers what an agent needs to invoke the tool correctly. No missing context for this simple operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description fully compensates by specifying the parameter format ('Two-letter US state code') and providing concrete examples ('CA, NY'). This adds real meaning beyond the raw schema type string.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Get'), a clear resource ('weather alerts'), and a clear scope ('US state'). It is unambiguous and leaves no doubt about what the tool does, even without siblings to differentiate from.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There are no sibling tools, so explicit routing guidance is unnecessary. The description clearly implies usage: when you need weather alerts for a US state. It lacks explicit exclusions, but nothing is misleading or missing for a tool of this simplicity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev0.1.0
    • First observedget_alerts

TDQS

A4.4/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or misselection. The tool's purpose is clearly defined in its name and description.

Naming Consistency5/5

The single tool name follows the verb_noun pattern (get_alerts), which is clean and predictable. There are no other tools to create inconsistency.

Tool Count3/5

One tool feels thin for a server, even one dedicated to weather alerts. While alerts retrieval is a focused task, a small set of supporting tools (e.g., list states or get alert details) would make the server feel more complete.

Completeness5/5

For the stated purpose of retrieving weather alerts, the get_alerts tool covers the core operation without obvious gaps. The domain is narrow, and no additional lifecycle operations are necessary for read-only alert access.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    This is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables users to get real-time weather alerts for US states and echo messages through both MCP server tools and a modern web interface. Provides weather information access with multiple deployment options for different use cases.
    1
    -
  • F
    license
    B
    quality
    D
    maintenance
    Provides weather forecasts and alerts for US locations using the National Weather Service API. Enables users to retrieve active alerts by state and detailed forecasts by coordinates via MCP tools.
    2
    -