io.github.sterion66/godot
Allows browsing and discovering Godot repositories on GitHub for asset and project discovery.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.sterion66/godot Create a new 2D platformer project with a CharacterBody2D player script"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Godot MCP Server
A comprehensive FastMCP server for Godot 4.x game development. Provides tooling for AI-assisted workflows: project management, file operations, asset discovery, GDScript development, and optional Godot execution.
Security model: All Godot projects, file writes, and Asset Library downloads are restricted to a single workspace directory on your machine (default ~/godot-games). The server refuses paths outside that tree. See Workspace setup.
Code execution: godot_run_game and godot_execute_script require GODOT_MCP_ALLOW_GODOT_EXEC in the server environment. The shipped MCP JSON configs set it to 1 so these tools work after copy-paste. Running python godot_mcp_server.py without that env still leaves execution off until you export it. To lock down an IDE install, remove the variable or set it to 0. See Godot execution (environment).
HTTP transport: Binding to 0.0.0.0 or :: exposes the MCP server on all network interfaces; prefer 127.0.0.1 unless you use a firewall or VPN.
Symlinks: GODOT_MCP_ROOT is resolved with symlinks followed; point it at a real directory you control.
Features
Project Management
Auto-detect Godot projects (
project.godot); list all projects under the workspace (godot_list_projects)Create new projects under the workspace (
godot_create_project)Parse project settings and configuration; list autoloads and editor plugin state (read-only for plugins)
Refresh project cache after changes
File Operations
Read/write scenes (
.tscn), scripts (.gd), resources (.tres)Create new scripts, scenes, resources from templates
Edit existing files with content replacement
Validate scene and script syntax
Code Generation
CharacterBody2D/3D movement controllers
State machine patterns
Custom resources
Node scripts with signals/exports
Asset Management
Discover assets by extension, pattern, glob
Find unused assets
Search file contents with regex
Search & download from Godot Asset Library
Browse Godot repos on GitHub
Runtime Integration
Find Godot executable
Check Godot version
Run game headless
Execute GDScript code
Read Godot logs
File watcher configuration
Related MCP server: Godot MCP Server
Installation
# From PyPI-style editable install (recommended for contributors)
pip install -e .
# Or minimal deps only
pip install -r requirements.txtConsole entry point (after pip install -e .): godot-mcp-server (same as python godot_mcp_server.py).
Workspace setup (required)
The MCP server only operates on Godot projects that live under one root folder. This keeps assistants from reading or writing arbitrary paths on your system.
Create the default folder (once per machine):
mkdir -p ~/godot-gamesPut every Godot game there — each game is its own subdirectory containing
project.godot, for example:~/godot-games/ my-platformer/ ← open this folder in your editor project.godot ... another-game/ project.godotOpen your IDE workspace inside
~/godot-games/.../your-game(or a parent folder under~/godot-games) so the MCP process can discoverproject.godotfrom the current working directory.Custom location: Set an absolute path before starting the server:
export GODOT_MCP_ROOT="/path/to/your/godot-games" python godot_mcp_server.pyIn Cursor / Claude / other MCP configs, add
env:"env": { "GODOT_MCP_ROOT": "/path/to/your/godot-games" }If unset, the default is
$HOME/godot-games. The server creates that directory on startup if it does not exist.Inspect at runtime: call the tool
godot_get_workspaceor read the resourceproject://workspaceto see the active workspace path.
If tools report that no project was found, your cwd is probably outside the workspace, or project_path points outside GODOT_MCP_ROOT.
Godot execution (environment)
Running the game or executing GDScript runs code as your user (same as starting Godot from a terminal). The server only enables godot_run_game / godot_execute_script when GODOT_MCP_ALLOW_GODOT_EXEC is set to an accepted “on” value.
Shipped configs (default yes): every example JSON in this repo (mcp_config.json, mcp_config.cursor.json, etc.) includes:
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
}So if you copy one of those into your IDE, execution is allowed without extra steps. Merge other keys (e.g. GODOT_MCP_ROOT) into the same env object.
CLI without MCP config: running python godot_mcp_server.py does not set this variable; execution tools stay blocked until you export GODOT_MCP_ALLOW_GODOT_EXEC=1 (or use a wrapper script).
Stricter setups: delete GODOT_MCP_ALLOW_GODOT_EXEC from env, or set it to 0 / false / no / off, then restart the MCP client.
Accepted “on” values: 1, true, yes, on (case-insensitive). Call godot_get_workspace and check godot_exec_allowed to confirm.
Usage
CLI (stdio - for Claude Code/Cursor)
python godot_mcp_server.pyHTTP Server
python godot_mcp_server.py --transport http --port 8765Configuration
Set GODOT_MCP_ROOT in the MCP server env if you do not use the default ~/godot-games. See Workspace setup. Shipped snippets below include GODOT_MCP_ALLOW_GODOT_EXEC; see Godot execution (environment).
Path to the server: Examples use "args": ["godot_mcp_server.py"] assuming the MCP process runs with its working directory at the folder that contains the script (e.g. you cloned this repo). If the server fails to start, replace that with the absolute path to godot_mcp_server.py on your machine.
Install in your editor
Expand a section and paste the JSON into the file your tool expects. The same godot server block is in the repo as mcp_config.*.json for copy-paste.
macOS / Linux (project or user config) — Settings → MCP → Add new global MCP server or create .cursor/mcp.json in a project root:
{
"mcpServers": {
"godot": {
"command": "python3",
"args": ["godot_mcp_server.py"],
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
}
}
}
}Windows — if python is not on PATH for the MCP host, use the launcher or full path to python.exe, and prefer an absolute path in args:
{
"mcpServers": {
"godot": {
"command": "cmd",
"args": ["/c", "python", "C:\\path\\to\\godot-mcp-server\\godot_mcp_server.py"],
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
}
}
}
}Merge GODOT_MCP_ROOT into env if you do not use ~/godot-games (see Workspace setup).
Use the MCP / agent settings your VS Code build provides (often Settings → MCP or a project .vscode/mcp.json, depending on version and extensions). Paste the same structure as Cursor:
{
"mcpServers": {
"godot": {
"command": "python3",
"args": ["godot_mcp_server.py"],
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
}
}
}
}Use an absolute path in args if the workspace folder is not the repo root.
Edit the app config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"godot": {
"command": "python3",
"args": ["/absolute/path/to/godot_mcp_server.py"],
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
}
}
}
}Restart Claude Desktop after saving.
Merge into ~/.claude/settings.json (or use claude mcp add if your CLI supports it — check claude mcp --help):
{
"mcpServers": {
"godot": {
"command": "python3",
"args": ["godot_mcp_server.py"],
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
},
"description": "Godot 4.x game development server"
}
}
}macOS / Linux: edit ~/.codeium/windsurf/mcp_config.json, or use CMD+SHIFT+P → “Windsurf: Configure MCP Servers”.
{
"mcpServers": {
"godot": {
"command": "python3",
"args": ["godot_mcp_server.py"],
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
},
"description": "Godot 4.x game development - project, scenes, scripts, assets, runtime"
}
}
}Paste into Roo’s MCP settings (project or global), same JSON shape as above. Repo copy: roo_code_mcp.json.
{
"mcpServers": {
"godot": {
"command": "python3",
"args": ["godot_mcp_server.py"],
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
},
"description": "Godot 4.x game dev - project, scenes, scripts, assets, runtime"
}
}
}Minimal stdio config — same as mcp_config.json in this repo:
{
"mcpServers": {
"godot": {
"command": "python3",
"args": ["godot_mcp_server.py"],
"env": {
"GODOT_MCP_ALLOW_GODOT_EXEC": "1"
},
"description": "Godot 4.x game development server - file ops, asset management, runtime integration"
}
}
}Limits (DoS / abuse)
Regex search (
godot_search_content): Pattern length capped; match list capped; files larger than 2 MiB are skipped. Malicious regex can still be expensive—keep patterns simple.Asset zip download: Maximum download size, per-file uncompressed size, total uncompressed size, and file count are enforced before extraction (see constants near the top of
godot_mcp_server.py).Asset Library IDs:
asset_idforgodot_get_asset_info/godot_download_assetmust be numeric digits only.
HTTP Mode (Remote)
Use loopback unless you know what you are doing:
python godot_mcp_server.py --transport http --host 127.0.0.1 --port 8765Binding to all interfaces (--host 0.0.0.0) logs a warning and exposes MCP to your LAN with no authentication in this server.
Then use serverUrl instead of command:
{
"mcpServers": {
"godot": {
"serverUrl": "http://localhost:8765/mcp"
}
}
}Only run one transport to the same project (stdio or HTTP), not both at once, to avoid conflicting MCP sessions.
Tools Reference
40 MCP tools are registered in godot_mcp_server.py (search for @mcp.tool). Summary:
Tool | Description |
| Show MCP sandbox directory ( |
| Locate project root (walk-up or workspace scan) |
| List every |
| Create |
| Get project details |
| Parse project.godot (includes |
| List all project files |
| Rescan scenes/scripts/resources counts |
| List |
| List |
| List |
| List autoload singletons |
| Installed addons vs enabled in project.godot (enable plugins in the Godot editor) |
| Find by extension |
| Find unreferenced assets |
| Glob pattern search |
| Regex search in files |
| Create new GDScript |
| Create new scene |
| Create new resource |
| Template scripts |
| Parse scene file |
| Parse GDScript |
| Validate scene |
| Validate syntax |
| Replace content |
| Write file |
| File metadata |
| Locate Godot |
| Godot version |
| Run headless |
| Run GDScript |
| Read logs |
| Configure watcher |
| Node type hints |
| Generate UID |
| Search Asset Library |
| Asset details |
| Download / extract asset (promotes nested |
| Search GitHub |
Editor plugins: this server does not write [editor_plugins] in project.godot (avoids conflicting with an open editor). Install addons via tools above; the user enables plugins in Project Settings → Plugins in Godot; use godot_list_editor_plugins to verify.
Resources
Resource | URI | Description |
Project Info |
| Basic project info |
Project Overview |
| File counts |
Workspace |
| MCP sandbox path ( |
Runtime |
| Godot version + workspace path |
Examples
Create a Platformer Player
# Using template
create_code_template("character_body_2d", "Player")Find Assets
# All PNG files
find_assets([".png", ".jpg"])
# Unused assets
find_unused_files()Search Asset Library
search_assetlib("platformer")
# => [{title: "PlatformerController2D", ...}]
get_asset_info("1062")
# => {title, author, description, license, download_url}Run Game Headless
Requires GODOT_MCP_ALLOW_GODOT_EXEC (included in the shipped MCP JSON configs).
run_game(headless=True, quit_after_seconds=30)Requirements
Python 3.10+
Dependencies:
fastmcp,urllib3(seepyproject.toml)
Development
pip install -e ".[dev]"
ruff check godot_mcp_server.py tests
pytestContinuous integration runs on Python 3.10–3.14 (see .github/workflows/ci.yml). Dependabot opens weekly PRs for pip and GitHub Actions.
Optional: pip install pre-commit && pre-commit install uses .pre-commit-config.yaml.
Publish to GitHub
Create an empty repository on GitHub (no README/license if you already have them locally), e.g.
godot-mcp-server.Add the remote and push:
cd /path/to/godot-mcp-server
git remote add origin https://github.com/YOUR_USER/godot-mcp-server.git
git push -u origin mainOr with GitHub CLI: gh repo create godot-mcp-server --public --source=. --remote=origin --push
After the first push, CI runs on every push and PR. Replace sterion66 in the README badge URLs if you use a different account or organization.
License
Available Tools
40 toolsgodot_browse_githubBrowse Godot GitHubBRead-only
Search for Godot-related repositories on GitHub.
Inputs: query (required), sort, repo_type. Returns: object
godot_check_versionCheck Godot VersionBRead-only
Check the Godot version.
Inputs: godot_path. Returns: object
godot_create_code_templateCreate Code TemplateB
Create code from a template.
Template types:
character_body_2d: CharacterBody2D script
character_body_3d: CharacterBody3D script
node: Basic node script
resource: Custom resource script
state_machine: State machine script
Inputs: name (required), template_type (required), project_path. Returns: result
godot_create_projectCreate Godot ProjectA
Create a Godot project under the MCP workspace: writes project.godot and a starter .tscn (what the Project Manager also creates on disk). When run_godot_import is true and GODOT_MCP_ALLOW_GODOT_EXEC=1, runs the Godot editor in headless import mode (--import) so the .godot/ cache folder exists and resources are processed—this is the engine's own initialization step; there is no separate "create project" binary in Godot.
Inputs: relative_path (required), godot_path, main_scene, display_name, +4 more. Returns: object
godot_create_resourceCreate ResourceC
Create a new resource file.
Inputs: resource_type (required), properties, project_path, resource_name. Returns: result
godot_create_sceneCreate SceneC
Create a new scene file.
Inputs: root_name (required), root_type (required), resources, child_nodes, +1 more. Returns: result
godot_create_scriptCreate GDScriptC
Create a new GDScript file.
Inputs: class_name (required), exports, extends, signals, +3 more. Returns: result
godot_download_assetDownload AssetA
Download an asset from the Asset Library.
Zip archives are extracted under the project, then any nested .../addons// (with plugin.cfg) is moved to project_root/addons// so res://addons// matches Godot. Editor plugins must be enabled by the user in Project Settings → Plugins (verify with godot_list_editor_plugins).
Inputs: asset_id (required), project_path, download_path. Returns: object
godot_edit_fileEdit Godot FileB
Edit a Godot file by replacing content.
Inputs: file_path (required), new_content (required), old_content (required), project_path. Returns: result
godot_execute_scriptExecute GDScriptC
Execute a GDScript in the Godot project context.
Inputs: script_content (required), godot_path, project_path. Returns: object
godot_find_assetsFind AssetsARead-only
Find assets by extension.
Inputs: extensions (required), relative, project_path. Returns: result
godot_find_by_patternFind Files by PatternC
Find files matching a pattern.
Inputs: pattern (required), project_path. Returns: result
godot_find_godot_executableFind Godot ExecutableARead-only
Find the Godot executable on the system.
Resolution order when GODOT_EXECUTABLE is unset: macOS: glob (where readable), Spotlight mdfind, find(1) under Applications, then directory scan, then PATH. Windows: where.exe for godot.exe / Godot.exe, then Downloads glob, then directory scan, then PATH. Linux: Downloads / portable names, directory scan, then PATH.
Returns: Dictionary with executable path and version info
Inputs: no named parameters. Returns: object
godot_find_projectFind Godot ProjectARead-only
Find the Godot project root by searching for project.godot.
Inputs: path. Returns: result
godot_find_unused_filesFind Unused FilesARead-only
Find files that may not be referenced in scenes or scripts.
Inputs: project_path. Returns: object
godot_generate_uidGenerate UIDARead-only
Generate a unique ID for Godot resources.
Returns: A unique ID string
Inputs: no named parameters. Returns: result
godot_get_asset_infoGet Asset DetailsBRead-only
Get detailed information about an asset.
Inputs: asset_id (required). Returns: object
godot_get_file_infoGet File InfoCRead-only
Get information about a file.
Inputs: file_path (required), project_path. Returns: object
godot_get_logGet Godot LogBRead-only
Get recent Godot log entries.
Inputs: lines, project_path. Returns: object
godot_get_node_infoGet Node Type InfoBRead-only
Get information about a Godot node type.
Inputs: node_type (required). Returns: object
godot_get_project_filesGet All Project FilesCRead-only
Get all files in the project.
Inputs: project_path, include_assets. Returns: object
godot_get_project_infoGet Project InfoBRead-only
Get detailed information about the Godot project.
Inputs: project_path. Returns: object
godot_get_project_settingsGet Project SettingsARead-only
Get project settings from project.godot (read-only).
editor_plugins_enabled lists res:// paths from [editor_plugins]; the user toggles plugins in the Godot editor — MCP does not write that section.
Inputs: project_path. Returns: object
godot_get_workspaceGet MCP workspace rootARead-only
Return the sandbox directory for this server.
Every project path, write, and Asset Library download must stay under this tree unless you change GODOT_MCP_ROOT and restart the server.
Returns: Absolute workspace path and configuration hints
Inputs: no named parameters. Returns: object
godot_list_autoloadList Autoload ScriptsBRead-only
List autoload singletons.
Inputs: project_path. Returns: object
godot_list_editor_pluginsList Editor PluginsARead-only
List addon folders with plugin.cfg and which editor plugins are enabled in project.godot.
Use this (and godot_get_project_settings → editor_plugins_enabled) after the user enables plugins in the editor to verify before continuing. MCP installs addons (e.g. godot_download_asset) but does not modify [editor_plugins], to avoid fighting the open editor and external-reload dialogs.
Inputs: project_path. Returns: object
godot_list_projectsList Godot projects in workspaceARead-only
List every Godot project under the MCP sandbox directory.
Use this when the MCP process cwd is not inside a project or you need to pick among several games.
Returns: workspace root and a list of {root, name} for each project.godot found
Inputs: no named parameters. Returns: object
godot_list_resourcesList Resource FilesARead-only
List all .tres resource files in the Godot project.
Inputs: relative, project_path. Returns: result
godot_list_scenesList Scene FilesBRead-only
List all .tscn scene files in the Godot project.
Inputs: relative, project_path. Returns: result
godot_list_scriptsList Script FilesARead-only
List all .gd script files in the Godot project.
Inputs: relative, project_path. Returns: result
godot_read_sceneRead Scene FileBRead-only
Read and parse a scene file.
Inputs: scene_path (required), project_path. Returns: object
godot_read_scriptRead GDScriptARead-only
Read and parse a GDScript file.
Inputs: script_path (required), project_path. Returns: object
godot_refresh_projectRefresh Project CacheA
Refresh project cache after file changes.
Inputs: project_path. Returns: object
godot_run_gameRun Godot GameC
Run the Godot game.
Inputs: headless, godot_path, project_path, quit_after_seconds. Returns: object
godot_search_assetlibSearch Godot Asset LibraryCRead-only
Search the official Godot Asset Library.
Inputs: query (required), page, sort, category, +2 more. Returns: object
godot_search_contentSearch File ContentsC
Search for content in Godot files.
Inputs: pattern (required), file_types, project_path. Returns: result
godot_validate_sceneValidate SceneCRead-only
Validate a scene file.
Inputs: scene_path (required), project_path. Returns: object
godot_validate_scriptValidate ScriptBRead-only
Validate a GDScript file.
Inputs: script_path (required), strict, project_path. Returns: object
godot_watch_filesList Watched FilesA
List scene, script, and/or resource files in the project (for monitoring or refresh).
This server does not run a background file watcher; use the returned paths with your editor or call godot_refresh_project() after external changes.
Inputs: project_path, watch_scenes, watch_scripts, watch_resources. Returns: object
godot_write_fileWrite Godot FileC
Write content to a file.
Inputs: content (required), file_path (required), project_path. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Many tools overlap in purpose, especially the retrieval/listing family: godot_get_project_files, godot_watch_files, godot_find_by_pattern, godot_find_assets, and the list_scenes/list_scripts/list_resources trio all inventory project files in similar ways. godot_create_code_template vs godot_create_script and godot_edit_file vs godot_write_file also have unclear boundaries, making tool selection ambiguous.
All tool names follow the same godot_verb_noun pattern with snake_case throughout, making the naming convention highly predictable. Minor semantic issues like godot_watch_files not actually watching files do not break the syntactic consistency.
40 tools is well beyond the 25-tool threshold for a cohesive set, and the high count is driven partly by redundant file-discovery operations. While Godot integration is a broad domain, this surface feels heavier than necessary and could be consolidated.
The server covers creation, reading, editing, validation, running, asset downloads, and plugin/autoload inspection, so core Godot workflows are mostly represented. However, there are no delete, rename, export, or project-settings update tools, and the read-only project settings plus overlapping file operations leave notable lifecycle gaps.
Maintenance
Related MCP Connectors
Let your coding agent read your GameSalad projects, and edit them live in Creator on Pro and Edu.
Create and edit PlayableMaker playable ads from chat and download them as projects.
Project memory, documentation and controlled secret access for AI coding agents.
Shiny Gen (ShinyGen), AI game maker: build, run and play-test Godot and retro console games live
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to create, edit, and run Godot 4.5+ games by providing tools for project scaffolding, scene manipulation, and engine interaction. It supports full game development workflows including node editing, script attachment, and project execution with debugging capabilities.245MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to interact with and manipulate Godot game engine projects, including creating projects, launching editor, managing scenes and nodes.121ISC
- AlicenseAqualityDmaintenanceEnables AI agents to launch, edit, debug, and test Godot game projects with comprehensive scene and script manipulation tools.501MIT
- AlicenseCqualityCmaintenanceEnables AI agents to interact with the Godot game engine, including project inspection, scene/script parsing, headless exports, runtime control with live scene-tree inspection and evaluation, and API documentation search.1005MIT