Back to Home
JasonBates icon

image-gen-mcp

Verified Safe

by JasonBates

Overview

Generates images using the laozhang.ai Gemini 3 Pro API and saves them to an Obsidian vault.

Installation

Run Command
uv run image-gen-mcp

Environment Variables

  • LAOZHANG_API_KEY
  • OBSIDIAN_VAULT_PATH
  • AI_GRAPHICS_FOLDER

Security Notes

The server correctly loads API keys from environment variables and provides configurable paths for saving images. Filenames generated from prompts are sanitized, preventing path traversal. File operations are limited to user-defined directories. The use of httpx for API calls and pydantic for settings are standard secure practices. The LLM call for prompt variations is structured to parse JSON output, mitigating direct code execution via LLM responses. Reference images are read as bytes and passed to the API, without local execution of their content. User configuration of the Obsidian vault path to a sensitive system directory could pose a risk, but this is user-dependent and not a direct vulnerability in the server's code.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens250
Stars0
Forks0
Last Update2026-01-19

Tags

Image GenerationAIObsidianMCPGemini 3 Pro