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 分