mcp_weather_server: Agent for Claude Code

.claude/agents/weather-assistant.md

weather-assistant is an agent for Claude Code from isdaniel/mcp_weather_server. It costs 46 tokens per session (2,272 once invoked), scanned A, original, Apache-2.0.

An agent for answering weather, air-quality, timezone, and time-conversion questions using live weather-server tools. It can provide current conditions and forecasts for a city.

In plain words
What is it for?
Use it to check current weather, forecasts, air quality, timezones, and time conversions.
Why use it?
It avoids manually combining separate weather, air-quality, and timezone lookups when answering location-based questions.

Agent for Claude Code

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

This is isdaniel/mcp_weather_server's own configuration. It tells Claude Code how to work on mcp_weather_server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp_weather_server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to isdaniel/mcp_weather_server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/isdaniel/mcp_weather_server/main/.claude/agents/weather-assistant.md
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-assistant

README.md
[![agentmods](https://agentmods.dev/badge/agents/isdaniel/mcp_weather_server/weather-assistant/github.svg)](https://agentmods.dev/agents/isdaniel/mcp_weather_server/weather-assistant)
Your own site
<a href="https://agentmods.dev/agents/isdaniel/mcp_weather_server/weather-assistant"><img src="https://agentmods.dev/badge/agents/isdaniel/mcp_weather_server/weather-assistant/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for weather-assistant

Your own site · 80×15
<a href="https://agentmods.dev/agents/isdaniel/mcp_weather_server/weather-assistant"><img src="https://agentmods.dev/badge/agents/isdaniel/mcp_weather_server/weather-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,272 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00046 $0.02272
Opus 5.5 $0.00018 $0.00909
Sonnet 5.5 $0.00009 $0.00454
Haiku 4.5 $0.00005 $0.00227

Measured 2mo ago against content hash f96b398bd43d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

weather-assistant 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 2mo 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-assistant.md · 232 lines

How it starts

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

You are a weather assistant powered by the MCP Weather Server. You have access to 8 tools that fetch real-time weather, air quality, and timezone data via the Open-Meteo API (free, no API key required).

How to Invoke Tools

All tools are Python async handlers. Run them from the 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())
"

Complete Tool Reference

1. get_current_weather

Module: tools_weather | Class: GetCurrentWeatherToolHandler Purpose: Current weather conditions for a city Parameters:

Name Type Required Notes
city string Yes English name only

Returns: Formatted text — temperature, feels-like, humidity, dew point, wind (speed/direction/gusts), precipitation, pressure, cloud cover, UV index, visibility.

Invocation:

from mcp_weather_server.tools.tools_weather import GetCurrentWeatherToolHandler
handler = GetCurrentWeatherToolHandler()
result = await handler.run_tool({"city": "Tokyo"})

2. get_weather_byDateTimeRange

Module: tools_weather | Class: GetWeatherByDateRangeToolHandler Purpose: Hourly weather data across a date range Parameters:

Name Type Required Notes
city string Yes English name only
start_date string Yes ISO format YYYY-MM-DD
end_date string Yes ISO format YYYY-MM-DD

Returns: Field descriptions + hourly JSON data + analysis instructions. One entry per hour (7 days = 168 entries).

Invocation:

from mcp_weather_server.tools.tools_weather import GetWeatherByDateRangeToolHandler
handler = GetWeatherByDateRangeToolHandler()
result = await handler.run_tool({"city": "London", "start_date": "2025-01-10", "end_date": "2025-01-12"})

Read the full file on GitHub · 232 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. 2mo ago First seen · 232 lines · 46 tokens per session scan A f96b398bd43d

Subscribe to this mod's changes

weather-assistant is an agent published in the GitHub repository isdaniel/mcp_weather_server (61 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 2,272 once invoked, about $0.0002 per session on Opus 5.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.

Related

weather-assistant compared with agents from other repositories

weather-assistant next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
weather-assistantisdaniel/mcp_weather_serverAgent611mo agoApache-2.0A46Claude Code
hybrid-cloud-architectHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA79Claude Code
architect-reviewHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA51Claude Code
cloud-architectHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA75Claude Code
django-proHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA52Claude Code
debuggerHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA23Claude Code
graphql-architectHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA45Claude Code