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 comprehensive weather information and tools via a Model Context Protocol (MCP) server using FastMCP and WeatherAPI.com.
Weather_MCP_Server
Provides real-time weather data, forecasts, and weather comparison between cities to AI assistants via an MCP server.
mcp-weather
Serves weather information via the Model Context Protocol (MCP) as a tool for AI agents.
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.