Godot MCP logo

Godot MCP

Community
tomyud1

MCP Server and Godot Plugin for AI-assisted game development

Publishertomyud1
Repositorygodot-mcp
LanguageGDScript
Forks
50
Stars
434
Available tools
36
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Godot MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 36 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    434 stars and 50 forks from the linked repository.

Godot MCP

Give your AI assistant full access to the Godot editor.

Build games faster with Claude, Cursor, or any MCP-compatible AI — no copy-pasting, no context switching. AI reads, writes, and manipulates your scenes, scripts, nodes, and project settings directly.

Godot 4.x · 75 tools · Undo/redo · Interactive project visualizer · MIT license


Quick Start

0. Install Node.js (one-time setup)

Download and run the installer from nodejs.org (LTS version). It's a standard installer — no terminal needed.

1. Install the Godot plugin

Inside the Godot editor, click the AssetLib tab at the top → search "mcp" → find "Godot AI Assistant tools MCP" → Install.

Then go to Project → Project Settings → Plugins and enable the Godot MCP plugin.

2. Add the server config to your AI client

Claude Desktop — Settings → Developer → Edit Config → open the config file and paste:

Mac / Linux:

json
{
  "mcpServers": {
    "godot": {
      "command": "npx",
      "args": ["-y", "godot-mcp-server"]
    }
  }
}

Windows:

json
{
  "mcpServers": {
    "godot": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "godot-mcp-server"]
    }
  }
}

Cursor — Settings → MCP → Add Server:

Mac / Linux:

json
{
  "mcpServers": {
    "godot": {
      "command": "npx",
      "args": ["-y", "godot-mcp-server"]
    }
  }
}

Windows:

json
{
  "mcpServers": {
    "godot": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "godot-mcp-server"]
    }
  }
}

Claude Code — run in terminal:

bash
claude mcp add godot -- npx -y godot-mcp-server

Works with any MCP-compatible client (Cline, Windsurf, etc.)

3. Restart your AI client

Close and reopen Claude Desktop / Cursor / your client so it picks up the new config.

4. Restart your Godot project

Hit Restart Project in the Godot editor. Check the top-right corner — you should see MCP Connected in green. You're ready to go.


What Can It Do?

42 Tools Across 6 Categories

CategoryToolsExamples
File Operations4Browse directories, read files, search project, create scripts
Scene Operations11Create scenes, add/remove/move nodes, set properties, attach scripts, assign collision shapes and textures
Script Operations6Apply code edits, validate syntax, rename/move files with reference updates
Project Tools14Run/stop scenes, query ClassDB, read errors from Output + Debugger, project settings, input map, collision layers, scene tree dumps, rescan filesystem
Asset Generation1Generate 2D sprites from SVG
Visualization6Interactive browser-based project map, scene graph explorer

Interactive Visualizer

Run map_project and get a browser-based explorer at localhost:6510:

  • Force-directed graph of all scripts and their relationships
  • Click any script to see variables, functions, signals, and connections
  • Edit code directly in the visualizer — changes sync to Godot in real time
  • Scene view with node property editing
  • Find usages before refactoring

Limitations

AI cannot create 100% of a game by itself — it struggles with complex UI layouts, compositing scenes, and some node property manipulation. It's still in active development, so feedback is very welcome!


Architecture

┌─────────────┐    MCP (stdio)   ┌──────────────┐   WebSocket   ┌──────────────┐
│  AI Client  │◄────────────────►│  MCP Server  │◄─────────────►│ Godot Editor │
│  (Claude,   │                  │  (Node.js)   │   port 6505   │  (Plugin)    │
│   Cursor)   │                  │              │               │              │
└─────────────┘                  │  Visualizer  │               │  42 tool     │
                                 │  HTTP :6510  │               │  handlers    │
                                 └──────┬───────┘               └──────────────┘
                                        │
                                 ┌──────▼───────┐
                                 │   Browser    │
                                 │  Visualizer  │
                                 └──────────────┘

Current Limitations

  • Local only — runs on localhost, no remote connections
  • One Godot editor at a time — multiple AI clients can connect concurrently, but they all share a single Godot instance
  • Ctrl+Z does not reach AI changes — the plugin writes to disk rather than the editor's live tree, so Godot's native undo has nothing to revert. Use the mcp_undo tool instead (ask the agent to undo).
  • AI is still limited in Godot knowledge — it can't create 100% of the game alone, but it can help debug, write scripts, and tag along for the journey

Development

To build from source instead of using npm:

bash
cd mcp-server
npm install
npm run build

Then point your AI client at mcp-server/dist/index.js instead of using npx.


Release notes

Narrative write-ups of each release live in release-notes/ (latest: v0.6.0). For the full change history, see CHANGELOG.md.


License

MIT


Star History


npm package · Report Issues

Installation

