# Claude for Godot: how to build a Godot game with Claude Code, step by step

The quickest way to use Claude with Godot is Claude Code: open a terminal in your project folder, type claude, and ask for a change. It edits your scripts and scenes as files. Give it a Godot MCP server and it can also run the game and read the errors, and with some servers look at the game and press its keys. This guide covers the four real ways to connect Claude to Godot, with the exact steps, what Claude can and cannot do in each, and what each costs, as of 24 Oct 2026. Flockbay is free, AI included: free hosted AI every day, or your own Claude, ChatGPT, agent or API key. It runs on Windows, macOS and Linux, on the official Godot engine.

Source: https://flockbay.com/blog/claude-for-godot/ · Updated 2026-10-24

## Claude for Godot works until the game has to run

Ask Claude Code for a double jump in a Godot platformer and you get a tidy script back: a jump counter, a reset when the player lands, the second jump a little weaker than the first. It reads well. You press F5 and the player jumps once, because the counter resets on the same frame the first jump leaves the ground. Claude never saw that happen. It wrote the code and stopped.

That gap is the whole story of Claude and Godot. Claude writes GDScript well, it knows the engine's node types, and it reads a scene file without trouble. What separates the four setups below is how much of the running game Claude can see: none of it, its errors, or its errors plus pictures and the keys you would press.

Every setup starts from the same place. A Godot 4 project is a folder of text files: project.godot, scenes as .tscn, resources as .tres, scripts as .gd. Anything that can edit files can edit a Godot game. The question is what happens after the edit.

## Way 1: Claude Code on your Godot project folder

Claude Code is Anthropic's coding agent. It runs in a terminal, or in the Code tab of the Claude desktop app, and works on the files in the folder you start it in. It needs a paid Claude plan (Pro, Max, Team or Enterprise) or an Anthropic Console account billed per use; the free claude.ai plan does not include it.

On Windows, install it from PowerShell with the line below. Anthropic also lists winget install Anthropic.ClaudeCode and an npm package. Then open a terminal in the folder that holds project.godot, type claude, and sign in when it asks.

Start with a question rather than a change: ask Claude to describe the project in five sentences, name the main scene and list the autoloads. If the summary is wrong, the changes will be too. Then ask for one change at a time, each with a way to check it.

```
# PowerShell, once
irm https://claude.ai/install.ps1 | iex

# then, in the folder that holds project.godot
cd "C:\path\to\your-game"
claude
```

## A CLAUDE.md file tells Claude it is working on Godot 4

Claude Code reads a file called CLAUDE.md at the root of the folder before it starts. Put the facts it would otherwise guess there: the Godot version, that scripts are GDScript with static types, where the main scene lives, and that the .godot folder is Godot's own cache and never to be edited.

The most useful line is a check it can run itself. Godot's command line can do a headless run of your game and quit after a set number of frames, printing every error to stdout. If Godot is on your PATH, Claude can run that after each change and read what broke. On Windows, point it at the console build of Godot, the executable whose name ends in _console.exe, so the output reaches the terminal.

That one line is most of the difference between Claude writing code and Claude checking code. It still is not the same as playing: a headless boot tells you the script parses and the scene loads, not that the jump works.

```
# CLAUDE.md
This is a Godot 4.7 project. Scripts are GDScript with static types.
The main scene is res://scenes/main.tscn. Never edit anything under .godot/.
After changing a script or a scene, run:
  godot --headless --path . --quit-after 300
and fix every error it prints before saying the change is done.
```

## What Claude Code can and cannot do on the folder alone

It can read and write every script, scene and resource, rename things across files, add input actions to project.godot, and chase a bug through three scripts faster than you would. With your permission it can run Godot from the terminal, as above, and read the errors.

It cannot see the game. It does not know the player clips through the floor, that the camera is pointing at the sky, or that the UI covers the score. It cannot press a key in your game or look at the editor. Scene files are text, but they carry resource IDs and UIDs that are easy to get subtly wrong by hand, and Claude editing a .tscn is guessing at what the editor would have written.

