What is MCP Server Weather?
This is an MCP (Modular Computation Platform) server implemented in Python that interacts with the Mateo Weather API (api.open-meteo.com/v1/) to provide weather information.
How to use MCP Server Weather?
- Install uv:
winget install --id=astral-sh.uv -e
(Windows). 2. Set up the project:uv init
,uv venv
,source .venv/bin/activate
,uv add "mcp[cli]" httpx
. 3. Run the server:mcp dev server.py
. 4. Access the MCP Inspector at http://127.0.0.1:6274. 5. Connect -> Tools -> List Tools -> get_current_weather. 6. Enter a latitude and longitude (e.g., 63.4463991, 10.8127596). 7. View the weather data in the 'Tool Result' as a JSON object.
Key features of MCP Server Weather
Retrieves current weather data
Uses the Mateo Weather API
Implemented as an MCP tool
Accepts latitude and longitude as input
Returns weather data in JSON format
Use cases of MCP Server Weather
Displaying weather information in a user interface
Integrating weather data into other applications
Providing weather forecasts based on location
Automated weather monitoring
Educational purposes for learning about APIs and MCP
FAQ from MCP Server Weather
What API does this server use?
What API does this server use?
This server uses the Mateo Weather API (api.open-meteo.com/v1/).
What is MCP?
What is MCP?
MCP stands for Modular Computation Platform. It allows you to define and run tools.
What input does the tool require?
What input does the tool require?
The tool requires a latitude and longitude.
How do I view the results?
How do I view the results?
The results are displayed as a JSON object in the 'Tool Result' section of the MCP Inspector.
What is the purpose of this server?
What is the purpose of this server?
The purpose of this server is to provide a simple way to retrieve weather data using the Mateo Weather API through an MCP tool.