TypingMind
{
  "mcpServers": {
    "tomyud1-godot-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "godot-mcp-server"
      ]
    }
  }
}

Available Tools

  • get_godot_status

    Check if Godot editor is connected to the MCP server. Use this before attempting Godot operations to see if you'll get real or mock data.

  • list_dir

    List files and folders under a Godot project path (e.g., res://). Returns arrays of files and folders in the specified directory.

  • read_file

    Read a text file from the Godot project, optionally a specific line range. Useful for reading GDScript files, scene files, or any text-based content.

  • search_project

    Search the Godot project for a substring and return file hits with line numbers. Useful for finding usages of functions, variables, or any text pattern.

  • create_script

    Create a NEW GDScript file (.gd) that does not exist yet. Use this for creating new scripts, NOT for editing existing files (use apply_diff_preview for edits).

  • create_scene

    Create a new Godot scene (.tscn) file with nodes. Use this to create player scenes, UI screens, game objects, etc.

  • read_scene

    Read and parse a scene file to get its full node structure and properties. Use this to understand a scene before editing.

  • add_node

    Add a single node to an existing scene file.

  • remove_node

    Remove a node from an existing scene file.

  • modify_node_property

    Modify a property on a node in a .tscn scene file. ALWAYS use this tool to modify properties in scene files - NEVER edit .tscn files directly. Use this to change positions, colors, sizes, visibility, etc.

  • rename_node

    Rename a node in a scene.

  • move_node

    Move a node to a different parent in a scene and optionally control its position among siblings.

  • attach_script

    Attach or change a script on a node in a scene.

  • detach_script

    Remove a script from a node in a scene.

  • set_collision_shape

    Create and assign a collision shape resource to a CollisionShape2D or CollisionShape3D node. Supports: CircleShape2D, RectangleShape2D, CapsuleShape2D, SphereShape3D, BoxShape3D, etc.

  • set_sprite_texture

    Assign a texture to a Sprite2D/Sprite3D/TextureRect node. Use after generate_2d_asset or to load existing images.

  • apply_diff_preview

    Apply a SMALL, SURGICAL code edit (1-10 lines) to GDScript files. Auto-applies changes. For large changes, call multiple times. ONLY for .gd files - NEVER for .tscn scene files.

  • validate_script

    Validate a GDScript file for syntax errors using Godot's built-in parser. Call after creating or modifying scripts to ensure they are error-free.

  • create_folder

    Create a directory (with parent directories if needed).

  • delete_file

    Delete a file permanently. ONLY use when explicitly requested. NEVER use to "edit" a file.

  • rename_file

    Rename or move a file, optionally updating references in other files.

  • list_scripts

    List all GDScript files in the project with basic metadata.

  • get_project_settings

    Concise project settings summary: main_scene, window size/stretch, physics tick rate, and render basics.

  • get_input_map

    Return the InputMap: action names mapped to events (keys, mouse, gamepad).

  • get_collision_layers

    Return named 2D/3D physics collision layers from ProjectSettings.

  • get_node_properties

    Get available properties for a Godot node type. Use this to discover what properties exist on a node type (e.g., anchors_preset for Control, position for Node2D).

  • get_console_log

    Return the latest lines from the Godot editor output log.

  • get_errors

    Get ONLY errors from the Godot console with file paths and line numbers. More reliable than get_console_log for finding errors.

  • clear_console_log

    Clear the persisted Godot editor output log.

  • open_in_godot

    Open a file in the Godot editor at a specific line (side-effect only).

  • scene_tree_dump

    Dump the current running scene tree (names and structure).

  • generate_2d_asset

    Generate a 2D sprite/texture from SVG code and save as PNG. Use for custom visuals (characters, objects, backgrounds, UI). Returns resource_path and dimensions.

  • search_comfyui_nodes

    Search the ComfyUI node library (10,514+ nodes) to discover nodes for building custom workflows.

  • inspect_runninghub_workflow

    Inspect a RunningHub workflow to discover customizable parameters before execution. ALWAYS use before customize_and_run_workflow.

  • customize_and_run_workflow

    Run a RunningHub workflow to generate assets. Inspect first, then customize node_inputs to control generation.

  • map_project

    Crawl the entire Godot project and build an interactive visual map of all scripts showing their structure (variables, functions, signals), connections (extends, preloads, signal connections), and descriptions. Opens an interactive browser-based visualization.

Use Godot MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Godot MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Godot MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Godot MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "tomyud1-godot-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "godot-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Godot MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Godot MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Godot MCP to help me with this task?
Godot MCP
Sure. I read it.
Here is what I found using Godot MCP.

Frequently asked questions

What is the Godot MCP MCP server used for?

Godot MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Godot MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Godot MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Godot MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Godot MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Godot MCP MCP to TypingMind?

Godot MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Godot MCP MCP provide in TypingMind?

Godot MCP exposes 36 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Godot MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Godot MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