
Mcp Drawthings
io.github.james-see由 GitHub 帳號 james-see 發布v1.1.2更新於 Oct 24, 2026
MCP server for Draw Things - local AI image generation on Mac
概覽
此 MCP 伺服器讓助理透過 Apple Silicon Mac 上的 Draw Things 應用程式在本機產生與轉換影像。
- 可以做什麼
- 檢查 Draw Things API 伺服器是否可連線,並讀取目前設定,包括已載入的模型與參數
- 依文字提示產生影像,可設定負面提示、尺寸、步數、引導係數、隨機種子與輸出路徑
- 以文字提示轉換既有影像,來源可為檔案路徑或 base64 資料,並可調整去噪強度
- 將結果存到預設圖片資料夾或自訂輸出路徑
- 適用情境
- 適合希望助理在 Mac 上以本機 Stable Diffusion 模型創作或改寫影像、而不把提示詞送到雲端影像服務的情境。適合已在使用 Draw Things,並想在 Claude Desktop、Cursor 等 MCP 用戶端中直接產生影像的使用者。
- 執行需求
- Apple Silicon(M1 以上)的 macOS、已安裝並啟用 API/HTTP 伺服器的 Draw Things 應用程式(預設連接埠 7860),以及執行此 npm 套件所需的 Node.js 18 或更新版本。可選環境變數 DRAWTHINGS_HOST、DRAWTHINGS_PORT 與 DRAWTHINGS_OUTPUT_DIR 可調整主機、連接埠與輸出資料夾。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Drawthings,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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
- 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:
2. Configure Your MCP Client
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Cursor
Add to .cursor/mcp.json in your project or global config:
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:
Example:
transform_image
Transform an existing image using a text prompt (img2img).
Parameters:
*Either image_path or image_base64 must be provided.
Configuration
Environment Variables
Architecture
Development
Troubleshooting
"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:7860 - Check 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
來源:README.md,提交 1c7b861
工具
0版本歷史
1- v1.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分