Skip to content
MCP Server Directory logo
developer-tools

Draw Things Mcp Cursor

Reviewed overview

MCP サーバー概要

What is Draw Things MCP Cursor?

Draw Things MCP Cursor is an integration that exposes the Draw Things image generation API as an MCP (Model Context Protocol) tool for Cursor and as a standalone CLI. It lets you generate images from text prompts using a local Draw Things API instance.

How to use it?

  • Prerequisites: Node.js >= 14 and a running Draw Things API at http://127.0.0.1:7888.
  • Installation: npm install -g draw-things-mcp-cursor or run via npx draw-things-mcp-cursor.
  • CLI: Pipe a JSON payload into the tool, e.g. echo ‘{“prompt”:“a cute cat”}’ | npx draw-things-mcp-cursor.
  • Cursor integration: Add an MCP server entry to ~/.cursor/claude_desktop_config.json naming the command draw-things-mcp-cursor, restart Cursor, then call generateImage({“prompt”:“a cute cat”}) from Cursor.

Key features

  • Integration with Cursor via MCP exposing a generateImage tool.
  • CLI interface for piping JSON prompts.
  • Configurable generation parameters: prompt, negative_prompt, width, height, steps, model, sampler.
  • Outputs images as base64 in a structured success response and saves PNGs to an images directory with sanitized_prompt_timestamp.png filenames.
  • Simple JSON success/error response format suitable for programmatic consumption.

Use cases

  1. Rapid prototyping of generated imagery inside Cursor workflows.
  2. Command-line batch image generation and scripting.
  3. Local model experimentation using different models, samplers, sizes, and steps.
  4. Integrating image generation into automation or tools that consume MCP responses.

FAQ

  • Do I need a remote service?

No. You need a local Draw Things API running (default http://127.0.0.1:7888).

  • How do I call it from Cursor?

Register the tool under mcpServers in ~/.cursor/claude_desktop_config.json with command draw-things-mcp-cursor, restart Cursor, and call generateImage with the required prompt.

  • Where are generated images saved?

Images are saved to the images directory with filenames formatted as sanitized_prompt_timestamp.png; the tool also returns base64 image data in the response.

  • What parameters can I control?

prompt (required), negative_prompt, width, height, steps, model, sampler.

  • What if I get errors?

Ensure the Draw Things API is running, confirm src/index.js is executable, and check Cursor logs in ~/.cursor/logs when used with Cursor.

  • License?

The project is licensed under MIT.