Claude desktop connection failed

View original issue on GitHub  ·  Variant 3

Troubleshooting Claude Desktop Connection Failures in Blender-MCP

Users of the blender-mcp project have reported issues where the Claude desktop connection fails, preventing proper communication between the Blender environment and the Claude AI service. This manifests as a timeout during the initialization phase, as indicated in the mcp-server-blender.log file. The error message suggests a potential problem with the connection after the uvx command is executed.

Root Cause Analysis: Dependency Download Timeout

The underlying cause of this issue is often a timeout that occurs while uvx is downloading necessary dependencies. In this specific case, the log reveals that uvx attempts to download pygments and pydantic-core during the startup process. The MCP initialization process has a limited timeout period (60 seconds in this instance). If the dependency download exceeds this timeout, the connection will be terminated, leading to the observed failure.

This problem is generally not related to the version of mcp[cli] being used. Instead, it's a consequence of network conditions, package server responsiveness, or the time it takes to resolve and download dependencies within the given timeframe. The paths listed in the log (e.g., /usr/local/bin, /opt/homebrew/bin) indicate where the system is searching for executables, but the core issue is the download time of the Python packages.

Solution: Pre-caching Dependencies

To mitigate this timeout issue, we can pre-cache the required dependencies. This ensures that the dependencies are already available locally when Blender-MCP attempts to initialize, thus avoiding the network-related delay. There are two primary ways to pre-cache these packages:

  1. Manual Pre-caching: Run the blender-mcp command with the --help flag. This triggers the dependency download process outside of the MCP initialization, giving it ample time to complete.
uvx blender-mcp --help
  1. Permanent Installation: Install blender-mcp as a tool. This installs the dependencies permanently on your system.
uvx tool install blender-mcp

By using either of these methods, you ensure that the necessary packages are already present, preventing the timeout during the critical initialization phase.

Practical Tips and Considerations

By understanding the root cause of the Claude desktop connection failure and implementing the suggested solutions, you can significantly improve the reliability and stability of your Blender-MCP workflow.