# Godot MCP

> Control Godot 4 projects through MCP.

- **URL**: https://followmcp.com/en/servers/tugcantopaloglu-godot-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 552
- **FMRS Score**: 47/100 (Grade D)
- **Source**: https://github.com/tugcantopaloglu/godot-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+, Prebuilt binary
- **Auth**: No credential needed

## Overview
Godot MCP is a TypeScript MCP server that gives AI assistants project management, scene editing, and runtime control for Godot 4.x. Its README lists 159 tools covering GDScript and C#/.NET project creation, script diagnostics, 2D/3D systems, UI, audio, animation, physics, networking, file operations, and game debugging. The project says it has been tested with Godot 4.7; the manifest declares stdio transport.

## Best for
- Godot 4.x developers who want to automate development and debugging through an MCP-capable AI client.
- Teams working with GDScript or Godot .NET/C# projects.

## Not for
- Projects that do not use Godot or users seeking control of another game engine.
- Users without a local Godot execution environment who expect the server to host the engine for them.

## Required permissions
- Needs access to selected Godot project files to read, create, modify, or delete scenes, scripts, settings, resources, and other files.
- Running, importing, or exporting projects requires invoking local Godot; C# project features also need the .NET SDK and Godot .NET build.
- The runtime bridge uses a TCP loopback connection; when registered manually it listens on 127.0.0.1:9090.
- GODOT_MCP_ALLOWED_DIRS can restrict project operations, discovery, and export destinations to specified roots.

## Risks
- The README says game_eval and generated scripts run with the Godot process account's permissions; untrusted code may access anything that account can access.
- File tools can create, overwrite, or delete project files; runtime tools can also call arbitrary node methods and change game state.
- The README says any project root is allowed when GODOT_MCP_ALLOWED_DIRS is unset.

## Client config (JSON)
```json
{
  "mcpServers": {
    "godot": {
      "command": "node",
      "args": ["/absolute/path/to/godot-mcp/build/index.js"],
      "env": {
        "GODOT_PATH": "/path/to/godot",
        "DEBUG": "true"
      }
    }
  }
}
```

