Back to Home
iamthite icon

Weather-MCP-Server

Verified Safe

by iamthite

Overview

Provides comprehensive weather information and tools via a Model Context Protocol (MCP) server using FastMCP and WeatherAPI.com.

Installation

Run Command
python weather_server.py

Environment Variables

  • WEATHER_API_KEY
  • WEATHER_API_URL

Security Notes

The `WEATHER_API_KEY` is hardcoded directly in `main.py` (`weather_server.py`). While `python-dotenv` is used to load environment variables, the hardcoded value overrides any user-provided key, making it impossible for users to supply their own API key without modifying the source code. This is a significant security flaw as it exposes a single API key to all users of the repository/image and prevents proper secret management. There is no user authentication or rate limiting implemented by default, which should be considered for production deployments.

Similar Servers

Stats

Interest Score9
Security Score5
Cost ClassMedium
Avg Tokens1
Stars1
Forks0
Last Update2025-12-15

Tags

weatherapimcpfastmcppython