LetzAI Image Generation
STDIOMCP server for image generation using LetzAI API.
MCP server for image generation using LetzAI API.
This guide will walk you through the process of setting up and using the LetzAI MCP (Model Context Protocol) for image generation.
Before you begin, ensure that you have the following:
Download the repository containing the LetzAI MCP project and place it in a location outside of your Downloads folder. For example:
C:\\Users\\username\\desktop
Alternatively, you can use git clone
to clone the repository:
git clone <repository-url> C:\\Users\\username\\desktop
Navigate to the project folder using your terminal or command prompt:
cd C:\\Users\\username\\desktop
Run the following command to install all required dependencies:
npm install
After installing the dependencies, compile the TypeScript files into JavaScript using the following command:
npx tsc
This will generate the compiled JavaScript files in the build
folder.
After running npx tsc
, you must restart the Claude Desktop App for it to recognize the updated MCP configuration and compiled files.
claude_desktop_config.json
and edit it as needed.{ "mcpServers": { "letzai": { "command": "node", "args": [ "C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\letzai-mcp\\build\\index.js" ], "env": { "LETZAI_API_KEY": "<Your LetzAI API Key>" } } } }
{ "mcpServers": { "letzai": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/letzai-mcp/build/index.js"], "env": { "LETZAI_API_KEY": "<Your LetzAI API Key>" } } } }
{ "mcpServers": { "letzai": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/letzai-mcp/build/index.js"], "env": { "LETZAI_API_KEY": "<Your LetzAI API Key>" } } } }
node
to run the JavaScript file generated by TypeScript.index.js
file. Make sure the path is correct according to where your files are located after compilation. If you've placed the folder at C:\\Users\\username\\desktop\\letzai-mcp
, the path will be:
C:\\Users\\username\\desktop\\letzai-mcp\\build\\index.js
Now that everything is set up, you can start using the LetzAI MCP in the Claude Desktop App. The server should be ready for image generation tasks once the app is running with the correct API key in the environment.
Important: After making changes to the configuration, you must restart Claude for the changes to take effect.
Click on the hammer icon to view the installed MCP tools.
Once you've set up the MCP in the Claude Desktop App, you can test it by running the following prompt:
This will create the image based on the provided prompt, using the model @mischstrotz from LetzAI. Claude will open the image in your preferred browser.
This will upscale the image using the strength parameter 1. You can pass entire URLs, or just the LetzAI Image IDs e.g. d6a67077-f156-46d7-a1a2-1dc49e83dd91
LETZAI_API_KEY
variable in the Claude Desktop App settings.index.js
file is correct. If you're unsure about the path, use the absolute path to the file.For more detailed documentation and support, visit LetzAI Docs.