shram2k/mcpservers
If you are the rightful owner of mcpservers and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
WeatherMCP is a simple weather server that uses FastMCP and the Open-Meteo API to provide weather data via an MCP-compatible server.
WeatherMCP
A simple weather server using FastMCP and the Open-Meteo API. This project provides weather data via an MCP-compatible server, suitable for integration with MCP clients and tools.
Project structure
Features
- Fetches current weather data for a given latitude and longitude using the Open-Meteo API
- Implements the FastMCP server interface
- Includes logging for debugging and tracing requests
Requirements
Setup
-
Clone the repository and navigate to the project root:
cd D:\mcp-servers\weathermcp
-
Create a virtual environment in the project root:
python -m venv .venv
-
Activate the virtual environment:
- Command Prompt:
.venv\Scripts\activate.bat
- Command Prompt:
-
Install dependencies:
pip install -r requirements.txt uv install mcp
-
(Optional, for local SSL issues) If you encounter SSL certificate errors, you can temporarily disable SSL verification in the code (already set in this project for local testing):
async with httpx.AsyncClient(verify=False) as client:
Note: This is insecure and should only be used for local development.
Running the MCP Server Locally
To start the WeatherMCP server: mcp dev weathermcp.py
The server will start and listen for MCP requests. You can test it using an MCP-compatible client or via a web interface (if available), e.g.:
http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=YOUR_TOKEN#tools
Claude Desktop (Windows)
Add following in "C:\Users\rsharma\AppData\Roaming\Claude\claude_desktop_config.json" (Change path as per your system in following configuration) "weather": { "command": "/Users/rsharma/.local/bin/uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "D:\mcp-servers\weathermcp\weathermcp.py" ] }
Troubleshooting
- Ensure you are using Python 3.10 or newer.
- Activate the correct virtual environment before installing dependencies or running the server.
- If you see port-in-use errors, make sure no other process is using the MCP server port (default: 6277).
- For SSL errors, see the setup section above.
License
MIT