Back to Home
hkhkkh icon

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

Run Command
python sd_mcp/sd_mcp_server.py

Environment 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

Stats

Interest Score0
Security Score4
Cost ClassHigh
Avg Tokens75000
Stars0
Forks0
Last Update2025-11-27

Tags

WeatherImage GenerationAIStable DiffusionMCP