modelslab-text2img-mcp-server
Verified Safeby shimizu
Overview
An MCP server enabling Claude Code to generate high-quality images from text prompts using the ModelsLab API, with support for various models and local file saving.
Installation
node src/index.jsEnvironment Variables
- MODELSLAB_API_KEY
Security Notes
The project demonstrates good practices for API key management by excluding `src/config/api-keys.js` from Git. However, the `ModelsLabClient` logs full request data (including the API key) to console during debugging, which could expose the key in production if not handled. The `test_connection` tool allows a user-provided URL, which could pose an SSRF risk if not strictly controlled in non-MCP contexts. Image file path validation `validateImageFilePath` includes a check for `..` to prevent directory traversal.
Similar Servers
claude-code-mcp
Acts as an MCP server to enable LLMs to run Claude Code CLI in one-shot mode, bypassing permissions for complex coding, file system, Git, and terminal operations.
consult-llm-mcp
An MCP server that allows AI agents like Claude Code to consult stronger, more capable AI models (e.g., GPT-5.2, Gemini 3.0 Pro) for complex code analysis, debugging, and architectural advice.
markitdown-mcp
A Model Context Protocol (MCP) server for converting 29+ file formats (e.g., PDF, Office, images, audio) to clean, structured Markdown, designed for integration with AI workflows and MCP clients like Claude Desktop.
jimeng-mcp-server
An MCP server to provide Claude and other LLMs with image and video generation capabilities via the JiMeng AI service's reverse-engineered API.