Godot with Claude MCP Computer Use: Setup Guide
In this article
You can point Claude's computer-use capability at Godot by running the MCP server locally, giving Claude a controlled desktop to click, type and read the screen inside the Godot editor. This is an experimental workflow rather than an official Godot feature, so treat it as a way to automate repetitive editor chores and prototype scenes, not a hands-off replacement for a developer. Before starting, confirm you have a supported Claude desktop client with MCP support, a recent Godot 4.x install, and a machine where you are comfortable letting an assistant control the mouse and keyboard inside a sandboxed session.
What You'll Need
- A desktop Claude app that supports MCP servers (the desktop client, not the mobile app).
- Godot 4.x installed from the official godotengine.org download.
- Python 3.10 or newer, plus pip, for running a local computer-use MCP server.
- A virtual machine or a dedicated user account for safety, so Claude cannot touch personal files.
- A Godot project you can afford to break, or a fresh copy under version control.
- Basic comfort editing a JSON config file and running terminal commands.
Step-by-Step
- Create a safe workspace. Set up a virtual machine (VirtualBox, VMware, or a cloud VM) or a separate OS user account. Install Godot there and open a copy of your project. This keeps any misclicks away from your real files and credentials.
- Install Python and the MCP server. In a terminal inside that workspace, create a virtual environment with
python -m venv venv, activate it, then install the computer-use MCP server package you intend to use withpip install. Check the server's own documentation for the exact package name and any system dependencies such as screen-capture libraries. - Grant screen and input permissions. On macOS, open System Settings > Privacy & Security and allow Screen Recording and Accessibility for the terminal or Python process. On Windows, no extra permission is usually needed, but confirm the process is not blocked by antivirus. On Linux, ensure your display server allows synthetic input; X11 is more reliable than Wayland for this.
- Register the server with Claude. Open the Claude desktop app's settings, find the MCP or developer section, and edit the configuration file it points to. Add an entry under
mcpServerswith a command that launches your server, for example"command": "python"and"args": ["-m", "your_server_module"]. Save the file and fully quit and relaunch Claude. Menu labels differ slightly between app versions and operating systems, so look for the MCP or developer entry rather than an exact name. - Verify the connection. Start a new conversation and ask Claude to list available tools. You should see computer-use tools such as screenshot, click, type and key-press. If nothing appears, the server failed to start; check the app's logs for the error.
- Launch Godot and open your project. Start Godot manually, open the project, and leave the editor window visible and maximised. Claude can only act on what is on screen, so close unrelated windows and notifications.
- Give Claude a narrow first task. Ask something small and reversible, such as "take a screenshot and tell me which scene is open" or "create a new 2D scene and add a Sprite2D node." Watch every action. Approve or interrupt as needed.
- Iterate with explicit instructions. Describe the exact menu path or node name you want. For example: "In the Scene dock, right-click and choose Add Child Node, then pick CharacterBody2D." Vague prompts lead to wandering clicks.
- Save and verify after each task. Ask Claude to press Ctrl+S (Cmd+S on macOS) and then check the result yourself in the editor. Keep your project under Git so you can revert anything unexpected.
Common Mistakes
The most frequent problem is running the setup on a machine holding personal or work data. Always sandbox first. Another is expecting Claude to understand Godot's UI from a single screenshot; the editor has dense docks and small icons, so zoom in and describe targets precisely. People also forget to relaunch Claude after editing the MCP config, so the server never loads. Finally, leaving Godot behind other windows means clicks land on the wrong app entirely.
Tips
Keep the Godot window at a fixed size and position so screenshots stay consistent. Use a project with a clear, simple scene tree at first. Ask Claude to narrate what it sees before acting, which surfaces misreads early. Prefer keyboard shortcuts over clicking tiny icons. Disable OS notifications and update popups during sessions. Save a snapshot of the VM before each larger experiment so recovery is instant.
Troubleshooting
If Claude reports no tools, the server process likely crashed: run the same command manually in a terminal and read the traceback. If screenshots are black, screen-recording permission is missing or the display is locked. If clicks land in the wrong place, check display scaling; high-DPI settings can offset coordinates, so set scaling to 100% temporarily. If Godot ignores keystrokes, click once inside the editor window first to give it focus. If actions are slow, reduce screenshot resolution or close other heavy apps. If the session becomes confused, stop it, restart Claude and Godot, and begin with a fresh, simple instruction.
Frequently Asked Questions
Is this officially supported by Godot?
No. Godot has no built-in Claude integration; this relies on a general computer-use MCP server driving the desktop.
Can Claude write GDScript for me this way?
It can type code into the script editor, but you should review every line. It is not a substitute for understanding the language.
Does it work on the Claude mobile app?
No. MCP servers connect through the desktop client, so use a computer.
Will it break my project?
It can, which is why you should work in a VM or on a copy under version control.
Can I use it for 3D scenes?
Yes, but 3D viewport navigation is harder to control reliably than 2D, so expect more manual correction.
Why does it keep clicking the wrong button?
Usually display scaling, overlapping windows, or a screenshot taken before the UI finished loading. Fix focus and scaling first.