mcp-server-collection
by hkhkkh
Overview
Provides Model Context Protocol (MCP) servers for real-time weather data retrieval and Stable Diffusion-based AI image generation and management.
Installation
python sd_mcp/sd_mcp_server.pyEnvironment Variables
- SD_API_URL
- OUTPUT_DIR
- SD_LAUNCHER_PATH
Security Notes
The `sd_mcp_server.py` uses `subprocess.Popen` with `shell=True`, which is a security risk if the `SD_LAUNCHER_PATH` variable (though hardcoded/developer-configured) could be manipulated. More critically, the `img2img` and `interrogate_image` functions accept an `image_path` argument from user input and directly attempt to read local files (`os.path.exists` check is insufficient). This allows for arbitrary local file disclosure if a malicious actor can provide a path to an existing file on the server's machine, posing a significant information leakage risk.
Similar Servers
Weather_MCP_Server
Provides real-time weather data, forecasts, and weather comparison between cities to AI assistants via an MCP server.
weather-mcp
Provides real-time and historical US weather data, forecasts, and generates weather reports using MCP (Model Context Protocol) for consumption by AI/LLMs.
mcp-ai-weather-server
Provides current weather alerts and detailed forecasts by integrating with the National Weather Service (NWS) API, designed to extend the capabilities of an AI agent through the Model Context Protocol (MCP).
mcp-weather-server
Provides a production-ready Model Context Protocol (MCP) server for integrating AI applications with external weather data via streamable HTTP transport.