What Claude Code can do inside Godot
Out of the box, Claude Code can read and write the files in your Godot project — GDScript, .tscn scenes, .tres resources. What it can't do on its own is see the editor, run the game, or check whether the thing it just wrote actually works. That is the gap an MCP (Model Context Protocol) server fills.
Godot MCP Pro connects Claude Code directly to the running Godot 4 editor:
AI Assistant <--stdio/MCP--> Node.js Server <--WebSocket:6505--> Godot Editor Plugin
The plugin runs inside the editor; the Node.js server translates Claude Code's tool calls into editor commands. That gives Claude Code 190 tools across 26 categories. In practice it means Claude Code can:
- Create scenes and nodes, set properties, connect signals and attach scripts through the editor API — with full Ctrl+Z undo, because every mutation goes through Godot's UndoRedo system.
- Write scripts, validate GDScript, and read the editor's errors and output log.
- Run the game, then press keys, click, move the mouse and fire input actions inside it.
- Take screenshots of the editor and of the running game, inspect the live scene tree, and read or change node properties at runtime.
- Work with 3D, physics, animation, AnimationTree, tilemaps, shaders, particles, audio, navigation, themes, export presets and more.
That last loop — build, run, look, fix — is what makes the difference. Instead of handing you code and hoping, Claude Code can playtest its own work.
What you need
- Godot 4.4 or later (tested on 4.4, 4.5, 4.6, 4.7 and 4.8 beta 5). Windows, macOS or Linux.
- Node.js 18+ to build and run the MCP server.
- Claude Code.
- The Godot MCP Pro package — a one-time $15 purchase with lifetime updates, available on itch.io or Buy Me a Coffee. The zip includes the addon, the
server/directory,INSTALL.mdand AI-client instructions.
The GDScript editor plugin (addons/godot_mcp/) is open source on GitHub, so you can read exactly how it talks to the editor. The MCP server that Claude Code connects to is only in the paid package. If you cloned the public repo and don't see a server/ folder, that's expected.
Step 1: Install the Godot plugin
Copy the addons/godot_mcp/ folder from the download into your Godot project's addons/ directory. Then enable it:
Project > Project Settings > Plugins > Godot MCP Pro > Enable
Once enabled, the plugin starts a WebSocket server inside the editor automatically.
Step 2: Build the MCP server
Extract the zip, open a terminal in the server/ directory and run:
cd server
npm install
npm run build
This compiles the TypeScript MCP server into server/build/. Note the full path to server/build/index.js — you need it in the next step.
Step 3: Configure Claude Code
Claude Code reads MCP servers from a .mcp.json file. Add Godot MCP Pro to it:
{
"mcpServers": {
"godot-mcp-pro": {
"command": "node",
"args": ["/path/to/server/build/index.js"],
"env": {
"GODOT_MCP_PORT": "6505"
}
}
}
}
Replace /path/to/ with the actual path where you extracted the files.
Which mode should Claude Code use?
Godot MCP Pro has four modes so it fits clients with different tool limits: Full (190 tools, default), 3D (--3d, 100 tools), Lite (--lite, 88 tools) and Minimal (--minimal, 35 tools). For Claude Code, use Full — Claude Code loads tools on demand (deferred tool loading), so the context cost of all 190 tools stays minimal. The config above already runs in Full mode; you don't need to add a flag.
Optional: CLI mode
Because Claude Code has a terminal, it can also drive Godot through the bundled CLI instead of MCP. The CLI talks to the editor plugin directly and lets the model discover commands progressively through --help:
node /path/to/server/build/cli.js --help
node /path/to/server/build/cli.js project info
node /path/to/server/build/cli.js scene play
node /path/to/server/build/cli.js node add --type CharacterBody3D --name Player
The CLI needs the Godot editor running with the plugin enabled and a free port in the 6510–6514 range. For most Claude Code users, the MCP setup above is the simpler path.
Step 4: Verify the connection
- Open your Godot project with the plugin enabled. The status panel in the editor dock shows the connection state.
- Start Claude Code in the folder that holds your
.mcp.json. - Ask for something read-only to confirm the link works end to end:
Use the Godot MCP tools to get the project info and the scene tree of the
currently open scene, and summarize what this project contains.
If Claude Code answers with your project's name, Godot version and the nodes in your scene, it is talking to the editor through get_project_info and get_scene_tree. If it only reads files from disk instead, the MCP server isn't connected — see Troubleshooting.
Your first prompts
Start small, then scale up. A good second prompt makes a visible change and asks Claude Code to check it in the running game:
Add a Label to the main scene that says "Hello from Claude Code", centered on
screen. Then run the scene, take a game screenshot, and confirm the text is
visible and centered.
When that works, try a whole prototype. Every one-prompt game in the showcase started from the same template — this is the exact prompt behind Pop Match!, built in about four minutes:
I want to make a match-3 puzzle game. Before thinking about originality, I'd
like to build the core basics first. Please make it with pop, catchy graphics.
Swap the genre and you get the others: a tower defense (~5 min), a 2D platformer (~5 min), a bullet-hell shooter (~5 min) and a 3D ball roller (~3.5 min). "Core basics first" is deliberate: it asks for a playable foundation instead of a feature list, which gives the agent a clear finish line.
A real workflow: prompt, build, playtest, fix
The best example of the full loop is Pop Survivors and its follow-up, Pop Survivors PLUS. Both were built by Claude Code through Godot MCP Pro, recorded uncut, with zero human code edits.
1. Prompt: the core
I want to make a Vampire Survivors-like game. Before thinking about originality,
I'd like to build the core basics first. Please make it with pop, catchy graphics.
2. Build
In about nine minutes Claude Code produced player movement, auto-firing star bolts, orbiting stars and shockwaves, XP gems, level-ups with a choice of three power-up cards, and enemy waves — everything drawn in code, with no image assets.
3. Playtest
Then it ran the game and played it with simulated input. Two problems surfaced that no one pointed out:
- The input bindings didn't respond to simulated keys.
- The first playtest ended in a game over after 14 seconds.
4. Fix
Claude Code fixed the bindings and rebalanced the difficulty, then played again. This is the step a file-only setup can't do: the bug only shows up when the game is actually running.
5. Iterate, one feature per prompt
PLUS continued from that build with four more prompts (five in total, about 33 minutes of AI work), each adding one layer:
- A title screen and a character select with three heroes, each with their own starting weapon and stats.
- Weapon evolution: elite enemies drop chests that evolve a maxed weapon when you own its matching passive item.
- A boss every two minutes and a win at eight minutes.
- Meta progression with a shop, sound effects made in code, and game-feel polish.
Along the way it caught and fixed its own bugs from screenshots and simulated input: a broken autoload causing compile errors in the editor, clipped text on the character select, a chest lid drawn as a full circle that hid the chest, the boss firing while still off-screen, a swarm wave firing on the same frame as the victory, and the hero's hat covering the "WIN" letters. The result ships with 21 code-synthesized sound effects and is playable in the browser.
What the agent can and can't do
Honest expectations save time:
- It's fast at prototypes. A playable genre core from one prompt in minutes is realistic, as the showcase builds show.
- It verifies by running the game. Screenshots, input simulation, runtime properties and the error log let it find layout, timing and balance bugs itself.
- You still own the design. Every showcase prompt was written by a person: the genre, the feature order, what "fun" means. The agent executes and checks; it doesn't decide what your game should be.
- The showcase art is code-drawn. Those games use shapes drawn in code rather than imported art. Plan your own art pipeline separately.
- Showcase videos are edited for speed. The builds are recorded uncut, then shortened; the minute counts are AI work time.
Tips for working with Claude Code in Godot
- Keep the editor open. The tools act on the live Godot editor over WebSocket. Open the project with the plugin enabled before you start prompting.
- Change settings through the editor API. Ask Claude Code to use
set_project_setting(andset_input_actionfor input mappings) rather than editingproject.godotas text while the editor has it open. - Remember the game has to be running for runtime tools. Inspecting the game tree, simulating input and game screenshots all need the scene started with
play_scenefirst. - Ask it to playtest. End feature prompts with "run it, play it with simulated input, take screenshots, and fix anything that looks wrong."
- Undo is your safety net. Node and property operations go through UndoRedo, so Ctrl+Z works on the agent's edits too.
- Save explicitly.
get_unsaved_statelists open scenes and scripts with unsaved changes;save_allsaves them and reports what was saved. - Let blocking dialogs get out of the way.
set_auto_dismissauto-dismisses editor dialogs like "Reload from disk?" that would otherwise stall a session.
Troubleshooting
There's no server/ folder
You have the public GitHub repo, which only contains the free plugin. The server is in the paid package.
Claude Code doesn't see any Godot tools
Check that npm run build finished, that the path in args points to the real server/build/index.js, and that you started Claude Code from the folder containing your .mcp.json.
Tools fail with a connection error
Make sure the Godot editor is open with the plugin enabled and look at the status panel in the editor dock. The connection auto-reconnects with exponential backoff (1s, 2s, 4s … up to 60s) and uses a 10s heartbeat, and the server auto-scans ports 6505–6509 to avoid conflicts. If the plugin itself is stuck, reload_plugin reloads it and reconnects automatically.
Runtime tools return errors
The game isn't running. Have Claude Code call play_scene first, then use the runtime and input tools.
The editor shows "Reload from disk?" dialogs
That happens when files change on disk while they're open in the editor. Prefer editor tools (edit_script, update_property) over raw file writes, and use set_auto_dismiss for the dialogs. reload_project rescans the filesystem and reloads scripts if things get out of sync.
FAQ
Does Claude Code work with Godot without an MCP server?
It can edit project files, but it can't see the editor, run the game or test its own changes. An MCP server like Godot MCP Pro adds that: 190 tools covering the editor, the running game, input simulation and screenshots.
Will 190 tools overload Claude Code's context?
No. Claude Code uses deferred tool loading, so the recommended mode for it is Full with all 190 tools at minimal context cost. Lite and Minimal modes exist for clients with tool limits.
Which Godot versions are supported?
Godot 4.4 or later (tested on 4.4/4.5/4.6/4.7/4.8 beta 5), with Node.js 18+, on Windows, macOS and Linux.
Can Claude Code build 3D games in Godot?
Yes. There are dedicated tools for meshes, lighting, materials, environment, cameras and GridMaps, plus physics, navigation and particles. Pop Roller is a 3D ball-rolling game built from one prompt in about three and a half minutes.
Is it a subscription?
No. It's a one-time $15 purchase with lifetime updates, unlimited projects, unlimited machines and Discord support.
Give Claude Code the Godot editor
Godot MCP Pro connects Claude Code to Godot 4 with 190 tools — build scenes, write scripts, run the game and playtest it. One-time purchase, lifetime updates.
play_scene
simulate_key
get_game_screenshot
get_editor_errors
validate_script
See pricing details or browse the games built with it.