MCP Drawthings logo

MCP Drawthings

MCP server for Draw Things - local AI image generation on Mac

Install MCP Drawthings

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-drawthings": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-drawthings"
      ]
    }
  }
}

Settings β†’ Developer β†’ Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passedβ€” started and listed 4 tools correctly (3d ago).

Overview

Tools4

What MCP Drawthings lets your agent do. Expand a tool for its parameters.

Verified live~702 tokens of context

Security & health

What it can reach and how reliably it runs β€” from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

8/8 checks healthy over the last 46d

What it can do

From the 4 tools this server returned when we ran it.

Read-only tools Β· 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age297 days
Maintainers1

Observed 2026-10-25 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev Β· mcp-drawthings (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars28Stargazers on the source repository.
npm downloads464Package downloads in the last 30 days.
Last commit10mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.

From the project README

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)

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

  1. Open Draw Things
  2. Click the gear icon (βš™οΈ) to open Settings
  3. Enable API Server / HTTP Server
  4. The server runs on port 7860 by default

Verify the server is running:

Terminal
curl http://localhost:7860

2. Configure Your MCP Client

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "drawthings": {
      "command": "npx",
      "args": ["-y", "mcp-drawthings"]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project or global config:

config.json
{
  "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:

ParameterTypeRequiredDescription
promptstringYesText description of the image to generate
negative_promptstringNoElements to exclude from the generated image
widthnumberNoImage width in pixels (default: 512)
heightnumberNoImage height in pixels (default: 512)
stepsnumberNoNumber of inference steps (default: 20)
cfg_scalenumberNoGuidance scale (default: 7.5)
seednumberNoRandom seed for reproducibility (-1 for random)
output_pathstringNoCustom file path to save the image

Example:

Code
Generate an image of a futuristic city at sunset with flying cars

transform_image

Transform an existing image using a text prompt (img2img).

Parameters:

ParameterTypeRequiredDescription
promptstringYesText description of the desired transformation
image_pathstringNo*Path to the source image file
image_base64stringNo*Base64-encoded source image
negative_promptstringNoElements to exclude
denoising_strengthnumberNoTransformation strength 0.0-1.0 (default: 0.75)
stepsnumberNoNumber of inference steps (default: 20)
cfg_scalenumberNoGuidance scale (default: 7.5)
seednumberNoRandom seed (-1 for random)
output_pathstringNoCustom file path to save the result

*Either image_path or image_base64 must be provided.

Configuration

Environment Variables

VariableDefaultDescription
DRAWTHINGS_HOSTlocalhostDraw Things API host
DRAWTHINGS_PORT7860Draw Things API port
DRAWTHINGS_OUTPUT_DIR~/Pictures/drawthings-mcpDirectory for generated images

Architecture

Code
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     stdio      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     HTTP      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   MCP Client    │◄──────────────►│  mcp-drawthings  │◄────────────►│ Draw Things β”‚
β”‚ (Claude/Cursor) β”‚   JSON-RPC     β”‚                  β”‚  localhost    β”‚    App      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   :7860       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                           β”‚
                                           β–Ό
                                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                   β”‚  File System β”‚
                                   β”‚   (images)   β”‚
                                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Development

bash
# 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 dev

Troubleshooting

"Cannot connect to Draw Things API"

  1. Make sure Draw Things is running
  2. Check that the API Server is enabled in Draw Things settings
  3. Verify the server is accessible: curl http://localhost:7860
  4. Check if a different port is configured in Draw Things

Images not generating

  1. Make sure a model is loaded in Draw Things
  2. Check Draw Things for any error messages
  3. 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

Reviews

No reviews yet β€” be the first to share how it worked for you.

Frequently Asked Questions about MCP Drawthings

mcp-drawthings is an MCP server that connects MCP clients to the local Draw Things app on Mac, enabling text-to-image generation, image-to-image transformation, and access to the current configuration and loaded model. Generation runs locally on Apple Silicon Macs through Draw Things's API server.

Install Draw Things on an Apple Silicon Mac, enable its API Server or HTTP Server in Settings, and ensure it runs on port 7860. Add mcp-drawthings to the MCP client configuration with npx using command "npx" and args ["-y", "mcp-drawthings"], then restart the client.

mcp-drawthings provides check_status to test Draw Things connectivity, get_config to retrieve current settings and the loaded model, generate_image for text-to-image generation, and transform_image for image-to-image transformations.

Use generate_image with a required text prompt and optional size, steps, guidance scale, seed, negative prompt, and output path. Use transform_image with a required prompt and either an image path or base64-encoded image, plus optional denoising strength, generation settings, seed, and output path.

Set DRAWTHINGS_HOST to change the Draw Things API host, DRAWTHINGS_PORT to change its port, and DRAWTHINGS_OUTPUT_DIR to change where generated images are saved. The defaults are localhost, 7860, and ~/Pictures/drawthings-mcp, respectively.

Related MCP servers

Add a badge to your READMEShow it’s listed β€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Drawthings AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-drawthings?style=directory)](https://allmcps.com/mcp/mcp-drawthings)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-drawthings"><img src="https://allmcps.com/api/badge/mcp-drawthings?style=directory" alt="MCP Drawthings on AllMCPs" /></a>