Most "Godot MCP is not connecting" reports on Windows come down to a handful of causes: the server was never built, the path in the client config is wrong, a port is pinned or already taken, or the client itself never finishes the MCP handshake. This guide walks through a clean install, shows the configuration for Claude Code, Claude Desktop, Cursor and the Cline VS Code extension, and then lists fixes grouped by the symptom you actually see.
1. How the Connection Works
Godot MCP Pro has two halves that must both be running:
AI client <-- stdio (MCP) --> Node.js server <-- WebSocket --> Godot editor plugin
- Your AI client starts the Node.js MCP server itself and talks to it over stdio. You do not launch the server by hand.
- The server opens a WebSocket on 127.0.0.1, and the Godot editor plugin connects to it.
- MCP server sessions use ports 6505–6509. Each running AI session starts its own server process and takes one port, so five sessions can be attached to an editor at once. Ports 6510–6514 are reserved for the command-line interface (
build/cli.js). - The link has a heartbeat and reconnects automatically if it drops.
Knowing this split helps with every fix below: a problem is either between the client and the server (config, path, build), or between the server and Godot (plugin, ports).
2. Prerequisites
- Godot 4.4 or later (tested on 4.4, 4.5, 4.6, 4.7 and 4.8 beta 5).
- Node.js 18 or later, with
nodeandnpmavailable in your terminal. - The full Godot MCP Pro package. The public GitHub repository only contains the free editor plugin. The
server/folder,INSTALL.mdand client instruction files come in the paid zip. If you cloned the repo and see noserver/folder, that is expected. - An MCP-compatible AI client: Claude Code, Claude Desktop, Cursor, the Cline VS Code extension, or another client from the compatibility list.
3. Step-by-Step Install on Windows
Step 1: Install the Godot plugin
Copy the addons/godot_mcp/ folder from the download into your Godot project's addons/ folder, then enable it under Project → Project Settings → Plugins → Godot MCP Pro → Enable. An MCP Pro panel appears at the bottom of the editor.
Step 2: Install the MCP server
Extract the zip somewhere permanent (moving it later breaks the path in your client config). Open PowerShell or Command Prompt in the server/ folder and run:
npm install
npm run build
The setup helper does the same in one command and adds a few useful extras:
# install dependencies and build (run in server/)
node build/setup.js install
# environment diagnostics
node build/setup.js doctor
# check GitHub for a newer release
node build/setup.js check-update
The release zip already contains the pre-built JavaScript, so build/setup.js works right after extracting and running npm install.
Step 3: Generate or write the client config
The quickest route is configure, which detects your AI client and writes the config (for Claude Code, a .mcp.json). Run it from your Godot project folder, not from server/, or the file lands in the wrong place:
node C:/tools/godot-mcp-pro/server/build/setup.js configure
Replace C:/tools/godot-mcp-pro with wherever you extracted the zip. To write the config by hand, see the next section.
4. Configuration per AI Client
Every client uses the same server entry: run node with the full path to server/build/index.js. On Windows, write the path with forward slashes, or double every backslash; a single backslash is not valid inside a JSON string.
{
"mcpServers": {
"godot-mcp-pro": {
"command": "node",
"args": ["C:/tools/godot-mcp-pro/server/build/index.js"]
}
}
}
Some older examples add "env": { "GODOT_MCP_PORT": "6505" }. Setting it pins the server to that one port and turns off automatic port scanning. If a stale process holds that port, the server fails quietly. Since v1.13.0 the configure command no longer writes it. Only add it if you really need a fixed port.
Claude Code
Put the entry above in .mcp.json in your Godot project folder (or let configure create it). Use Full mode, the default. Claude Code loads tools on demand, so 190 tools cost little context.
Claude Desktop
Add the same mcpServers entry to Claude Desktop's MCP config file. The INSTALL.md in the download lists where that file lives, and configure can detect Claude Desktop for you. Fully quit and reopen Claude Desktop after editing so it reads the new config.
Cursor
Add the same entry to Cursor's MCP configuration. Cursor removed its old tool limit, so use Full mode with all 190 tools.
Cline (VS Code extension)
Add the entry in Cline's MCP server settings inside VS Code. Full mode works, since Cline has no hard tool limit. Its enabledTools setting lets you allow only some tools. Two things to check:
- Make sure the entry is not marked
"disabled": true. Cline skips disabled servers without showing an error, so you just get no tools. - Use the VS Code extension, not the Cline CLI. In our testing the CLI listed the server, showed no error and exposed zero tools, while the same config worked in the extension. The server itself returned the full tool list, so the CLI was not finishing the MCP handshake.
Clients with tool limits
If your client caps the number of tools, add a mode flag after the path in args:
"args": ["C:/tools/godot-mcp-pro/server/build/index.js", "--lite"]
# (none) Full, 190 tools - Claude Code, Cline, VS Code Copilot, Cursor
# --3d 100 tools - Antigravity and other 100-tool clients needing 3D
# --lite 88 tools - Windsurf, JetBrains Junie, Gemini CLI
# --minimal 35 tools - OpenCode, local LLMs with small context
5. Verify the Connection
- Open the project in Godot with the plugin enabled. The editor must be running; the plugin is what connects to the server.
- Start (or restart) your AI client so it launches the server.
- Check the MCP Pro panel at the bottom of the editor. It shows the connection state, and its Clients tab lists each port with its status, time connected and idle time. A yellow ⚠ means a port is reconnecting from a stale state.
- Ask the AI to run a simple tool, for example: "Call
get_project_infoand tell me the project name." A real answer means both halves are connected.
If your client shows MCP server logs, a healthy start writes these lines to stderr:
[MCP] Godot MCP Pro started
[MCP] WebSocket server listening on ws://127.0.0.1:<port>
6. Troubleshooting by Symptom
The server is listed, but the client shows zero tools
- Cline: check for
"disabled": true, and switch from the Cline CLI to the VS Code extension (see above). - Any client: make sure
server/build/index.jsexists at the path in your config. If it does not, runnpm installandnpm run build(ornode build/setup.js install) inserver/. - Run
node build/setup.js doctorfor an environment check.
Tools exist, but every call says the editor is not connected
- Godot must be open on a project that has the plugin enabled. Look at the MCP Pro panel.
- Since v1.16.0 the error tells two cases apart: the server could not bind a port, or it is running but no editor is attached. The first is a port problem (next symptom). The second means the plugin is not connecting: check that the plugin is enabled and that the addon and server versions match.
- If you set the optional connection token (the
godot_mcp_pro/require_connection_tokenproject setting orGODOT_MCP_REQUIRE_TOKEN=1), the server must present it viaGODOT_MCP_TOKENorGODOT_MCP_TOKEN_FILE. It is off by default.
A sixth AI session cannot connect (port exhaustion)
Every open AI session (each Claude Code window, or any other client that has started the server) holds one port from 6505–6509. With five sessions open, a sixth has no port to bind. Close idle AI sessions to free a port. Since v1.16.0 the server retries the bind on the next tool call, so the waiting session recovers without a restart once a port is free.
Before v1.18.0, a stdio server could keep running after its client closed and keep holding its port. v1.18.0 makes the server exit when its client closes stdin. On older versions, closing leftover node processes (for example in Task Manager) frees those ports.
Pinned port fails silently
If your config sets GODOT_MCP_PORT, the server uses only that port and does not scan. When another or stale process already holds it, the server cannot start there. Remove the env entry so the server picks a free port from 6505–6509.
Two sessions started together and one never connects
Before v1.13.2, two sessions starting at almost the same moment could both try port 6505. The loser gave up instead of trying the next port, and its tools failed for the whole session. Update: the server now tries each port from 6505 to 6509 in turn.
It worked, then every call times out (after sleep, VPN or a hang)
On Windows a sleep/wake cycle, a VPN toggle or a short editor hang can leave a half-open connection that looks alive but carries nothing. Since v1.13.1 both sides detect this and reconnect on their own within about 30 seconds. The Godot Output panel shows [MCP] Port NNNN silent for X.Xs — forcing reconnect when it happens. On older versions you had to restart both the AI client and Godot, so update.
Nothing connects after updating only the plugin or only the server
v1.18.0 added a port registry: servers announce their port in ~/.godot-mcp-pro/ports/ and the temp directory, and the plugin dials only announced ports. Once any v1.18.0+ server has run on the machine, the plugin stops scanning, so an older server is no longer found. Always update the addon and the server together. With no registry, the plugin falls back to scanning with a back-off from 3 to 30 seconds, and the CLI now waits up to 35 seconds for the editor.
npm run build says "Build failed" on Windows
Old releases had a Unix-only chmod in the build script, which does not exist in cmd or PowerShell. TypeScript compiled fine, but the step reported failure. That was fixed long ago, and current zips include the pre-built JavaScript. Download the latest package.
The client complains about too many tools
Switch to --lite, --3d or --minimal (see the modes above). For clients without MCP support, or to save context, the CLI (node build/cli.js --help) works from any terminal. It needs a free port in 6510–6514.
7. FAQ
Does Godot MCP Pro work on Windows?
Yes. It runs on Windows, macOS and Linux, with Godot 4.4 or later and Node.js 18 or later.
Which ports does Godot MCP use?
MCP server sessions use WebSocket ports 6505–6509 on 127.0.0.1, one per running session. Ports 6510–6514 are reserved for the CLI.
How many AI sessions can connect to one Godot editor?
Up to five MCP sessions at once. A sixth cannot bind a port until you close an idle one.
Does it work with Cline?
Yes, with the Cline VS Code extension in Full mode. Use the extension rather than the Cline CLI, which in our testing exposed no tools.
Why is there no server folder in the GitHub repository?
The public repository contains only the free editor plugin. The Node.js MCP server ships in the paid package, a one-time $15 purchase with lifetime updates.
Get the Full Package
The MCP server that connects Claude Code, Claude Desktop, Cursor and Cline to your Godot editor comes with Godot MCP Pro: 190 tools, a one-time $15 purchase, lifetime updates and Discord support.
get_project_info
get_scene_tree
play_scene
simulate_key
get_editor_errors