One trap catches everyone once. If a script is open in the Godot editor while Claude changes it on disk, Godot notices and asks whether to reload it. Answer Reload. Saving the editor's copy writes the old text back over Claude's change.

Cost: nothing beyond your Claude plan. Pro is $20 a month, or $17 a month billed yearly; Max starts at $100 a month. Godot itself is free.

## Way 2: Claude Code plus a Godot MCP server

MCP, the Model Context Protocol, is how an agent is handed tools beyond reading and writing files. A Godot MCP server is a small program that sits between Claude and Godot: Claude asks it to run the game, and it runs the game and hands back what Godot printed. This is the setup that closes the loop between writing code and seeing it fail.

The free one most people start with is Coding-Solo's godot-mcp, MIT licensed, about 5,900 stars on GitHub. It launches the editor, runs the project in debug mode and captures its output, stops it, creates scenes, adds nodes, loads sprites and saves scenes. Its README mentions no screenshots and no simulated input. It needs Node.js 18 or later and finds Godot by itself, or through a GODOT_PATH variable. One line registers it with Claude Code.

Two paid servers plug into the Godot editor you already use. GDAI MCP is $19 once: it edits scenes, nodes, scripts and resources, reads logs and debugger errors, takes screenshots of the editor and the running game, and injects key and input-action events into the running game, on Godot 4.2 and later. Godot MCP Pro is $15 once and lists 187 tools on its own site, including screenshots, input simulation and inspecting the running game, on Godot 4.4 and later.

Summer Engine, a desktop app built on Godot, ships a free, MIT-licensed MCP server too. Its page says an outside agent can run the game, collect its errors, send it input, take screenshots, and edit scenes and scripts. Those tools drive the Summer Engine app rather than a plain Godot editor, so the app has to be open with the project loaded.

After adding any server, type /mcp inside Claude Code. It lists each server and whether it connected. The comparison of the servers themselves, tool by tool, is in [the best Godot MCP server](/blog/best-godot-mcp-server/).

```
claude mcp add godot -- npx @coding-solo/godot-mcp
```

## Way 2 with Flockbay: Claude builds inside the Godot editor

Flockbay is a free AI game maker built on Godot: a desktop app with the official Godot 4.7.2 inside, not a fork, where your game is a real Godot 4 project you can open, read and change. It hands your own agent its tools over MCP, and connecting one is free. You need the app open with your game, and a free Flockbay account, which the app makes on first launch.

In the Flockbay app, open Connectors from the Flockbay menu, press Set up on the Connect your agent (MCP) row, press Turn on, pick Claude Code and press Copy. Paste the line into PowerShell. It registers one server, flockbay-stage, for your user, so Claude Code finds it from any folder. The app writes the line with your machine's own paths filled in; the shape is below. Beside Copy, Install skills and hooks puts Flockbay's instructions into Claude Code, and hooks that check a script parses after Claude edits it and ask Claude to play the game before it says a change works.

What Claude gets is the running game, not only its files. It edits scenes, nodes, scripts, resources and signals through the open Godot editor, and each change is one step in Godot's own undo history, so Ctrl+Z takes it back like your own. It plays the game and reads stdout, with each error's file, line and call stack. It captures the game viewport as the player sees it and the editor's 3D or 2D viewport. It injects timed key and mouse events into the game, and reads and changes the live scene tree while it runs.

It also gets the world tools: terrain, water, sky, weather, plants, the player controller, characters and props in a 3D world, and tile ground, scenery and sprites in a 2D one. Those are whole systems Claude calls rather than writes, so a coastline is one request instead of four hundred lines of mesh code. Its work shows in the app in its own chat, named Your agent.

