Weather Agent icon

Weather Agent

Fetches current weather information for a specified city using the OpenWeatherMap API.

关于

This simple Model Context Protocol (MCP) server, dubbed "Weather Agent," provides real-time weather information for any specified city. It leverages the OpenWeatherMap API to deliver current temperature in Celsius, humidity, and detailed weather descriptions. Designed for integration with MCP-compatible clients like Claude Desktop, it exposes a single tool for seamless weather data retrieval and acts as a practical example for building custom MCP tools.

主要功能

  • Retrieves current weather for any city globally.
  • Provides detailed weather data: description, temperature (°C), and humidity.
  • Utilizes the OpenWeatherMap API for up-to-date information.
  • Communicates via standard I/O for MCP-compatible client integration.
  • Simple API key configuration via `.env` file.
  • 0 GitHub stars

使用案例

  • Serving as a foundational example for building MCP-compatible tools and servers.
  • Developing custom applications requiring external weather information.
  • Integrating real-time weather data into AI assistants like Claude Desktop.