描くものMCP
モデル コンテキスト プロトコル (MCP) を使用したカーソル用の Draw Things API 統合。
前提条件
Node.js >= 14.0.0
http://127.0.0.1:7888で実行されている Draw Things API
インストール
カーソル統合
Cursor でこのツールを設定するには、 cursor-setup.mdの詳細なガイドを参照してください。
クイックセットアップ:
~/.cursor/claude_desktop_config.jsonを作成または編集します。
カーソルを再開
カーソルでの使用:
generateImage({"prompt": "a cute cat"})
CLI の使用法
画像生成
パラメータ
prompt: 画像生成のためのテキストプロンプト(必須)negative_prompt: 画像生成時の否定プロンプトwidth: 画像の幅(デフォルト: 360)height: 画像の高さ(デフォルト: 360)steps: 生成ステップ数 (デフォルト: 8)model: 生成に使用するモデル(デフォルト: "flux_1_schnell_q5p.ckpt")sampler: サンプリング方法(デフォルト: "DPM++ 2M AYS")
例:
MCPツール統合
Cursor で MCP ツールとして使用する場合、ツールは次のパラメータを持つgenerateImageとして登録されます。
生成された画像は、次のファイル名形式でimagesディレクトリに保存されます: <sanitized_prompt>_<timestamp>.png
応答フォーマット
成功:
エラー:
トラブルシューティング
問題が発生した場合:
http://127.0.0.1:7888で Draw Things API が実行されていることを確認します。
Cursor を使用する場合は
~/.cursor/logsのログファイルを確認してください。src/index.js に実行権限があることを確認します:
chmod +x src/index.js
ライセンス
マサチューセッツ工科大学
Related MCP Servers
- -securityAlicense-qualityAn AI-powered development toolkit for Cursor providing intelligent coding assistance through advanced reasoning, UI screenshot analysis, and code review tools.Last updated -373337MIT License
- -securityAlicense-qualityA Cursor-compatible toolkit that provides intelligent coding assistance through custom AI tools for code architecture planning, screenshot analysis, code review, and file reading capabilities.Last updated -37312MIT License
- AsecurityAlicenseAqualityAn MCP server integration that enables Cursor AI to communicate with Figma, allowing users to read designs and modify them programmatically through natural language commands.Last updated -191,7335,712MIT License
- AsecurityFlicenseAqualityEnables Cursor AI to interact with Figma designs, allowing users to read design information and programmatically modify elements through natural language commands.Last updated -381,7334