Back to Home
shimizu icon

modelslab-text2img-mcp-server

Verified Safe

by 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

Run Command
node src/index.js

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens150
Stars0
Forks0
Last Update2025-11-28

Tags

text2imgmcp serverai image generationmodelslabclaude code