The limits are plain. The Flockbay app runs on Windows, macOS and Linux. It needs an internet connection while you build. It works on the game the app has open, which can be a Godot project you already have: Flockbay asks before it adds anything to it. Flockbay is closed source. The full walk from install to a playable game is in [how to make games in Claude Code](/how-to-make-games-in-claude-code/).

```
claude mcp add --scope user flockbay-stage -e "FLOCKBAY_LOCAL_STAGE_CAPABILITY_AUTHORITY_DESCRIPTOR=<descriptor>" -- "<node>" "<coordinator>" --external-stage-mcp
```

## Way 3: Claude Desktop with a Godot MCP server

The Claude desktop app, on Windows and macOS, has two doors. The Code tab is Claude Code itself, with nothing else to install: everything in Way 1 and Way 2 applies there. The Chat tab is Claude as a chat, which reaches your game only through the MCP servers you give it.

To add a server to Chat, open Settings, then Developer, then Edit Config. That opens claude_desktop_config.json, which on Windows lives at %APPDATA%\Claude\claude_desktop_config.json. Add the server under mcpServers, save, then quit Claude Desktop completely and start it again. The server then appears under Connectors in the menu at the bottom left of the message box. Some servers also come as Desktop Extensions, .mcpb files installed from Settings, then Extensions.

Chat suits asking questions about a scene or getting Claude to run the game and explain an error. It is a poor fit for writing a game, because it only touches what the server exposes: with a run-and-read server and no file access, it can describe a fix but not make it. Use the Code tab for the building.

The Flockbay app's setup dialog does not list Claude Desktop. The block it gives for Cursor is the same mcpServers shape Claude Desktop reads, but we have not tried it there, so treat that as untested.

```
{
  "mcpServers": {
    "godot": {
      "command": "npx",
      "args": [
        "@coding-solo/godot-mcp"
      ]
    }
  }
}
```

## Way 4: Claude Code inside Flockbay, on your Claude plan

The last way needs no terminal. In the Flockbay app you pick Claude in the model menu, and Flockbay runs Claude Code on your Claude Pro or Max plan behind its own chat, beside the Godot editor. On Windows Claude Code comes with the app, on a Mac it uses the one you installed or installs it with Homebrew, on Linux it uses the one you installed, you sign in on Anthropic's page, and the menu lists the models and effort levels Claude Code gives your account. Nothing is pasted, and Flockbay charges nothing for it. It is on Windows, macOS and Linux.

It works on the same tools as Way 2, and more. It asks one round of questions at a time, writes a short brief of what it will build first, and builds only after you approve it. Then it builds the world, writes the code, playtests the game. It generates pictures and sound; 3D models are generated on your own Tripo key. The same world tools are buttons around Godot's 3D and 2D view, for sculpting, painting and placing, there for the calls you would rather make by hand, with Godot's undo.

Another way runs Claude models inside the app: your own Anthropic API key, added in Connectors and billed by that provider for what you use. Every account also gets free AI each day on the hosted model, called Demo, which comes back the next day. Demo is not Claude. Plans for more hosted AI are optional.

## What every Claude and Godot setup still leaves to you

Even the setup that playtests the game and captures the viewport cannot tell you whether the game is good. Claude can read the player's jump height and report that it went from 0 to 4.2 metres. It cannot tell you the jump feels floaty, that the camera makes you queasy, or that the second level is boring. A picture shows a frame, and feel lives between frames.

So the loop that works is short: one change, Claude checks it as far as its tools reach, you play it, you say what is wrong. People who hand Claude a forty-line design document and wait for a finished game get a pile of plausible code. People who ask for one mechanic, play it and ask for the next get a game.

Commit to git before each session in any setup. Undo in the editor covers one change; version control covers a bad afternoon.

## Which Claude for Godot setup to pick

You write code and want Claude as a fast pair of hands on a project you already have: Way 1, then add Coding-Solo's server the first time you catch yourself pasting an error back.

You want Claude to test its own work on an existing project: Way 2 with GDAI MCP or Godot MCP Pro, which reach the running game in your own Godot editor.

You are starting a new game and want Claude to build the world as well as the code, with the same world tools in the Godot editor for the calls you make by hand: Way 2 with the Flockbay app, free on the Claude plan you already pay for, on Windows, macOS or Linux.

You do not want a terminal at all: Way 4, on the Claude plan you already pay for.

You are on an Intel Mac: Ways 1 to 3 with any of the servers above. The Flockbay app runs on Windows, on Macs with Apple Silicon and on Linux.

## Claude for Godot: free versus paid, as of 24 Oct 2026

Godot is free. Claude Code needs Claude Pro ($20 a month, or $17 billed yearly), Max (from $100), Team, Enterprise, or pay-as-you-go API credits through a Console account.

On top of that: Coding-Solo's godot-mcp is free. GDAI MCP is $19 once and Godot MCP Pro $15 once. Summer Engine's MCP server is free, and its plans are $20, $60 and $200 a month. The Flockbay app is free: Demo every day, or your own Claude or ChatGPT plan, your own agent or your own API key. Its optional plans for more hosted AI are Hobby $20, Indie Developer $60 and Studio $200 a month.

The honest summary: if you already pay for Claude, you can have Claude run and test a Godot game without spending another dollar.

## Troubleshooting Claude with Godot

The server does not show up in Claude Code. Type /mcp. If it is missing, you registered it in a different folder: Claude Code's default scope is the folder you were in. Remove it with claude mcp remove and add it again with --scope user, which is what the Flockbay app's line already does.

The server shows as failed. Run claude mcp get with the server's name to see why. For an npx server, check node --version is 18 or later. For Claude Desktop, read the logs in %APPDATA%\Claude\logs, where each server writes its own file.

Flockbay's server connects but lists a single tool. The app is not serving your agent yet: open the Flockbay app, open your game, and turn on Connect your agent (MCP) in Connectors. The tools then appear by themselves. If they still do not, start a new Claude Code session.

Claude's change vanished. Godot's editor saved its older copy over it. Reload when Godot says a file changed on disk, and save in Godot before you ask Claude to edit a file you have open.

## Claude for Godot: every setup side by side

Read from each product's own pages on 2026-10-24.

| Tool | What Claude reaches | Runs the game and reads errors | Captures the viewport and sends input | Cost on top of Claude | Runs on |
| --- | --- | --- | --- | --- | --- |
| Claude Code on the folder | Your project's files | Only if you let it run Godot in the terminal | No | Nothing | Windows, macOS, Linux |
| Claude Code + Coding-Solo godot-mcp | Files, plus scenes and nodes through Godot | Yes: runs in debug mode, captures output | Not in its README | Free, MIT | Wherever Godot and Node.js 18+ run |
| Claude Code + GDAI MCP | Scenes, nodes, scripts and resources in your editor | Yes: logs and debugger errors | Screenshots and simulated input | $19 once | Godot 4.2+ on Windows, macOS, Linux |
| Claude Code + Godot MCP Pro | The Godot 4 editor, 187 tools | Yes: inspects the running game | Screenshots and input simulation | $15 once | Godot 4.4+ on Windows, macOS, Linux |
| Claude Code + Summer Engine's MCP | The Summer Engine app, open with the project loaded | Yes: runs it, collects errors and warnings | Screenshots and input to the running game | MCP free, MIT; plans $20, $60, $200 a month | macOS on Apple silicon, Windows |
| Claude Desktop (Chat) + a server | Only what the server exposes | If the server does | If the server does | The server's own price | Windows, macOS |
| Flockbay app + your Claude Code | The open Godot editor, the running game and the world tools, in the game Flockbay has open | Yes, with file, line and call stack | Pictures of the game and the editor's view; keys and mouse | Free | Windows, macOS (Apple Silicon) and Linux |
| Flockbay app, Claude Code inside it | The same tools, from the app's chat | Yes | Yes | Free on your Claude Pro or Max plan | Windows, macOS (Apple Silicon) and Linux |

