Weather MCP
Weather Forecast Application Using Model Context Protocol (MCP)
overview
This application is an MCP server that uses the Open-Meteo API to retrieve and display weather forecast data. Through the MCP protocol, weather information can be accessed from LLM applications.
function
- Displaying current weather information
- View 3-day weather forecast
- Get location-based weather information
- Access via MCP protocol
set up
- Install dependencies:
Copy
- Set environment variables: Create a
.env
file and set the required environment variables.
Copy
- Start the MCP server:
Copy
- Run the client:
Copy
MCP Tools
get_weather
Get current weather information and 3-day forecast for a given city.
Parameters:
city
: The name of the city for which you want to get weather information (e.g. Tokyo, New York)
Example response:
Copy
license
MIT
This server cannot be installed
A Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.