Skip to main content
Glama

Godette

MCP server for Godot game development. Provides 45 tools for reading, analyzing, and editing Godot projects through the Model Context Protocol.

Features

  • Scene tools — traverse scene trees, find nodes by type/group/script, trace signal chains, query dependencies

  • Scene editing — add/remove nodes, connect/disconnect signals, manage groups, modify properties

  • Symbol tools — find and navigate GDScript symbols with LSP when available, regex parser as fallback

  • Symbol editing — replace function bodies, insert before/after symbols with hash-verified safety

  • Resource tools — find resources by type, inspect properties, trace cross-project references

  • File tools — Godot-enriched file reads (parsed symbols for .gd, scene structure for .tscn)

  • Runtime tools — run/stop scenes, capture game state, take screenshots, read console output (requires editor plugin)

  • Memory tools — persistent key-value memory for project context across sessions

Related MCP server: Godot MCP Pro

Prerequisites

  • Node.js >= 20

  • A Godot 4.x project

  • (Optional) Godot editor running for LSP support

  • (Optional) GDScript editor plugin for runtime tools

Installation

npm install godette

Or run directly:

npx godette

Usage

As an MCP server

Add to your MCP client configuration (e.g. Claude Desktop):

{
  "mcpServers": {
    "godette": {
      "command": "npx",
      "args": ["godette"],
      "env": {
        "GODOT_PROJECT": "/path/to/your/godot/project"
      }
    }
  }
}

The server auto-detects the Godot project root from the working directory or GODOT_PROJECT env var.

As a library

import { parseTscn, parseGdScript, UnifiedIndex, EventBus } from "godette";

// Parse a scene file
const scene = parseTscn(tscnSource, "/path/to/scene.tscn");
console.log(scene.rootType, scene.nodes.size);

// Parse a GDScript file
const script = parseGdScript(gdSource, "/path/to/script.gd");
console.log(script.className, script.functions.length);

Architecture

MCP Client (stdio)
    |
GodetteMcpServer
    |-- EventBus (typed async events)
    |-- ProjectDetector (finds project.godot)
    |-- FileWatcher (recursive fs.watch)
    |-- UnifiedIndex
    |     |-- SceneIndex
    |     |-- ScriptIndex
    |     |-- ResourceIndex
    |     |-- SignalGraph
    |     |-- GroupIndex / NodeTypeIndex
    |     '-- AutoloadIndex
    |-- ToolRegistry (45 tools, 8 categories)
    |-- Middleware (logging, timing, error handling)
    |-- LspClient (JSON-RPC, port 6005)
    '-- PluginClient (NDJSON, port 6006)

Key design decisions:

  • Parsers are pure functions with no side effects

  • Types are pure interfaces, barrel-exported from src/index.ts

  • UnifiedIndex uses lazy recomputation via DirtyTracker

  • TSCN parser is two-pass: tokenizer -> block parsers -> assembler

  • Serializer preserves raw formatting for unmodified blocks

Available Tools (45)

File (7)

read_file list_dir find_file replace_content create_file delete_lines insert_at_line

Scene (8)

get_scene_tree find_node find_signal_connections find_group_members get_scene_dependencies trace_signal_chain find_scene_instances get_node_properties

Scene Edit (8)

add_node remove_node modify_node_property connect_signal disconnect_signal add_to_group remove_from_group create_scene

Symbol (4)

find_symbol find_references get_symbols_overview rename_symbol

Symbol Edit (3)

replace_symbol_body insert_after_symbol insert_before_symbol

Resource (4)

find_resource get_resource_properties get_resource_references find_resources_of_type

Project (5)

get_project_settings get_input_map get_layer_names get_autoloads list_project_structure

Runtime (8)

run_project stop_project capture_state get_runtime_state get_signal_log screenshot get_console_output get_live_scene_tree

Memory (5)

read_memory write_memory search_memories list_memories delete_memory

Development

npm install          # Install dependencies
npm run build        # Compile TypeScript
npm test             # Run tests (vitest)
npm run test:watch   # Tests in watch mode
npm run lint         # ESLint
npm run format       # Prettier
npm run check        # Full CI check (typecheck + lint + test)

License

MIT

Available Tools

52 tools
add_nodeB

