<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lachlan Dromgold</title>
    <description>The latest articles on DEV Community by Lachlan Dromgold (@lachieslifestyle).</description>
    <link>https://dev.to/lachieslifestyle</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4076265%2Fa2211c14-fb13-499a-aa33-6f716123e9bc.jpg</url>
      <title>DEV Community: Lachlan Dromgold</title>
      <link>https://dev.to/lachieslifestyle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lachieslifestyle"/>
    <language>en</language>
    <item>
      <title>Install Comfy MCP: Control Local ComfyUI from Claude Code or Cursor</title>
      <dc:creator>Lachlan Dromgold</dc:creator>
      <pubDate>Thu, 13 Aug 2026 12:49:01 +0000</pubDate>
      <link>https://dev.to/lachieslifestyle/install-comfy-mcp-control-local-comfyui-from-claude-code-or-cursor-1dpf</link>
      <guid>https://dev.to/lachieslifestyle/install-comfy-mcp-control-local-comfyui-from-claude-code-or-cursor-1dpf</guid>
      <description>&lt;p&gt;Comfy MCP is Comfy's first-party local Model Context Protocol server. It lets an MCP-capable coding agent inspect the models and nodes in your ComfyUI installation, validate workflows, run them, and retrieve the outputs.&lt;/p&gt;

&lt;p&gt;The detail that prevents the most confusion is that &lt;strong&gt;two processes are involved&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;comfy launch&lt;/code&gt; starts ComfyUI.&lt;/li&gt;
&lt;li&gt;Your AI client starts &lt;code&gt;comfy-mcp&lt;/code&gt; as a local stdio server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you run &lt;code&gt;comfy-mcp&lt;/code&gt; directly and it appears to do nothing, it is probably waiting for an MCP client. That is normal for a stdio server.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure and verification scope:&lt;/strong&gt; AI tools assisted with drafting and editing this adaptation. I reviewed the finished article and checked the commands and material claims against Comfy's official documentation, repository, and PyPI pages on 13 August 2026. I have not run a generation on my own hardware for this article, so this is a documentation-verified setup guide, not a hands-on performance test. Comfy's documentation currently labels the MCP offering a public beta, so tools and behaviour may change.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;p&gt;Before starting, have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.10 or newer. The examples below use Python 3.11.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;comfy-cli&lt;/code&gt; 1.14.0 or newer.&lt;/li&gt;
&lt;li&gt;A ComfyUI workspace, either created with &lt;code&gt;comfy install&lt;/code&gt; or selected with &lt;code&gt;comfy set-default&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;An MCP client that can start a local stdio server, such as Claude Code, Cursor, or Claude Desktop.&lt;/li&gt;
&lt;li&gt;The models and custom nodes required by the workflow you want to run.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The MCP bridge is not what determines the hardware requirement; the selected ComfyUI workflow does. A small image workflow and a large video workflow can have very different memory needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Install &lt;code&gt;comfy-cli&lt;/code&gt; and &lt;code&gt;comfy-mcp&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;I prefer a dedicated virtual environment. It keeps the executables in a predictable place and avoids mixing these packages with unrelated Python projects.&lt;/p&gt;

&lt;h3&gt;
  
  
  Windows PowerShell
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;mkdir&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;comfy-mcp-guide&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;cd&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;comfy-mcp-guide&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-3&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;11&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;venv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;venv&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;\.venv\Scripts\Activate.ps1&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;python&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pip&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--upgrade&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pip&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;python&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pip&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"comfy-cli&amp;gt;=1.14.0"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;comfy-mcp&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;where.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;comfy&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;where.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;comfy-mcp&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;comfy-mcp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--version&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep the two paths printed by &lt;code&gt;where.exe&lt;/code&gt;. You will use them in your MCP configuration.&lt;/p&gt;

&lt;p&gt;If PowerShell blocks virtual-environment activation, you can use the environment's executables directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\.venv\Scripts\python.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pip&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--upgrade&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pip&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\.venv\Scripts\python.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pip&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"comfy-cli&amp;gt;=1.14.0"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;comfy-mcp&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\.venv\Scripts\comfy-mcp.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--version&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  macOS or Linux
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; ~/tools/comfy-mcp
&lt;span class="nb"&gt;cd&lt;/span&gt; ~/tools/comfy-mcp
python3 &lt;span class="nt"&gt;-m&lt;/span&gt; venv .venv
&lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate
python &lt;span class="nt"&gt;-m&lt;/span&gt; pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--upgrade&lt;/span&gt; pip
python &lt;span class="nt"&gt;-m&lt;/span&gt; pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="s2"&gt;"comfy-cli&amp;gt;=1.14.0"&lt;/span&gt; comfy-mcp
&lt;span class="nb"&gt;command&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; comfy
&lt;span class="nb"&gt;command&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; comfy-mcp
comfy-mcp &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep the absolute paths returned by &lt;code&gt;command -v&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Create or select your ComfyUI workspace
&lt;/h2&gt;

