godot-mcp-tool

v0.3.0
godot-mcp-tool Checked 4 days ago Published 16 days ago

MCP server that connects Claude Code to the Godot editor

The MCP server and command-line tool of Godot MCP Tool. With it, Claude Code makes Godot 4 games through the Godot editor: it builds scenes that Ctrl+Z can undo, writes and checks GDScript, runs the game, plays input into it and reads its errors with stack traces. You need Godot 4.7 or newer, Node.js 22 or newer and Claude Code. 1. Install the editor addon into your Godot project. In the project folder, with the editor closed, run:

Summary extracted from the README.

godot-mcp-tool

The MCP server and command-line tool of Godot MCP Tool. With it, Claude Code makes Godot 4 games through the Godot editor: it builds scenes that Ctrl+Z can undo, writes and checks GDScript, runs the game, plays input into it and reads its errors with stack traces.

An arena with walls and a ramp from four angles, as Claude sees it through editor_screenshot

You need Godot 4.7 or newer, Node.js 22 or newer and Claude Code.

Quick start

  1. Install the editor addon into your Godot project. In the project folder, with the editor closed, run:

    npx godot-mcp-tool install-addon
    
  2. Connect Claude Code. The Claude Code plugin is the best way: it also checks every GDScript file Claude writes.

    claude plugin marketplace add facelessdiplomat/godot-mcp-tool
    claude plugin install godot@godot-mcp-tool
    

    Without the plugin, add the server to the project:

    claude mcp add --scope project godot -- npx -y godot-mcp-tool
    
  3. Open the project in Godot, start claude in the project folder and ask: "Check the Godot connection."

Commands

godot-mcp-tool                         Run the MCP server; Claude Code starts it
godot-mcp-tool install-addon [folder]  Copy the addon into the Godot project and enable its plugin
godot-mcp-tool update-addon [folder]   Replace the addon of the project with the version of this package
godot-mcp-tool doctor [folder]         Check Node.js, Godot, the addon, the plugin and the connection to the editor
godot-mcp-tool check-edited-script     Check the .gd file of a Claude Code hook input; the plugin's hook runs it
godot-mcp-tool check-scene-edit        Deny a text edit of a scene while the editor is open; the plugin's hook runs it

The folder is the Godot project: by default GODOT_PROJECT_PATH, or the current folder or the nearest folder above it that has a project.godot, or else the one project in the folders up to three levels below it.

Documentation

  • Setup guide: installing, connecting, settings and troubleshooting.
  • Usage guide: example requests, safety and limitations.
  • Tool reference: every tool with its parameters.
  • Security: how to report a problem and how the tool protects your project.

License

MIT