Add a new node as a child of an existing node in a .tscn scene file.

Inputs: scene (required), parent (required), type (required), name (required), +2 more.

add_to_groupC

Add a node to a group in a .tscn scene file.

Inputs: scene (required), nodePath (required), group (required), expectedHash.

capture_stateC

Capture a snapshot of the game state from the running project. Optionally specify a node path to narrow the capture.

Inputs: nodePath.

connect_signalC

Add a new signal connection between nodes in a .tscn scene file.

Inputs: scene (required), source (required), signal (required), target (required), +3 more.

create_fileC

Create a new file with the given content. Triggers index update.

Inputs: path (required), content (required).

create_sceneA

Create a brand new empty .tscn scene file with just a root node.

Inputs: path (required), rootType (required), rootName (required).

delete_linesB

Delete a range of lines from a file. Line numbers are 1-based.

Inputs: path (required), start (required), end (required).

disconnect_signalC

Remove a signal connection from a .tscn scene file.

Inputs: scene (required), source (required), signal (required), target (required), +2 more.

find_fileB

Find files by name pattern or extension in the project. Supports substring or regex matching.

Inputs: pattern (required), type, useRegex.

find_group_membersB

Find all nodes belonging to a specific group across all indexed scenes.

Inputs: group (required), maxResults.

find_nodeC

Find nodes across all indexed scenes by name, type, group, or attached script.

Inputs: name, type, group, script, +1 more.

find_referencesA

Find all references to a symbol at a given position. LSP-only (returns error without LSP). Falls back to text search.

Inputs: file (required), line (required), character.

find_resourceC

Find resources by type across the indexed project.

Inputs: type (required), maxResults.

find_resources_of_typeA

Alias for find_resource — find all resources of a given Godot type (e.g. all ShaderMaterials). Includes property names.

Inputs: type (required), maxResults.

find_scene_instancesB

Find all scenes that instance (use) a given scene, with parent node paths.

Inputs: scene (required), maxResults.

find_signal_connectionsA

Find all signal connections for a node in a scene, or all connections for a signal name across the project.

Inputs: scene, node, signal.

find_symbolA

Find symbols by name across the project. Uses LSP when available, regex parser as fallback. Results include a metadata.source field indicating whether LSP or regex was used. Report whether results came from LSP or regex fallback, as LSP provides more accurate signatures and locations.

Inputs: name (required), type, maxResults.

get_autoloadsB

Get all autoload singletons configured in the project.

Inputs: no named parameters.

get_configB

Get the current merged server configuration, including active context and mode.

Inputs: no named parameters.

get_console_outputC

Get console output from the running Godot project. Optionally filter by text or error level.

Inputs: filter, errorsOnly.

get_input_mapB

Get the project input action mappings.

Inputs: no named parameters.

get_layer_namesB

Get the named physics and render layers for the project.

Inputs: no named parameters.

get_live_scene_treeA

Get the live scene tree from the running Godot project, reflecting runtime-added/removed nodes. Returns compact structure (name/type/path) by default.

Inputs: includeProperties, maxDepth.

get_node_propertiesC

Get all properties on a specific node in a scene.

Inputs: scene (required), nodePath (required).

get_project_settingsB

Get the Godot project settings including name, version, and main scene.

Inputs: no named parameters.

get_resource_propertiesB

Get the properties and sub-resources of a .tres resource file.

Inputs: resource (required).

get_resource_referencesA

Find every scene and script that references a given resource.

Inputs: path (required).

get_runtime_stateB

Get the runtime state of a specific node path in the running scene tree.

Inputs: nodePath.

get_scene_dependenciesB

Get all external resources, instanced scenes, and script dependencies of a scene.

Inputs: scene (required).

get_scene_treeA

Get the scene tree structure of a .tscn file with node types, scripts, groups, and hierarchy.

Inputs: scene (required), depth, maxNodes.

get_signal_logA

Get the log of signals emitted during runtime (requires start_signal_logging first). Optionally filter by signal name or time.

Inputs: signal, since.

get_symbols_overviewA

Get the top-level symbol tree for a GDScript file: functions, signals, exports, enums, constants.

Inputs: file (required).

insert_after_symbolC

