weather-mcp-server
Verified Safeby sword-demon
Overview
This server provides a tool for Large Language Models (LLMs) to query real-time weather information for specified locations using the AMap API.
Installation
uv --directory /path/to/weather-mcp-server run main.pyEnvironment Variables
- AMAP_KEY
- AMAP_HOST
Security Notes
The server loads API keys from environment variables (`.env`), which is good practice. It handles HTTP errors and AMap API specific status codes. It relies on external API responses which are then parsed as JSON, a standard pattern. There are no obvious signs of 'eval', obfuscation, or hardcoded sensitive credentials directly in the source code. The main security consideration is ensuring the `AMAP_KEY` is securely stored and transmitted to the environment.
Similar Servers
prk-mcp-weather-matcher
This project demonstrates converting a function to an MCP server, integrating it with an MCP client like Claude Code Desktop to fetch weather information.
MCP-Server-Building
This project provides a lightweight Python MCP server for Claude Desktop to retrieve weather alerts and forecasts from the National Weather Service API.
Weather_MCP_Server
Provides current weather, forecast, and severe weather alerts for supported cities to Claude Desktop via the Model Context Protocol (MCP).
weather
This server provides weather information by integrating with an external LLM (like Claude) as a tool within the Model Context Protocol (MCP).