Draw Things MCP Server
Click on "Deploy 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., "@Draw Things MCP Server generate a serene mountain landscape with a lake at sunrise"
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.
mcp-drawthings
An MCP (Model Context Protocol) server for Draw Things - enabling LLMs to generate images locally on Mac using Stable Diffusion and other AI models.
Features
Text-to-Image Generation - Generate images from text prompts using the currently loaded model in Draw Things
Image-to-Image Transformation - Transform existing images using text prompts
Configuration Access - Query the current Draw Things settings and loaded model
Local Processing - All image generation runs locally on your Mac using Apple Silicon (M1/M2/M3/M4)
Related MCP server: Draw Things MCP Server
Prerequisites
macOS with Apple Silicon (M1/M2/M3/M4)
Draw Things app installed
Node.js 18 or later
Setup
1. Enable Draw Things API Server
Open Draw Things
Click the gear icon (⚙️) to open Settings
Enable API Server / HTTP Server
The server runs on port 7860 by default
Verify the server is running:
curl http://localhost:78602. Configure Your MCP Client
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"drawthings": {
"command": "npx",
"args": ["-y", "mcp-drawthings"]
}
}
}Cursor
Add to .cursor/mcp.json in your project or global config:
{
"mcpServers": {
"drawthings": {
"command": "npx",
"args": ["-y", "mcp-drawthings"]
}
}
}3. Restart Your MCP Client
Restart Claude Desktop or Cursor to load the new MCP server.
Available Tools
check_status
Check if the Draw Things API server is running and accessible.
get_config
Get the current Draw Things configuration including the loaded model and settings.
generate_image
Generate an image from a text prompt.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Text description of the image to generate |
| string | No | Elements to exclude from the generated image |
| number | No | Image width in pixels (default: 512) |
| number | No | Image height in pixels (default: 512) |
| number | No | Number of inference steps (default: 20) |
| number | No | Guidance scale (default: 7.5) |
| number | No | Random seed for reproducibility (-1 for random) |
| string | No | Custom file path to save the image |
Example:
Generate an image of a futuristic city at sunset with flying carstransform_image
Transform an existing image using a text prompt (img2img).
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Text description of the desired transformation |
| string | No* | Path to the source image file |
| string | No* | Base64-encoded source image |
| string | No | Elements to exclude |
| number | No | Transformation strength 0.0-1.0 (default: 0.75) |
| number | No | Number of inference steps (default: 20) |
| number | No | Guidance scale (default: 7.5) |
| number | No | Random seed (-1 for random) |
| string | No | Custom file path to save the result |
*Either image_path or image_base64 must be provided.
Configuration
Environment Variables
Variable | Default | Description |
|
| Draw Things API host |
|
| Draw Things API port |
|
| Directory for generated images |
Architecture
┌─────────────────┐ stdio ┌──────────────────┐ HTTP ┌─────────────┐
│ MCP Client │◄──────────────►│ mcp-drawthings │◄────────────►│ Draw Things │
│ (Claude/Cursor) │ JSON-RPC │ │ localhost │ App │
└─────────────────┘ └──────────────────┘ :7860 └─────────────┘
│
▼
┌──────────────┐
│ File System │
│ (images) │
└──────────────┘Development
# Clone the repository
git clone https://github.com/james-see/mcp-drawthings
cd mcp-drawthings
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run devTroubleshooting
"Cannot connect to Draw Things API"
Make sure Draw Things is running
Check that the API Server is enabled in Draw Things settings
Verify the server is accessible:
curl http://localhost:7860Check if a different port is configured in Draw Things
Images not generating
Make sure a model is loaded in Draw Things
Check Draw Things for any error messages
Try generating an image directly in Draw Things first
Permission errors saving images
Check that the output directory is writable. You can set a custom directory using the DRAWTHINGS_OUTPUT_DIR environment variable.
License
MIT
Related Projects
Draw Things - The AI image generation app for Mac/iOS
Model Context Protocol - The protocol specification
@modelcontextprotocol/sdk - TypeScript SDK for MCP
Available Tools
4 toolscheck_statusA
Check if the Draw Things API server is running and accessible
Inputs: no named parameters.
generate_imageA
Generate an image from a text prompt using the Draw Things app. The image will be saved to disk and the file path returned.
Inputs: prompt (required), negative_prompt, width, height, +5 more.
get_configA
Get the current Draw Things configuration including the loaded model and settings
Inputs: no named parameters.
transform_imageA
Transform an existing image using a text prompt (img2img). Either image_path or image_base64 must be provided.
Inputs: prompt (required), image_path, image_base64, negative_prompt, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: check_status verifies server availability, generate_image creates new images from text, get_config retrieves settings, and transform_image modifies existing images. There is no overlap or ambiguity between these functions, making tool selection straightforward for an agent.
All tool names follow a consistent verb_noun pattern with snake_case formatting: check_status, generate_image, get_config, and transform_image. This uniformity enhances readability and predictability across the toolset.
With 4 tools, this server is well-scoped for its purpose of interacting with the Draw Things app. Each tool serves a specific, essential function—server status, image generation, configuration retrieval, and image transformation—without redundancy or unnecessary complexity.
The toolset covers core workflows for image generation and manipulation, including server checks, configuration, and both text-to-image and image-to-image operations. A minor gap exists in the lack of tools for managing generated images (e.g., deletion or listing), but agents can work around this using file system operations.
Maintenance
Related MCP Connectors
Turn any LLM multimodal; generate images, voices, videos, 3D models, music, and more.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Lets AI assistants draw: logos, posters, illustrations and scenes, as editable SVG and PNG.
Generate and edit images (PNG, transparent, GIF, SVG) with GPT Image and Nano Banana models.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables local AI image generation on Apple Silicon Macs using MLX and Stable Diffusion. Supports conversational design iteration, asset generation, and wireframe creation with zero API costs through the Model Context Protocol.MIT
- AlicenseAqualityDmaintenanceEnables free local image generation from Claude Desktop/Claude Code using the Draw Things app on Apple Silicon Macs.41MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to generate and edit images locally on Apple silicon using FLUX.2 Klein models, fully offline, with tools for generation, editing, and listing available models.2MIT
- FlicenseNot gradedqualityCmaintenanceEnables local text-to-image generation on Apple Silicon Macs through any MCP app, with reliable text rendering, bounding-box layout placement, inpainting and image-to-image edits, and transparent cutouts. Images are returned inline and saved as PNGs, with quality modes trading speed for fidelity.3-