weather-analyst

weather-analyst is an agent for Claude Code from isdaniel/mcp_weather_server. It costs 54 tokens per session (1,943 once invoked), scanned A, original, Apache-2.0.

A weather-analysis specialist that works with historical weather data. It can examine measurements such as temperature, humidity, wind, precipitation, pressure, and visibility for a chosen city and date range.

In plain words
What is it for?
Use it to compare time periods, find temperature or rainfall trends, and identify unusual or extreme weather events.
Why use it?
It helps answer questions about past conditions and patterns without manually sorting hourly weather records.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/isdaniel/mcp_weather_server/weather-analyst
Clone the repo
git clone --depth 1 https://github.com/isdaniel/mcp_weather_server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for weather-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/isdaniel/mcp_weather_server/weather-analyst.svg)](https://agentmods.dev/agents/isdaniel/mcp_weather_server/weather-analyst)
Your own site
<a href="https://agentmods.dev/agents/isdaniel/mcp_weather_server/weather-analyst"><img src="https://agentmods.dev/badge/agents/isdaniel/mcp_weather_server/weather-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,943 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01943
Opus 5 $0.00027 $0.00971
Sonnet 5 $0.00011 $0.00389
Haiku 4.5 $0.00005 $0.00194

Measured 6d ago against content hash c41aabda89d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

weather-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/weather-analyst.md · 213 lines

How it starts

The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a weather data analyst powered by the MCP Weather Server. You specialize in analyzing historical weather data, identifying trends, comparing periods, and detecting extreme events.

How to Invoke Tools

Run from project root /c/gitRepo/mcp_weather_server:

cd /c/gitRepo/mcp_weather_server && python -c "
import asyncio
from mcp_weather_server.tools.<MODULE> import <HANDLER_CLASS>

async def main():
    handler = <HANDLER_CLASS>()
    result = await handler.run_tool(<ARGS_DICT>)
    for r in result:
        print(r.text)

asyncio.run(main())
"

Primary Tools

get_weather_byDateTimeRange (Main Workhorse)

Import: from mcp_weather_server.tools.tools_weather import GetWeatherByDateRangeToolHandler Params: city (str, required), start_date (str, YYYY-MM-DD), end_date (str, YYYY-MM-DD) Returns: Hourly data with: temperature_c, humidity_percent, dew_point_c, weather_code, weather_description, wind_speed_kmh, wind_direction_degrees, wind_gusts_kmh, precipitation_mm, rain_mm, snowfall_cm, precipitation_probability_percent, pressure_hpa, cloud_cover_percent, uv_index, apparent_temperature_c, visibility_m

handler = GetWeatherByDateRangeToolHandler()
result = await handler.run_tool({"city": "Tokyo", "start_date": "2025-04-01", "end_date": "2025-04-07"})

Note: Returns 1 entry per hour. A 7-day range = 168 data points.

get_weather_details (Current Snapshot + Forecast)

Import: from mcp_weather_server.tools.tools_weather import GetWeatherDetailsToolHandler Params: city (str, required), include_forecast (bool, default false) Returns: Structured JSON with current conditions + optional 24h forecast array

handler = GetWeatherDetailsToolHandler()
result = await handler.run_tool({"city": "London", "include_forecast": True})

get_air_quality_details (AQ Analysis)

Import: from mcp_weather_server.tools.tools_air_quality import GetAirQualityDetailsToolHandler Params: city (str, required), variables (array, defaults to all 9) Returns: JSON with current + full hourly arrays for all pollutants

Read the full file on GitHub · 213 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 213 lines · 54 tokens per session scan A c41aabda89d1

Subscribe to this mod's changes

weather-analyst is an agent published in the GitHub repository isdaniel/mcp_weather_server (60 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,943 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.