# How the Blender MCP Addon Handles Client Connections in Separate Threads

> Learn how the Blender MCP addon uses separate threads for client connections ensuring thread safety with bpy app timers. Discover its multi-threaded TCP socket server.

- Repository: [ahujasid/blender-mcp](https://github.com/ahujasid/blender-mcp)
- Tags: internals
- Published: 2026-04-13

---

**The Blender MCP addon runs a multi-threaded TCP socket server that delegates each client connection to its own daemonized background thread, then marshals all Blender-specific operations onto the main thread via `bpy.app.timers` to maintain thread safety.**

The `ahujasid/blender-mcp` repository enables external AI assistants to control Blender through a Model Context Protocol (MCP) interface. Because Blender's Python API (`bpy`) is not thread-safe, the addon implements a careful concurrency model that isolates network I/O in background threads while ensuring scene manipulation always occurs