weathercli

2
1
Source

Get current weather conditions and forecasts for any location worldwide. Returns structured data with temperature, humidity, wind, precipitation, and more. No API key required.

Install

mkdir -p .claude/skills/weathercli && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3951" && unzip -o skill.zip -d .claude/skills/weathercli && rm skill.zip

Installs to .claude/skills/weathercli

About this skill

Weather CLI

Use the weathercli command to retrieve weather information for any location worldwide.

Commands

Current Weather

Get real-time weather conditions including temperature, humidity, wind, and precipitation.

weathercli current "<location>"
weathercli current "<location>" --json

Returns: Current temperature, "feels like" temperature, humidity %, wind speed/direction, pressure, cloud cover, UV index, precipitation, weather condition description, and timestamp in local timezone.

Forecast

Get daily or hourly weather forecasts.

# Daily forecast (default: 7 days, max: 16)
weathercli forecast "<location>" --days <N>

# Hourly forecast (max: 384 hours)
weathercli forecast "<location>" --hourly --hours <N>

# JSON output for parsing
weathercli forecast "<location>" --json

Returns: For each day/hour: temperature (high/low or current), weather condition, precipitation probability and amount, wind speed/direction, UV index, sunrise/sunset times (daily only).

Location Search

Find coordinates and timezone information for a location.

weathercli search "<location>"
weathercli search "<location>" --json

Returns: Location name, coordinates (lat/lon), country, region/state, timezone.

Location Format

Locations are flexible and geocoded automatically:

  • City names: "London", "Tokyo", "New York"
  • City + country: "Paris, France", "Berlin, Germany"
  • City + state/region: "Portland, Oregon", "Barcelona, Catalonia"
  • Ambiguous names: Add country/region for precision

Options

  • --json - Output structured JSON (recommended for parsing)
  • --no-color - Disable color output (for plain text parsing)
  • --days N - Number of days for forecast (1-16, default: 7)
  • --hourly - Show hourly instead of daily forecast
  • --hours N - Number of hours for hourly forecast (1-384)
  • --verbose - Show detailed request information

Output Format

Human-Readable (default)

Color-coded temperatures, formatted with emojis and units. Times shown in location's local timezone.

JSON Structure

Current weather:

{
  "location": {
    "name": "Tokyo",
    "latitude": 35.6895,
    "longitude": 139.6917,
    "country": "Japan",
    "timezone": "Asia/Tokyo"
  },
  "time": "2026-01-12T18:45:00+09:00",
  "temperature": 4.7,
  "apparent": 1.8,
  "humidity": 66,
  "wind_speed": 3.6,
  "wind_direction": 135,
  "condition": "Clear sky",
  "weather_code": 0,
  "precipitation": 0,
  "cloud_cover": 0,
  "pressure": 1015.2,
  "uv_index": 0
}

Forecast:

{
  "location": { ... },
  "daily": [
    {
      "date": "2026-01-12",
      "temp_max": 12.1,
      "temp_min": 4.3,
      "condition": "Slight rain",
      "precip_prob": 75,
      "precipitation": 1.5,
      "sunrise": "2026-01-12T08:04:00+09:00",
      "sunset": "2026-01-12T16:45:00+09:00",
      "wind_speed_max": 15.3,
      "wind_direction": 202,
      "uv_index_max": 2.4
    }
  ]
}

Usage Guidelines

When to Use

  • User asks for weather, temperature, forecast, or conditions
  • Planning activities and need weather data
  • Checking if it will rain, snow, or be sunny
  • Getting climate information for travel planning
  • Need sunrise/sunset times
  • Comparing weather across locations

Location Handling

  1. If user provides clear location, use it directly
  2. If ambiguous (e.g., "Portland"), ask for clarification or add context
  3. If location not found, suggest checking spelling or adding country
  4. For coordinates, use search command first to validate

Parsing Output

  • Always use --json for programmatic parsing
  • Extract temperature, condition, wind_speed for quick summaries
  • Check precip_prob for rain likelihood
  • Use sunrise/sunset for daylight planning
  • weather_code follows WMO standard (0-99)

Best Practices

  • Request 3-5 days for travel planning (not full 16)
  • Use hourly forecast for detailed day planning
  • Check apparent temperature for "feels like" comfort
  • UV index >3 = recommend sun protection
  • Wind speed >20 km/h = mention it's windy

Examples

Quick weather check:

weathercli current "London" --json | jq '.temperature, .condition'

Week forecast for trip:

weathercli forecast "Barcelona" --days 5 --json

Detailed today's hourly:

weathercli forecast "Seattle" --hourly --hours 24

Check multiple cities:

for city in "Tokyo" "London" "New York"; do
  weathercli current "$city" --json | jq -r '"\(.location.name): \(.temperature)°C, \(.condition)"'
done

Find exact location:

weathercli search "Springfield" --json

Notes

  • No API key required - Uses free Open-Meteo API
  • Worldwide coverage - Works for any location globally
  • Temperatures in Celsius - Convert if needed (°F = °C × 9/5 + 32)
  • Wind speed in km/h - Convert to mph if needed (×0.621)
  • Local timezone - All times automatically converted
  • Rate limits - Reasonable for personal/agent use; avoid hammering
  • Accuracy - Data from multiple meteorological sources
  • Updates - Current weather updates every 15 minutes
  • Offline - Requires internet connection

Error Handling

Location not found:

Error: location not found: Atlantis

→ Check spelling, try adding country/region

Network error:

Error: weather API error: network timeout

→ Retry after brief delay

Invalid input:

Error: invalid days value

→ Check --days is between 1-16

Installation

If weathercli is not available:

# Via Go
go install github.com/pjtf93/weathercli/cmd/weathercli@latest

# Or download binary from releases
# https://github.com/pjtf93/weathercli/releases

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,6611,419

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,2321,290

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,5041,130

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,329801

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,242719

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,441666