Insert content after a named symbol in a GDScript file.

Inputs: file (required), symbol (required), content (required), expectedHash.

insert_at_lineC

Insert content at a specific line number. Line number is 1-based.

Inputs: path (required), line (required), content (required).

insert_before_symbolC

Insert content before a named symbol in a GDScript file.

Inputs: file (required), symbol (required), content (required), expectedHash.

list_dirC

List files in a directory with Godot-aware file type indicators.

Inputs: path, recursive.

list_project_structureB

List all indexed scenes, scripts, and resources in the project.

Inputs: type.

modify_node_propertyC

Set or change a property value on a node in a .tscn scene file.

Inputs: scene (required), nodePath (required), property (required), value, +1 more.

onboardingC

Run the onboarding process to initialize .godette/ directory and index the project.

Inputs: force.

read_fileC

Read a file with Godot-enriched output. For .gd files, includes parsed symbols. For .tscn files, includes scene structure.

Inputs: path (required).

remove_from_groupC

Remove a node from a group in a .tscn scene file.

Inputs: scene (required), nodePath (required), group (required), expectedHash.

remove_nodeB

Remove a node and all its children from a .tscn scene file. Also removes associated signal connections.

Inputs: scene (required), nodePath (required), expectedHash.

rename_symbolA

Rename a symbol across the entire project using the language server. LSP-only — without LSP, fall back to find_symbol + replace_content and warn about potentially missed references in non-script files (.tscn signal connections, etc.).

Inputs: file (required), line (required), newName (required), character.

replace_contentC

Replace text content in a file and emit a file change event.

Inputs: path (required), search (required), replace (required), all.

replace_symbol_bodyA

Replace the entire body of a function or symbol in a GDScript file. Hash-verified to prevent stale edits.

Inputs: file (required), symbol (required), newBody (required), expectedHash.

rescaffold_pluginA

DEV: Delete addons/godette/ and re-scaffold the GDScript plugin files from current templates. Useful after changing onboarding templates.

Inputs: no named parameters.

run_projectB

Run a scene in the Godot editor. Optionally specify a scene path, enable the runtime harness, or watch specific nodes.

Inputs: scene, withHarness, watchNodes.

screenshotC

Take a screenshot of the running Godot project.

Inputs: withOverlay.

start_signal_loggingB

Start logging signal emissions on a node and its children. After starting, call get_signal_log to retrieve captured signals.

Inputs: node_path, recursive.

stop_projectA

Stop the currently running Godot project.

Inputs: no named parameters.

switch_modeA

Switch the active mode (planning, editing, debugging, interactive). This updates tool description hints and emits a config:mode-changed event.

Inputs: mode (required).

trace_signal_chainB

Trace a signal chain: emission → handlers → chained emissions → further handlers. Returns a graph.

Inputs: startSignal (required), startNode, maxDepth.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 52 tools

    Disambiguation4/5

    Most tools are clearly distinct by their target (scenes, nodes, resources, project config, runtime, files). However, there is some overlap between find_resource and find_resources_of_type (explicitly an alias), and read_file vs list_dir vs find_file could be confused for file browsing. Overall, the domains are well-separated.

    Naming Consistency4/5

    The naming convention is mostly verb_noun (e.g., get_scene_tree, find_node, create_scene, modify_node_property) with a few exceptions like onboarding, rescaffold_plugin (verb alone), and switch_mode. The verb choice is mostly consistent (get/find/create/insert/delete/modify) but there are mixed verb styles (add_node vs create_scene, remove_node vs delete_lines).

    Tool Count3/5

    With 52 tools, the server is on the heavy side, even for a comprehensive Godot IDE integration. While many tools are domain-appropriate screens, resources, file editing, runtime—the count is excessive and may overwhelm an agent. It could be trimmed to ~30-40 by consolidating overlapping operations (e.g., find_resource/find_resources_of_type, insert_after_symbol/insert_before_symbol).

    Completeness5/5

    The tool surface is impressively complete for the stated purpose: it covers static scene/resource inspection, file manipulation, symbol-level code editing, project configuration, and runtime control/debugging (run, stop, state capture, screenshot, console). It even includes signal tracing and mode switching. No major dead ends or missing lifecycle operations are apparent.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers