How to Use Cursor AI with Godot (2026 Step-by-Step Setup)
Set up Cursor with Godot in 2026, edit GDScript, run an import check and an iteration-limited startup check, then inspect the result in play.

{/* IMAGE: Hero showing a Godot project open in Cursor on the left with an AI edit mid-stream in a GDScript file, and the Godot editor on the right with the scene tree visible. A dashed line connects them labeled "you wire these two together." 1200x630, illustration. */}
Cursor does not have a Godot button. There is no integration to install, no plugin marketplace entry that magically fuses the two. What actually happens is simpler and a little more manual: Cursor is a code editor, a Godot project is a folder of files, and you point Cursor at that folder and teach the two tools to cooperate. Done right, you get one of the best AI coding experiences available pointed straight at your GDScript. Done wrong, Cursor confidently writes Godot 3 code into your Godot 4 project and guesses node names that do not exist.
This guide shows the setup and a practical edit-check-play loop. We build Summer Engine, an AI-native engine compatible with Godot 4, so we also explain where an engine connection can help.
Before you start: what this setup actually is
Cursor edits the text files inside a Godot project, and a Godot project is mostly text: .gd scripts, .tscn and .tres scene and resource files (human-readable), project.godot config, and shaders. Cursor reads and edits all of those well. Cursor Agent can also run terminal commands and read their output, subject to your settings and permissions.
Cursor is not the Godot engine. A terminal command can start Godot and report errors, and an MCP server may expose more editor tools, but those checks do not replace watching the scene and testing controls yourself. Keep Godot open alongside Cursor so you can inspect the result of each edit.
Step 1: Open your Godot project in Cursor
Open Cursor, choose Open Folder, and select the root of your Godot project (the folder containing project.godot). Cursor now sees every script, scene, and config file and can edit across all of them.
One immediate habit: keep both apps open side by side, Godot on one half with the scene tree and the running game, Cursor on the other with your scripts. You will switch between "ask Cursor to write this" and "run it in Godot to see if it worked" constantly.
Step 2: Install the godot-tools extension for GDScript
This is the step most people skip, and it is the one that stops Cursor from writing nonsense.
Cursor is built on the VS Code extension ecosystem, so the official godot-tools extension works directly. Open the Extensions panel, search for "godot-tools," and install it. It connects to Godot's built-in language server, which gives you accurate GDScript completion, hover docs, go-to-definition, and crucially, syntax that matches your actual Godot version instead of whatever the model guessed.
For the connection to go live, the Godot editor needs to be running with its language server enabled (on by default, port 6005). With both running, Cursor's GDScript completions pull from the real engine API rather than generic training data.
C# users: install the C# extension and Godot C# tooling instead. The models handle Godot C# at least as well as GDScript because there is far more public C# code, so language quality is high; the same project-awareness caveats below still apply.
Step 3: Make Godot open scripts in Cursor
Right now, double-clicking a script in Godot opens Godot's built-in script editor. Point it at Cursor instead so your workflow is consistent.
In Godot, go to Editor Settings, Text Editor, External. Check Use External Editor. Set Exec Path to your Cursor executable, and set Exec Flags to the Cursor goto form: {project} --goto {file}:{line}:{col} (that flag is Cursor's literal command-line argument for jumping to a line). Now double-clicking any script in the Godot scene tree opens it in Cursor at the exact line, and you stay in one editor for all code work.
It is a small thing that removes constant friction. Without it you end up with code half-written in Godot's editor and half in Cursor, which is how you get stale buffers and merge headaches.
Step 4: Optionally add a Godot MCP server for scene tools
Cursor can infer a node tree from a .tscn file's serialized text. Still, verify exact paths in Godot: an edit that uses $AnimationPlayer will fail if the node actually lives at $Visuals/AnimationPlayer.
A Godot MCP server may help. MCP (Model Context Protocol) lets Cursor call tools exposed by that server. Some servers expose scene structure; inspect the chosen server's tools and permissions before relying on its node paths.
To add one, open Cursor's MCP config at ~/.cursor/mcp.json (global) or .cursor/mcp.json (project), add a server entry per your chosen server's install instructions, and restart Cursor. If the server offers scene-reading tools, ask what nodes are under the Player scene and check the answer against Godot. Our guide to Godot MCP servers covers the options and what each exposes.
You can skip MCP for script edits and terminal checks. For node paths and signals, inspect the scene yourself if no verified scene tool is available.
Step 5: Write your first AI edit
With the project open, the extension installed, and ideally an MCP server connected, you are ready. The two flows you will use most:
- Inline edit (Cmd/Ctrl+K): Select a block of GDScript, hit the shortcut, describe the change. Good for "convert this to a state machine" or "add a cooldown to this attack."
- Composer / chat: Describe a feature in the chat and let Cursor plan and apply edits across files. Good for "add a coin pickup system with a HUD counter."
A realistic first prompt: open your player script, select the movement code, Cmd+K, and type "add a double jump that resets when the player touches the floor, Godot 4 syntax." Cursor proposes a diff. Review it before accepting, because this is where the Godot 3 problem shows up.
The Godot 3 trap (and how to kill it)
The most common complaint about AI and Godot is that the assistant writes Godot 3 code: you ask for movement and get KinematicBody2D and move_and_slide(velocity) with the old signature, or yield where you need await. Public training data skews heavily toward Godot 3, so an unguided model reaches for it.
Three fixes, in order of impact:
- The godot-tools extension (Step 2) corrects much of it through the language server, which knows your real API surface.
- A project rule. Cursor lets you add rules in settings or a
.cursor/rulesfile. Add: "This is a Godot 4.x project. Useawait,@export,@onready,CharacterBody2D/CharacterBody3D, thevelocityproperty withmove_and_slide()(no argument), and Callable-based signal connect syntax. Never use Godot 3 APIs." This gives the agent useful project context; still review each diff. - One example file. Paste a known-correct Godot 4 script from your project into context. Models match the API of nearby code aggressively, so one good example is worth a paragraph of instructions.
These steps reduce Godot 3 mistakes, but do not guarantee correct output.
Check the edit, then play the scene
After accepting a small diff, ask Cursor to check imports if Godot is installed and terminal commands are permitted. From the project folder, the import command waits for resources and then exits:
godot --headless --path "/path/to/project" --import
Use the path to your own Godot executable if godot is not on your PATH. Read its output with Cursor; a successful import checks resource import and editor load, not the gameplay change. If the project has a main scene, a 120-iteration headless run can exercise startup and report some script errors:
godot --headless --path "/path/to/project" --quit-after 120
These are examples from Godot's command-line options, not a full test suite. Finally, play the affected scene in Godot. Check the changed behavior and a nearby existing control. A headless pass cannot judge whether a jump feels right, an animation reads clearly, or a sound is balanced.
Where Summer Engine fits
We make Summer Engine, an AI-native engine compatible with Godot 4. Its agent tools can work with the open project, scene tree, play and diagnostics through the engine connection. An external editor can also use terminal and MCP tools when configured. The practical difference is which project context and checks your setup actually exposes; neither path removes the need for a human play check.
Two honest points so this stays a guide, not a pitch:
- If you are an experienced Godot developer who lives in an IDE, loves keyboard-driven editing, and already has an asset pipeline and debugging routine, Cursor with the setup above is genuinely excellent and you may need nothing else. We would rather you use Cursor than switch for no reason.
- You do not have to choose. Summer Engine ships an MCP server, so you can keep Cursor for code editing and give it access to the Summer project and available engine tools. Check the returned project context and tool list before asking it to edit or play.
For the full breakdown of where each tool wins, read our Cursor plus Godot vs Summer Engine comparison. The best AI coding assistants for Godot ranking covers Copilot, Claude Code, and the in-engine options side by side.
Quick setup checklist
| Step | What you do | Why it matters |
|---|---|---|
| 1. Open project | Open the folder with project.godot in Cursor | Cursor can now edit every script and scene |
| 2. godot-tools extension | Install it in Cursor, run Godot alongside | Accurate Godot 4 completion, kills most Godot 3 leakage |
| 3. External editor | Point Godot at Cursor in Editor Settings | One editor for all code, no stale buffers |
| 4. Godot MCP server | Add to .cursor/mcp.json, restart | Inspect available scene tools and verify returned node paths |
| 5. Project rule | Add a Godot 4.x rule in Cursor settings | Guides generation toward await, @export, and current node APIs |
| 6. Verify | Run a bounded Godot command, then play the affected scene | Terminal output catches some errors; visual and control checks still need play |
The short version
Using Cursor with Godot starts with the project folder, GDScript support, an optional external-editor link and an optional MCP server. Give Cursor a Godot 4 project rule, make one small edit, run a permitted engine command, and then play the affected scene yourself.
Cursor can read terminal output from Godot when you give it command access. Scene-aware tools need a working MCP connection, and a successful command still leaves visual and play checks. Summer Engine can provide an engine-connected MCP path alongside Cursor. Choose the workflow you can inspect and verify.
For the engine-connected path, download Summer Engine or start from a template. The proprietary desktop editor and local export are free. Summer-hosted tasks require an account and can use paid credits; your Cursor plan is separate, and MCP connection alone is not a credit purchase. Signup credits are not guaranteed. Check current pricing before starting a metered task.
Frequently asked questions
- How do I connect Cursor to Godot?
There is no single connect button. Open your Godot project folder in Cursor, install godot-tools for GDScript support, and optionally set Cursor as Godot's external script editor. A Godot MCP server may add scene-reading tools if that server exposes them. Cursor can also run permitted terminal commands; Godot remains the engine that runs the game.
- Does Cursor work with GDScript?
Yes, with one setup step. Cursor autocompletes GDScript out of the box because the underlying models have seen a lot of public Godot code, but it leans toward Godot 3 syntax when unsure. Installing the godot-tools extension connects Cursor to Godot's language server, which gives you accurate completion, hover docs, and go-to-definition based on your actual Godot 4 API. That extension is the difference between guessed completions and correct ones.
- Can Cursor see my Godot scene tree?
Cursor can read a .tscn scene as text. A Godot MCP server may expose structured scene tools, depending on the server and its permissions. Cursor's terminal agent can also run permitted Godot commands and read their output. Neither a scene listing nor a successful headless run proves that the game looks or plays correctly; inspect the affected scene in Godot.
- Why does Cursor keep writing Godot 3 code?
Because the public training data is full of Godot 3, so an unguided model defaults to it: yield instead of await, KinematicBody2D instead of CharacterBody2D, the old tween and signal connect syntax. The fix is context. Install the godot-tools extension so the language server corrects it, and add a short rule in your Cursor settings telling it the project is Godot 4.x and to use await, @export, and the current signal syntax. Pasting one correct Godot 4 file as an example also steers it hard.
- Can Cursor run my Godot game and fix the bug itself?
Cursor's agent can run terminal commands and read their output when you allow it. With a Godot executable available, it can perform a bounded headless startup or scene check and use the reported errors for another edit. An MCP server may add editor and play tools, but its abilities depend on that server. You still need to review the diff and play the affected scene to judge visuals, controls, audio and feel.
- Is Cursor with Godot free?
Godot is free under the MIT license. Cursor lists limited AI use on its free plan; check Cursor's current plans before relying on a particular allowance. MCP server costs depend on the one you choose. Summer Engine's proprietary desktop editor is free for local projects and export. Summer-hosted AI tasks require an account and may use paid credits; merely connecting Cursor to MCP does not itself buy credits. Signup credits are not guaranteed.
- Do I need a Godot MCP server to use Cursor?
No. Cursor can edit scripts and run permitted terminal commands without MCP. A Godot MCP server may add structured scene tools, depending on the server and its permissions. If your edits touch node paths and signals, inspect the available tools and verify their scene output before relying on it.
Keep reading
All posts
How to Make AI in Godot 4: A Step-by-Step Guide (2026)
A practical guide to building AI in Godot 4, from enemy state machines and pathfinding to LLM-driven NPCs, with copy-paste GDScript and a faster AI-assisted path.

The Best AI Coding Assistant for Godot in 2026 (Ranked by Real GDScript Work)
Which AI coding assistant is best for Godot in 2026? An honest ranking of the assistants that write and edit GDScript and C# inside your project: Cursor, Copilot, Claude Code, Ziva, MCP, and Summer Engine.

The Best AI for GDScript in 2026 (Honest Model and Tool Roundup)
Which AI writes the best GDScript in 2026? A real comparison of the models that produce clean Godot 4 code and the tools that wire them into your project, ranked by what they actually do.