search-weather

Fetch real-time weather data for global cities via OpenWeatherMap API.

40|9|Updated Mar 23, 2025
One-click install
npx skills add https://github.com/kyopark2014/mcp --skill search-weather
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: search-weather
Source: https://github.com/kyopark2014/mcp/tree/main/application/skills/search-weather
Command: npx skills add https://github.com/kyopark2014/mcp --skill search-weather

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Fetch real-time weather data for a given city, enabling quick decisions and informed conversations without manual lookups.

Core Features & Use Cases

  • Global city coverage: fetch current weather for cities around the world.
  • Flexible output: JSON for programmatic use or text for human-readable display.
  • Language-friendly: accepts English city names and returns consistent results for integration into assistants or apps.
  • Use Case: a travel assistant asks about Seoul weather and uses the skill to present current conditions.

Quick Start

Run the weather_search.py script with an English city name to obtain current weather data.

Frequently Asked Questions about search-weather

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch real-time weather data for a city using the OpenWeatherMap API in Python?

You can fetch real-time weather data by running a Python script that calls the OpenWeatherMap API with an English city name, returning results as JSON or human-readable text for apps and chat assistants.

Do I need an OpenWeatherMap API key to get current weather for global cities?

Yes, getting current weather for global cities requires an OpenWeatherMap API key, which you provide via the OPENWEATHERMAP_API_KEY environment variable or AWS Secrets Manager.

What Python dependencies are required to retrieve weather info for any city?

To retrieve weather info, you need Python 3.6 or higher, the requests library for API integration, and internet access to query the OpenWeatherMap service.

Can I return weather data as JSON for programmatic use in a travel assistant?

Yes, the weather lookup script supports flexible output, returning structured JSON for programmatic integration into apps or human-readable text for display in chat assistants.

What's the best way to look up weather for cities around the world programmatically?

Supplying English city names to a Python script integrated with the OpenWeatherMap API provides consistent global city coverage, enabling quick decisions without manual lookups.

How does AWS Secrets Manager work with OpenWeatherMap API integration for weather lookups?

You can securely store your OpenWeatherMap API key in AWS Secrets Manager, allowing the Python script to retrieve credentials at runtime instead of hardcoding them in environment variables.