## Tools (100)
- `launch_editor`: Launch the Godot editor for a project.
- `run_project`: Run a Godot project and capture output, optionally headless.
- `stop_project`: Stop the running project.
- `get_debug_output`: Get console output and errors.
- `get_godot_version`: Get the installed Godot version.
- `import_project_assets`: Import project assets with the headless editor and refresh its cache.
- `list_projects`: Find Godot projects in a directory.
- `get_project_info`: Get project metadata.
- `create_scene`: Create a scene with the specified root node type.
- `add_node`: Add a node to an existing scene.
- `load_sprite`: Load a texture into a Sprite2D node.
- `export_mesh_library`: Export a scene as a MeshLibrary.
- `save_scene`: Save a scene, optionally to a variant path.
- `get_uid`: Read a resource UID from its header, script sidecar, or import metadata.
- `update_project_uids`: Import a project, verify UID sidecars, resave scenes, and assign UIDs to text resources missing them.
- `read_scene`: Read the full scene tree as JSON.
- `modify_scene_node`: Modify node properties in a scene file.
- `remove_scene_node`: Remove a node from a scene file.
- `attach_script`: Attach a GDScript to a scene node.
- `create_resource`: Create a .tres resource file.
- `read_project_settings`: Parse project.godot as JSON.
- `modify_project_settings`: Change a project setting.
- `list_project_files`: List or filter project files.
- `search_project_text`: Find literal text in project source files and return matching lines.
- `game_screenshot`: Capture a screenshot and return it as a base64 PNG.
- `game_click`: Click at a position.
- `game_key_press`: Send a key press or input action.
- `game_mouse_move`: Move the mouse.
- `game_get_ui`: Get all visible UI elements.
- `game_get_scene_tree`: Get the full scene tree structure.
- `game_get_node_info`: Inspect node details.
- `game_eval`: Execute GDScript and return its result.
- `game_get_property`: Get any node property.
- `game_set_property`: Set a node property with automatic type conversion.
- `game_call_method`: Call a node method with arguments.
- `game_instantiate_scene`: Add a PackedScene to the running tree.
- `game_remove_node`: Remove a node from the tree.
- `game_change_scene`: Switch to another scene.
- `game_reparent_node`: Move a node under a new parent.
- `game_connect_signal`: Connect a signal to a method.
- `game_disconnect_signal`: Disconnect a signal.
- `game_emit_signal`: Emit a signal with arguments.
- `game_list_signals`: List a node's signals and their connections.
- `game_await_signal`: Wait for a signal and return its arguments, with a timeout.
- `game_play_animation`: Control AnimationPlayer.
- `game_tween_property`: Tween a property with easing.
- `game_pause`: Pause or unpause the game.
- `game_performance`: Get metrics such as FPS, memory, and draw calls.
- `game_wait`: Wait for a specified number of frames.
- `game_get_nodes_in_group`: Query nodes in a group.
- `game_find_nodes_by_class`: Find nodes by class.
- `read_file`: Read a text file or line range from a Godot project.
- `write_file`: Create or overwrite a text file.
- `delete_file`: Delete a file in a project.
- `create_directory`: Create a directory in a project.
- `game_get_errors`: Get new errors and warnings since the previous call.
- `game_get_logs`: Get new print output since the previous call.
- `game_key_hold`: Hold a key down without automatic release.
- `game_key_release`: Release a held key.
- `game_scroll`: Send a mouse wheel event.
- `game_mouse_drag`: Drag between two points over multiple frames.
- `game_gamepad`: Send gamepad button or axis input.
- `game_touch`: Simulate touch press, release, drag, and gestures.
- `game_input_state`: Query pressed keys, mouse position, and connected pads.
- `game_input_action`: Manage runtime InputMap actions and strength.
- `create_project`: Create a Godot project, including C# projects with the dotnet option.
- `create_csharp_script`: Create a C# script in a Godot .NET project.
- `manage_autoloads`: Add, remove, or list autoloads.
- `manage_input_map`: Add, remove, or list input actions.
- `manage_export_presets`: Create or modify export presets.
- `game_get_camera`: Get the active camera's position, rotation, or zoom.
- `game_set_camera`: Move or rotate the active camera.
- `game_raycast`: Cast a ray and return collision results.
- `game_get_audio`: Get the audio bus layout and playing streams.
- `game_spawn_node`: Create a node of any type at runtime with properties.
- `game_set_shader_param`: Set a shader parameter on a node's material.
- `game_audio_play`: Play, stop, or pause an AudioStreamPlayer node.
- `game_audio_bus`: Set an audio bus's volume, mute, or solo state.
- `game_navigate_path`: Query a navigation path between two points.
- `game_tilemap`: Get or set TileMapLayer cells.
- `game_add_collision`: Add a collision shape to a physics body node.
- `game_environment`: Get or set environment and post-processing settings.
- `game_manage_group`: Add or remove a node from a group, or list groups.
- `game_create_timer`: Create a configured Timer node.
- `game_set_particles`: Configure GPUParticles2D/3D node properties.
- `game_create_animation`: Create an animation with tracks and keyframes.
- `game_serialize_state`: Save or load node tree state as JSON.
- `game_physics_body`: Configure physics body properties such as mass and velocity.
- `game_create_joint`: Create a joint between two physics bodies.
- `game_bone_pose`: Get or set bone poses on a Skeleton3D node.
- `game_ui_theme`: Apply theme overrides to a Control node.
- `game_viewport`: Create or configure a SubViewport node.
- `game_debug_draw`: Draw 3D debug lines, spheres, or boxes.
- `export_project`: Export a Godot project using a preset.
- `game_http_request`: Make HTTP GET/POST/PUT/DELETE requests with headers and a body.
- `game_websocket`: Connect or disconnect a WebSocket client and send messages.
- `game_multiplayer`: Create or disconnect an ENet multiplayer server or client.
- `game_rpc`: Call or configure RPC methods on nodes.
- `game_script`: Attach, detach, or get node script source at runtime.
- `game_window`: Get or set window size, fullscreen state, title, and position.