Sources: Claude Code on the folder: [Claude Code setup](https://code.claude.com/docs/en/setup), [Claude pricing](https://claude.com/pricing); Claude Code + Coding-Solo godot-mcp: [godot-mcp README](https://github.com/Coding-Solo/godot-mcp); Claude Code + GDAI MCP: [GDAI MCP](https://gdaimcp.com/); Claude Code + Godot MCP Pro: [Godot MCP Pro](https://godot-mcp.abyo.net/); Claude Code + Summer Engine's MCP: [Summer Engine MCP](https://www.summerengine.com/godot-mcp), [Summer Engine pricing](https://www.summerengine.com/pricing), [Summer Engine download](https://www.summerengine.com/download); Claude Desktop (Chat) + a server: [Connect local MCP servers](https://modelcontextprotocol.io/docs/develop/connect-local-servers); Flockbay app + your Claude Code: [Connect your own agent](/docs/connect-your-own-agent/), [Pricing](/pricing/); Flockbay app, Claude Code inside it: [Pricing](/pricing/).

## Where another setup is the better choice

A Godot project you want to keep in your own editor: GDAI MCP or Godot MCP Pro reach it there, and Coding-Solo's server does it free. Flockbay opens an existing project too, in the editor it hosts.

An Intel Mac: Claude Code with any of the servers. The Flockbay app's Mac build is for Apple Silicon.

No spending beyond Claude and no new app: Claude Code with Coding-Solo's godot-mcp.

## Questions

### How do I use Claude with Godot?

Install Claude Code, open a terminal in your Godot project's folder and type claude. That lets Claude read and edit your scripts and scenes. To let it run the game and read the errors too, add a Godot MCP server with claude mcp add.

### Is Claude good at GDScript?

Yes, for Godot 4 GDScript, especially when you tell it the Godot version and that you use static types. Its mistakes are rarely syntax; they are behaviour it could not see, which is why a setup that runs the game matters more than the model.

### Can Claude run my Godot game and fix the bug itself?

With a Godot MCP server, yes: it runs the game, reads the error with its file and line, fixes it and runs it again. Without one, it can only boot the game headless from the terminal if you let it. No setup lets it judge whether the game feels right; that part is yours.

### Is using Claude with Godot free?

Godot is free, and Coding-Solo's godot-mcp is free. Claude Code itself needs a paid Claude plan from $20 a month, or API credits. Connecting Claude Code to the Flockbay app is free on top of that.

### Should I use Claude Code or Claude Desktop for Godot?

Claude Code, in a terminal or in the desktop app's Code tab, because it edits your files and runs commands. The Chat tab reaches your game only through an MCP server and suits questions more than building.

### Does Claude need the Godot editor open?

Not for editing files. Servers that act inside the editor, such as GDAI MCP, Godot MCP Pro and the Flockbay app's tools, need it open; Coding-Solo's server launches Godot itself.

### Which Claude models can I use in Flockbay?

On your Claude plan, the models Claude Code gives your account, inside the app or from your terminal. On your own Anthropic key, the Claude models that key reaches. Demo, the hosted model, is free each day and is not a Claude model.

Set up Claude Code with Flockbay: Flockbay is a free AI game maker built on Godot, for Windows, macOS and Linux. The step-by-step guide goes from install to a game you can play. https://flockbay.com/how-to-make-games-in-claude-code/

Related: [Claude or ChatGPT with Godot](/claude-or-chatgpt-for-godot/), [How to make games in Claude Code, step by step](/how-to-make-games-in-claude-code/), [The best Godot MCP server](/blog/best-godot-mcp-server/), [A guide to Godot MCP servers](/blog/godot-mcp-servers-guide/), [Prompt templates for your agent in Flockbay](/blog/flockbay-mcp-prompt-templates/)
