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. 193 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.10.


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 MCP:

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 MCP" from the Godot Asset Library.) 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:

  • What & why — the reasoning behind the design
  • Getting started — server, addon, client, first session
  • Core concepts — toolsets, safety classes, the envelope
  • Architecture — the bridge, gating, safety, persistence, readiness
  • Guides — build a scene, play-test & debug, verify, ship
  • Reference — toolsets, safety, errors, prompts, skills, env vars
  • 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.10

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.10
File Size Uploaded
godot_editor_mcp-2026.10.10.tar.gz 971.7 kB Details

Built distribution (wheel)

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

Total release size: 1.2 MB

Release files / godot_editor_mcp-2026.10.10.tar.gz

Download URL godot_editor_mcp-2026.10.10.tar.gz
Size 971.7 kB
Tags Source
SHA-256 checksum
How to use checksums
37aa2faaa9c7133dbfe65afa20e806fdcd12ff2b0f24d333705621ffa0405fec
BLAKE2b-256 checksum
How to use checksums
3f54b2c525283526b5856510107faf78716b866832929cb98a7d4880d0ff22e1
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 10, 2026.

Transparency log

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

Download URL godot_editor_mcp-2026.10.10-py3-none-any.whl
Size 235.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
171c6b6f50d3df8d01b715f6a9052086a0262fbb9d22ab8b725c7ef9358507ae
BLAKE2b-256 checksum
How to use checksums
e45b6d5dee6780eff5b97966100cb70ef4c1a3e793d152f4d5a1f17a37f2086c
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 10, 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