Local Image Gen
Provides image generation using Hugging Face's diffusion models, with configurable parameters like prompt, size, and inference steps.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Local Image Gengenerate an image of a serene lake at sunset with mountains in the background"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local Image Gen
MCP server for local image generation. Designed to run on a Windows GPU box (RTX 3060 12GB at your parents' house) and be called remotely by Claude Cowork on a MacBook over Tailscale.
Backend:
black-forest-labs/FLUX.2-klein-4Bvia Hugging FacediffusersServer: FastMCP over HTTP (
streamable-httptransport)Tool:
generate_image(one tool, that's it for the MVP)
Setup on the Windows GPU host
Prereqs: Windows 10/11, NVIDIA RTX 3060 (12GB) with up-to-date driver, Python 3.11+ available.
git clone <this-repo>
cd Local-Image-Gen
.\scripts\setup_windows.ps1
.venv\Scripts\Activate.ps1
huggingface-cli login # needed if the model is gated
copy .env.example .env
uv run main.pyThe first call to generate_image will download the model to ./models/
(~10 GB, one-time). Watch for [pipeline] ready in the server output before
invoking tools from Cowork.
Related MCP server: io.github.pvliesdonk/image-generation-mcp
Adding to Claude Cowork (MacBook)
In Cowork's MCP config:
{
"mcpServers": {
"local-image-gen": {
"url": "http://<windows-pc-tailscale-ip>:8765/mcp"
}
}
}The Windows PC's Tailscale IP looks like 100.x.y.z — get it with
tailscale ip -4 on the Windows box.
The generate_image tool
Param | Type | Default | Notes |
| string | required | What to draw |
| int | 1024 | Multiple of 8 |
| int | 1024 | Multiple of 8 |
| int | 4 | Distilled models: 4. Non-distilled: 20-30 |
| float | 1.0 | Distilled: 1.0 or 0.0. Non-distilled: ~3.5 |
| int | null | random | Use the same seed across carousel slides for style consistency |
| bool | true | Saves PNG to |
Returns:
{
"image_b64": "<base64 PNG>",
"path": "C:\\...\\generated\\1234567890_abc123.png",
"seed_used": 1234567890,
"width": 1024,
"height": 1024,
"elapsed_seconds": 3.42
}On error:
{ "error": "CUDA out of memory...", "error_type": "OOM" }Config (env vars, prefix IMG_)
Var | Default | |
|
| HF repo id |
|
| |
|
| VAE tiling + attention slicing. Leave on for 12GB cards |
|
| |
|
| |
|
| Where PNGs land |
|
| Where the model is downloaded |
Networking: MacBook ↔ Windows PC
Use Tailscale — free for personal use, no port forwarding on the parents' router, encrypted.
Install Tailscale on both machines, sign in to the same account
Note the Windows PC's Tailscale IP (
100.x.y.z)Use that IP in the Cowork MCP config above
For wake-on-LAN (so the PC doesn't have to run 24/7):
Enable "Wake on LAN" in BIOS and in the NIC's advanced power settings
Tailscale's
tailscale wake <hostname>from the Mac will turn it on
Dev on the MacBook (no GPU)
You can iterate on the server code without a GPU by switching to a small model:
IMG_MODEL_ID=stable-diffusion-v1-5/stable-diffusion-v1-5 IMG_DEVICE=cpu uv run main.pyCPU generation is slow (~minutes per image) but the round-trip works.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA server that enables generating images through the Replicate API by calling the Flux Schnell model via the Model Context Protocol (MCP).Last updated3MIT
- AlicenseAqualityBmaintenanceMulti-provider image generation MCP server that enables image generation from Claude Desktop, Claude Code, or any MCP client using OpenAI, Google Gemini, Stable Diffusion, or a placeholder provider.Last updated101MIT
- AlicenseAqualityBmaintenanceFirst MCP server for NVIDIA NIM FLUX. Generate and edit images using FLUX.1 models with your existing NVIDIA API key.Last updated326Apache 2.0
- Flicense-qualityBmaintenanceImage generation MCP server running on Cloudflare Workers, supporting multiple models like FLUX and SDXL with OpenAI-compatible endpoints.Last updated
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Producer/Riffusion AI music generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NurmukhamedKZ/ImageMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server