Skip to main content

godot-mcp — drive a live Godot editor from an AI agent over MCP

godot-mcp

A generic, game-agnostic Model Context Protocol (MCP) server for AI-driven Godot development.

PyPI Docker Documentation Version MIT License

📖 The manual is the docs site: hybridindie.github.io/godot-mcp. This README is the front door — what it is, install, quick start, and links. Architecture, guides, and the full tool reference live on the site.

For LLM agents: llms.txt (page index) · llms-full.txt (the whole site as one markdown document).

Status: feature-complete. 194 tools across 29 categories — always-on core plus 28 toggleable toolsets, of which only inspection is enabled by default (the rest are gated off until the agent asks). godot-editor-mcp on PyPI · ghcr.io/hybridindie/godot-mcp · version 2026.10.12.


What it is

godot-mcp bridges an AI agent and a live Godot editor. Instead of editing files blindly on disk, the agent drives the editor directly over MCP:

  • Inspect the scene tree, selected nodes, and project settings live
  • Mutate scenes — nodes, scripts, signals — with undo
  • Edit GDScript and check it for parse errors
  • Run the game headless or control a live play session
  • Simulate input, record replays, screenshot, and profile performance
  • Export builds, analyze code statically, and refactor across scenes

It is game-agnostic — it knows Godot, not your game. A tower-defense roguelite, a 3D platformer, and a visual novel use the same generic tools; game-specific vocabulary belongs in a separate consumer project.

AI client ──stdio / HTTP──▶ FastMCP server ──WebSocket──▶ Godot addon ──▶ live editor

Prerequisites

Component Minimum Recommended
Godot 4.4 4.7 (validated target)
Python 3.11 3.13
Package manager uv uv

Quick start

1. Install the server

pip install godot-editor-mcp      # or run without installing: uvx godot-editor-mcp

2. Install the Godot addon into your project, then enable it in Project → Project Settings → Plugins → Godot Editor MCP - Addon:

curl -L -o godot_mcp_addon.zip \
  https://github.com/hybridindie/godot-mcp/releases/latest/download/godot_mcp_addon.zip
unzip godot_mcp_addon.zip -d /path/to/your/project/

(Or install Godot Editor MCP - Addon from the Godot Asset Store.) A status dock appears in the editor; the addon connects out to the server's bridge (ws://127.0.0.1:9080 by default) and reconnects automatically, so editor and server can start in either order.

3. Point your MCP client at it — OpenCode (opencode.json in the project root):

{ "mcp": { "godot": { "type": "local", "command": ["uvx", "godot-editor-mcp"] } } }

4. Ask the agent to work

  • "Show me the scene tree" → godot_inspection_get_scene_tree()
  • "Enable scene editing, then add a Player node" → godot_enable_toolset("scene_edit")

Docker, HTTP service mode (several clients sharing one editor), and OpenWebUI → Configure your client.

The gated surface

Only core + inspection are exposed by default, so the agent's tool list stays sharp. It turns a toolset on with godot_enable_toolset("scene_edit"); the server then announces the change (tools/list_changed, plus a subscriptions/listen stream on the 2026-07-28 protocol) and returns the enabled tools' schemas — so the new tools reach the model whether or not its client refreshes. GODOT_MCP_DEFAULT_TOOLSETS pre-seeds toolsets at startup. More → Toolset gating.

Documentation

The full manual lives on the docs site:

  • Get started — install, connect, and drive your first session
  • Concepts — how it works and why it's built this way
  • Guides — build a scene, play-test & debug, verify, ship
  • Reference — toolsets, safety, errors, prompts, skills, env vars
  • Under the hood — the bridge, gating, safety, persistence, readiness
  • Changelog — what shipped in each release

Development

uv sync
uv run pytest           # full suite
uv run ruff check .     # lint
uv run mypy             # types

The Godot addon lives at godot/addons/godot_mcp/; open the godot/ folder as a project to load it.

Contributing & license

See CONTRIBUTING.md. MIT licensed — see LICENSE.

Metadata

Release files for godot-editor-mcp 2026.10.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for godot-editor-mcp 2026.10.12
File Size Uploaded
godot_editor_mcp-2026.10.12.tar.gz 983.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for godot-editor-mcp 2026.10.12
File Interpreter ABI Platform
godot_editor_mcp-2026.10.12-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / godot_editor_mcp-2026.10.12.tar.gz

Download URL godot_editor_mcp-2026.10.12.tar.gz
Size 983.2 kB
Tags Source
SHA-256 checksum
How to use checksums
771a179df3d4009ca014a954a8cfea07079f8a2164b0cc3d1cc35f952ce0e20f
BLAKE2b-256 checksum
How to use checksums
a35a39457c2c1120c3315f65900fae9361f416bc7923d08f994dd546bf72b0cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / godot_editor_mcp-2026.10.12-py3-none-any.whl

Download URL godot_editor_mcp-2026.10.12-py3-none-any.whl
Size 241.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17ab2b8030aeb83e7db69161937bd4b60f710c17caa0a3c8d105829ec9296751
BLAKE2b-256 checksum
How to use checksums
f8300742dcfb6a77c684f034cbd96ee36937b85ef7a44bedcf1e843021cd869b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page