FastMCP server for Godot 4.x β AI-assisted projects, files, assets, and GDScript
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
project.godot); list all projects under the workspace (godot_list_projects)godot_create_project).tscn), scripts (.gd), resources (.tres)Console entry point (after pip install -e .): godot-mcp-server (same as python godot_mcp_server.py).
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):
Put every Godot game there β each game is its own subdirectory containing project.godot, for example:
Open your IDE workspace inside ~/godot-games/.../your-game (or a parent folder under ~/godot-games) so the MCP process can discover project.godot from the current working directory.
Custom location: Set an absolute path before starting the server:
In Cursor / Claude / other MCP configs, add env:
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_workspace or read the resource project://workspace to 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.
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:
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.
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.
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:
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:
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:
Use an absolute path in args if the workspace folder is not the repo root.
Edit the app config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonRestart Claude Desktop after saving.
Merge into ~/.claude/settings.json (or use claude mcp add if your CLI supports it β check claude mcp --help):
macOS / Linux: edit ~/.codeium/windsurf/mcp_config.json, or use CMD+SHIFT+P β βWindsurf: Configure MCP Serversβ.
Paste into Rooβs MCP settings (project or global), same JSON shape as above. Repo copy: roo_code_mcp.json.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/godot)<a href="https://allmcps.com/mcp/godot"><img src="https://allmcps.com/api/badge/godot?style=directory" alt="Godot on AllMCPs" /></a>