Handles environment configuration for API keys and base URL settings through a .env file.
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.
Related MCP server: WeatherMCP
function
Displaying current weather information
View 3-day weather forecast
Get location-based weather information
Access via MCP protocol
set up
Install dependencies:
Set environment variables: Create a
.envfile and set the required environment variables.
Start the MCP server:
Run the client:
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:
license
MIT