Godot MCP

io.github.jxlee007由 GitHub 帳號 jxlee007 發布v1.0.4更新於 Oct 24, 2026

Pure-Python FastMCP server for Godot 4 — 28 headless & animation tools. Runs via uvx.

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理以無頭方式驅動 Godot 4:執行專案、編輯場景,並產生動畫、相機與著色器資源。

可以做什麼
檢查 Godot 安裝、列出並檢視專案,啟動編輯器或以偵錯模式執行專案並擷取輸出、停止執行。建立、儲存和修改場景與節點,載入貼圖,匯出網格庫,讀取或重新產生資源 UID。量化關鍵影格、批次切換插值模式、合併動畫庫,並產生狀態機、轉場與 2D 混合空間。產生貝茲相機路徑、注視追蹤腳本和相機切換時間軸。批次修改著色器參數與貼圖插槽,切換 Movie Maker,執行無頭診斷。
適用情境
適合在開發 Godot 4 遊戲專案時使用,讓助理搭建場景、設定動畫樹與相機,或在不手動操作編輯器的情況下執行和偵錯專案。
執行需求
透過 uvx 從 godot-mcp-uvx PyPI 套件啟動的本機程序;需要 Python 3.10+ 和 Godot 4.x 執行檔,透過 GODOT_PATH 環境變數或系統 PATH 定位。選用 DEBUG 變數可開啟詳細日誌。
安裝前請注意
許多工具會寫入專案檔案:場景、資源、專案設定和著色器參數會被就地修改,重新產生 UID 會重存所有資源。執行和停止專案會啟動並終止 Godot 程序。建議指向已納入版本控制或已備份的專案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Godot MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

godot-mcp — Pure Python FastMCP Server for Godot 4

[Python] [FastMCP] [License: MIT] [M8ven Verified]

A zero Node.js Model Context Protocol server for Godot 4 — translated from Coding-Solo/godot-mcp and youichi-uda/godot-mcp-pro into pure Python using the official FastMCP framework. Runs with ultra-low RAM via uvx.

Quick Start

You can invoke this server over standard I/O (stdio) from anywhere on your machine instantly using uvx without manually cloning files or configuring virtual environments:

bash
# Run globally via uvx from PyPI (Bypasses local setup completely)GODOT_PATH=/path/to/godot4 uvx --from godot-mcp-uvx godot-mcp
# Local development installation (For active contributors)git clone https://github.com/jxlee007/godot_mcpcd godot_mcpuv tool install --editable .

MCP Client Configuration

Add this structural configuration block straight into your global client matrix environment profile (e.g., ~/.gemini/antigravity-cli/settings.json or Claude / Cline settings):

json
{  "mcpServers": {    "godot_render": {      "command": "uvx",      "args": [        "--from",        "godot-mcp-uvx",        "godot-mcp"      ],      "env": {        "GODOT_PATH": "/path/to/godot4",        "DEBUG": "false"      }    }  }}

Environment Variables

VariableDescription
GODOT_PATHPath to the Godot 4 executable (auto-detected if unset)
DEBUG"true" enables verbose stderr logging

Tools (28 total)

Core Runtime (14)

ToolDescription
get_godot_versionReturn installed Godot version
launch_editorOpen Godot editor for a project
run_projectRun project in debug mode, capture output
get_debug_outputRead stdout/stderr from running project
stop_projectKill running project, return final output
list_projectsFind Godot projects in a directory
get_project_infoMetadata, file counts, version
create_sceneCreate a new .tscn file via GDScript
add_nodeAdd a node to an existing scene
load_spriteLoad texture onto Sprite2D/TextureRect
export_mesh_libraryExport .tscn as MeshLibrary .res
save_sceneSave / save-as a scene file
get_uidGet UID for a Godot 4.4+ resource
update_project_uidsResave all resources to regenerate UIDs

Animation Text Pipeline (4)

ToolDescription
quantize_animation_keyframesRound timestamps to fixed fps increments (12/24 fps anime look)
set_animation_interpolation_modeBulk-swap easing: linear, cubic, nearest/stepped
stitch_animation_libraryMerge external .glb/.tres clips into master AnimationLibrary
generate_track_filterGenerate AnimationNodeBlendFilter for upper/lower body isolation

AnimationTree Blueprinting (3)

ToolDescription
generate_state_machineInject AnimationNodeStateMachine into a .tscn file
compile_state_transitionsWrite transition arrows with conditions
calculate_blend_space_2dGenerate 2D blend space for directional locomotion

Camera & Cinematic (3)

ToolDescription
generate_bezier_camera_pathCatmull-Rom bezier Path3D + PathFollow3D + Camera3D with tension control
inject_lookat_trackingGenerate LookAt tracking GDScript for Camera3D
build_camera_switcher_timelineWrite Animation that switches Camera3D.current at timestamps

NPR Materials & Shaders (2)

ToolDescription
batch_shader_uniformsBulk-override shader_parameter/* in all .tres files
remap_texture_channelsWire textures into material property slots

Pipeline Automation (2)

ToolDescription
toggle_movie_makerEdit project.godot to enable/disable Movie Maker mode
run_headless_diagnosticsValidate imports, UIDs, shader entry points via Godot CLI

Architecture

src/godot_mcp/├── __init__.py├── server.py              # FastMCP app — all 28 tools└── scripts/    └── godot_operations.gd  # Bundled GDScript engine (preserved untouched)

Two operation modes:

  1. Subprocess bridge — core 14 tools invoke godot_operations.gd headlessly via subprocess.run()
  2. Text manipulation — pro-port 14 tools parse/write .tscn, .tres, project.godot files as plain text using Python stdlib re only

Requirements

  • Python 3.10+
  • Godot 4.x installed (set GODOT_PATH or ensure it is on $PATH)
  • uv or pip

License

MIT

來源:README.md,提交 3b7ff9e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.4最新Sep 26, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分