&lt;p&gt;For a new managed installation, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;comfy &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If ComfyUI is already installed, point &lt;code&gt;comfy-cli&lt;/code&gt; at its directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Windows example&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;comfy&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;set-default&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"D:\AI\ComfyUI"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# macOS or Linux example&lt;/span&gt;
comfy set-default &lt;span class="s2"&gt;"/home/your-name/ComfyUI"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the example path with the real ComfyUI directory. Comfy's repository also warns macOS users that placing ComfyUI in Documents, Desktop, or Downloads can cause permission errors unless the MCP client has Full Disk Access.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Launch ComfyUI
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;comfy launch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Leave that process running. A normal local instance uses &lt;code&gt;127.0.0.1:8188&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The MCP server does not start ComfyUI merely because the server launches. An agent can invoke the separate &lt;code&gt;launch_comfyui&lt;/code&gt; tool, but that must be an explicit action.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Connect Claude Code
&lt;/h2&gt;

&lt;p&gt;Comfy's official quick-start registers a local server called &lt;code&gt;comfy-mcp&lt;/code&gt;. Using absolute paths is more reliable than assuming the MCP client inherits the virtual environment from another terminal.&lt;/p&gt;

&lt;h3&gt;
  
  
  Windows PowerShell
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;claude&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;mcp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;comfy-mcp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;-e&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;COMFY_BIN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;C:/Users/you/tools/comfy-mcp-guide/.venv/Scripts/comfy.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;`
&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;C:/Users/you/tools/comfy-mcp-guide/.venv/Scripts/comfy-mcp.exe&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  macOS or Linux
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add comfy-mcp &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;COMFY_BIN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/home/you/tools/comfy-mcp/.venv/bin/comfy &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--&lt;/span&gt; /home/you/tools/comfy-mcp/.venv/bin/comfy-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace every sample path with the path from your machine.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;COMFY_BIN&lt;/code&gt; is optional when the environment used by the client can already find &lt;code&gt;comfy&lt;/code&gt;. I still set the absolute path because it removes an avoidable source of failures.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Connect Cursor or Claude Desktop
&lt;/h2&gt;

&lt;p&gt;Both clients use an &lt;code&gt;mcpServers&lt;/code&gt; object. Add the appropriate version to that client's MCP configuration, then fully restart the client.&lt;/p&gt;

&lt;h3&gt;
  
  
  Windows
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"comfy-mcp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"C:/Users/you/tools/comfy-mcp-guide/.venv/Scripts/comfy-mcp.exe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"COMFY_BIN"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"C:/Users/you/tools/comfy-mcp-guide/.venv/Scripts/comfy.exe"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  macOS or Linux
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"comfy-mcp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/home/you/tools/comfy-mcp/.venv/bin/comfy-mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"COMFY_BIN"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/home/you/tools/comfy-mcp/.venv/bin/comfy"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Cursor accepts this in &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt; for a global configuration or &lt;code&gt;.cursor/mcp.json&lt;/code&gt; for a project. Claude Desktop exposes its configuration through &lt;strong&gt;Settings → Developer → Edit Config&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After restarting, check the client's MCP or tools panel for &lt;code&gt;comfy-mcp&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Validate a small workflow before running it
&lt;/h2&gt;

&lt;p&gt;Start with a workflow you already understand, saved as ComfyUI API JSON or as a UI-exported workflow. A known graph makes MCP problems easier to separate from missing models and third-party custom nodes.&lt;/p&gt;

&lt;p&gt;My preferred first prompt adds a review boundary:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Check my local ComfyUI server and validate the workflow at
C:/AI/workflows/txt2img.json. Report any missing nodes or models.
Do not run the workflow until I approve it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you approve the workflow, the main tool sequence is straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;server_info&lt;/code&gt; confirms the local instance and workspace.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;validate_workflow&lt;/code&gt; checks the graph against the live installation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;run_workflow&lt;/code&gt; submits it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fetch_outputs&lt;/code&gt; retrieves the completed output.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;MCP makes the workflow convenient, but it also gives an agent a capable local tool. Validation before execution is a sensible default.&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy and spending checks
&lt;/h2&gt;

&lt;p&gt;"Local" does not automatically mean "offline." A local ComfyUI workflow can stay on your machine, but partner API nodes and third-party custom nodes may make network calls.&lt;/p&gt;

&lt;p&gt;Before expanding the setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep ComfyUI bound to localhost unless you have a separate, secured remote-access design.&lt;/li&gt;
&lt;li&gt;Review third-party workflows and custom nodes before running them.&lt;/li&gt;
&lt;li&gt;Keep client approval prompts enabled for consequential actions.&lt;/li&gt;
&lt;li&gt;Use an isolated ComfyUI workspace rather than handing the agent a directory full of unrelated private projects.&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;COMFY_API_KEY&lt;/code&gt; only if you intend to use partner API nodes. Those hosted services may consume credits.&lt;/li&gt;
&lt;li&gt;Avoid putting secrets in launch arguments or file paths.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Comfy documents the following telemetry opt-out command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;comfy tracking disable
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That setting does not prevent partner nodes or custom nodes from making their own external requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;comfy-mcp&lt;/code&gt; opens but prints nothing
&lt;/h3&gt;

&lt;p&gt;That is expected when a stdio MCP server is started directly. Stop it with &lt;code&gt;Ctrl+C&lt;/code&gt;, confirm the package with &lt;code&gt;comfy-mcp --version&lt;/code&gt;, and let your MCP client launch it.&lt;/p&gt;

&lt;h3&gt;
  
  
  The client cannot find &lt;code&gt;comfy&lt;/code&gt; or &lt;code&gt;comfy-mcp&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;An MCP client often does not inherit the virtual environment activated in a different terminal. Put the full &lt;code&gt;comfy-mcp&lt;/code&gt; path in &lt;code&gt;command&lt;/code&gt;, put the full &lt;code&gt;comfy&lt;/code&gt; path in &lt;code&gt;COMFY_BIN&lt;/code&gt;, and restart the client.&lt;/p&gt;

&lt;h3&gt;
  
  
  The tools appear but cannot reach ComfyUI
&lt;/h3&gt;

&lt;p&gt;Run &lt;code&gt;comfy launch&lt;/code&gt; and check that the local instance is available at its expected address. Also confirm that &lt;code&gt;comfy-cli&lt;/code&gt; points to the intended default workspace.&lt;/p&gt;

&lt;h3&gt;
  
  
  Windows reports invalid JSON
&lt;/h3&gt;

&lt;p&gt;Backslashes must be escaped in JSON. Forward slashes in executable paths, as used above, are usually the easiest fix.&lt;/p&gt;

&lt;h3&gt;
  
  
  Every Comfy tool appears twice
&lt;/h3&gt;

&lt;p&gt;Look for two MCP entries pointing at the same &lt;code&gt;comfy-mcp&lt;/code&gt; command. Edit the existing entry instead of registering a second server under a different label.&lt;/p&gt;

&lt;h2&gt;
  
  
  The practical verdict
&lt;/h2&gt;

&lt;p&gt;Comfy MCP is a useful fit if you already use ComfyUI and want an agent to handle the repetitive control work around known workflows. The least frustrating setup is a dedicated Python environment, absolute executable paths, a small trusted graph, and an explicit approval step before execution.&lt;/p&gt;

&lt;p&gt;Start with one workflow you understand. Expand the agent's access only after the validation, run, and output loop behaves predictably.&lt;/p&gt;

&lt;h2&gt;
  
  
  Official sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.comfy.org/agent-tools/mcp" rel="noopener noreferrer"&gt;Comfy MCP documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Comfy-Org/comfy-mcp" rel="noopener noreferrer"&gt;Comfy MCP repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/comfy-mcp/" rel="noopener noreferrer"&gt;&lt;code&gt;comfy-mcp&lt;/code&gt; on PyPI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pypi.org/project/comfy-cli/" rel="noopener noreferrer"&gt;&lt;code&gt;comfy-cli&lt;/code&gt; on PyPI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>tutorial</category>
      <category>comfyui</category>
    </item>
  </channel>
</rss>
