generate_imageLABSCO SUMMARY
An image in the conversation where you needed it.
It is deliberately one tool doing one thing: the prompt, the size, and optionally which model — enough to place a generated image into whatever you are already working on without opening a separate product.
What it is
A single-tool image generator over Together AI. It takes a prompt and optional dimensions, runs the request, and returns the image — with clear errors when the prompt is rejected or the API fails, rather than an empty result.
What you get
generate_image— takesprompt, with optionalwidthandheightin pixels, and an optionalmodelnaming the exact Together AI model; an incorrect name falls back to the default rather than failing- Generation on the Flux.1 Schnell model by default
- Error handling that distinguishes a prompt validation problem from an API one
Requirements
A Together AI API key in TOGETHER_AI_API_KEY, set in the client config. Python 3.12 or higher, with httpx and mcp; the client runs it with uv --directory <YOUR_PATH_TO_MCP_IMAGE_GEN> run image-gen. Costs land on your Together AI account, so the model you name in model is the one you pay for.
Setup effort
Build from source
USE CASES
Making a placeholder for something you are building
Describe it and get the image at the dimensions your layout needs, rather than hunting for stock art.
Illustrating a piece of writing
Generate as you draft, in the same session, instead of switching to another tool and coming back.
Getting the aspect ratio right first time
Set width and height in the call so the output fits the space it is going into.
Trying a different model
Name the exact Together AI model in the call; a wrong name falls back to the default rather than erroring out.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation.
Requires
- Python 3.12 or later
- TOGETHER_AI_API_KEY in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone this one yourself.
Server setup
git clone https://github.com/sarthakkimtani/mcp-image-gen.gitMCP Clients
Claude Desktop
{
"mcpServers": {
"image-gen": {
"command": "uv",
"args": [
"--directory",
"<YOUR_PATH_TO_MCP_IMAGE_GEN>",
"run",
"image-gen"
],
"env": {
"TOGETHER_AI_API_KEY": "<YOUR_TOGETHER_AI_API_KEY>"
}
}
}
}