godot-mcp
Godot MCP Server
godot-mcp permite a los clientes MCP inspeccionar, validar, probar, exportar y consultar proyectos de Godot. Admite comandos headless de Godot y, opcionalmente, el estado en vivo de un editor de Godot abierto.
Requisitos
Node.js 18 o más reciente
Godot 4.1 o más reciente, instalado localmente
Un proyecto de Godot que contenga
project.godot
Las herramientas de editor en vivo requieren además el complemento MCP Bridge descrito a continuación. Las herramientas restantes se ejecutan de forma headless.
Related MCP server: godot-correctness-mcp
Instalación
Desde una copia local
npm install
npm run buildDesde npm (después de la publicación)
npx -y @zbrkic/godot-mcp --project /path/to/godot-project --godot /path/to/godotConfigurar un cliente MCP
Proporcione siempre la ruta del proyecto. Los clientes de escritorio MCP suelen iniciar servidores en su propio directorio de trabajo, por lo que la detección automática de proyectos por sí sola no es fiable.
{
"mcpServers": {
"godot": {
"command": "npx",
"args": ["-y", "@zbrkic/godot-mcp"],
"env": {
"GODOT_PROJECT_PATH": "C:/Source/my-game",
"GODOT_PATH": "C:/Program Files/Godot/Godot_v4.5.1-stable_win64_console.exe"
}
}
}
}Las opciones equivalentes de línea de comandos son:
godot-mcp --project /path/to/godot-project --godot /path/to/godotGODOT_PATH/--godot es opcional solo cuando el ejecutable godot ya está en PATH. En Windows, se prefiere un ejecutable _console.exe.
Habilitar herramientas de editor en vivo
Copie
godot-plugin/addons/mcp_bridgea<your-project>/addons/mcp_bridge.En Godot, abra Proyecto > Configuración del proyecto > Plugins y habilite MCP Bridge.
Mantenga abierto el editor de Godot mientras usa las herramientas en vivo.
El puente escucha en 127.0.0.1:7000 de forma predeterminada. Establezca mcp/plugin/port en project.godot para anularlo; el servidor lee esa configuración del proyecto configurado anteriormente. Excluya addons/mcp_bridge/* de los ajustes preestablecidos de exportación de producción.
Herramientas
Proyecto y exportación:
get_project_settings,list_export_presets,export_projectPruebas y validación:
run_tests,validate_scene,validate_script,run_scene,format_gdscriptEscenas y recursos:
inspect_scene_tree,find_nodes,get_node_properties,get_node_connections,list_resources,get_resource_dependencies,resolve_path,get_resource_infoDocumentación:
verify_api,get_helpEditor en vivo:
get_editor_selection,get_open_scenes
La mayoría de las herramientas devuelven un resultado JSON estructurado con success, data, errors, warnings y metadatos de tiempo.
Desarrollo y verificación
npm test # TypeScript build plus MCP handshake and parser tests
npm run test:godot # GDScript syntax checks; requires GODOT_PATH or godot on PATH
npm pack --dry-run # Inspect the files that would be publishedGitHub Actions ejecuta tanto las pruebas de Node/MCP como las comprobaciones del complemento de Godot en pushes y pull requests.
Lista de verificación de lanzamiento
Actualice la versión en
package.json.Ejecute
npm test,npm run test:godotynpm pack --dry-run.Publique con
npm publishy cree una versión de GitHub correspondiente.
Licencia
Este proyecto está licenciado bajo la Licencia MIT.
Available Tools
20 toolsexport_projectD
Exports project
Inputs: output (required), preset (required).
find_nodesD
Finds nodes in scene
Inputs: scene_path (required), type_filter, name_pattern.
format_gdscriptC
Formats GDScript
Inputs: script_path (required).
get_editor_selectionB
Gets current editor selection (requires open editor)
Inputs: no named parameters.
get_helpC
Gets Godot documentation
Inputs: search_term (required).
get_node_connectionsD
Gets node signals
Inputs: node_path (required), scene_path (required).
get_node_propertiesD
Gets node properties
Inputs: node_path (required), scene_path (required).
get_open_scenesB
Lists open scenes in editor (requires open editor)
Inputs: no named parameters.
get_project_settingsC
Parses project.godot
Inputs: prefix.
get_resource_dependenciesD
Gets resource deps
Inputs: resource_path (required).
get_resource_infoD
Gets detailed info about a resource
Inputs: resource_path (required).
inspect_scene_treeC
Returns node hierarchy
Inputs: scene_path (required).
list_export_presetsB
Returns export presets
Inputs: no named parameters.
list_resourcesC
Lists project resources
Inputs: type_filter.
resolve_pathC
Resolves a UID to a path or vice versa
Inputs: path_or_uid (required).
run_sceneC
Runs scene headlessly
Inputs: scene_path (required), timeout_ms.
run_testsB
Executes tests using GUT or a custom runner
Inputs: test_script.
validate_sceneC
Validates .tscn
Inputs: scene_path (required).
validate_scriptD
Validates .gd
Inputs: script_path (required).
verify_apiD
Checks Godot API
Inputs: class_name (required), method_name.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
The tools are mostly distinct in purpose, covering different aspects like testing, scene inspection, resource management, and editor interactions. There is slight potential confusion between `inspect_scene_tree` and `find_nodes`, but they serve different goals (hierarchy vs. search). Overall, an agent can reliably select the right tool based on descriptions.
All tool names follow a consistent verb_noun pattern in snake_case, such as `run_tests`, `get_project_settings`, `validate_script`, and `list_resources`. The verbs are action-oriented and the nouns clearly indicate the target resource. This makes the toolset predictable and easy to navigate.
With 20 tools, this exceeds the typical 3-15 range, leaning toward the heavier side. However, each tool addresses a specific need in Godot development (testing, export, scene analysis, resource handling, editor access), so the count is justifiable albeit on the upper end. It feels slightly bloated but not excessive.
The toolset covers a broad range of Godot workflows, including project configuration, validation, running, formatting, scene/node introspection, resource management, and editor state. Missing features like creating or editing scenes/scripts are not core for an MCP that primarily aids analysis and execution. Minor gaps exist (e.g., no explicit node deletion), but agents can work around them.
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for the GitCore API, enabling AI agents to interact with GitCore repositories, issues, pull requests, and more.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for interacting with the Supabase platform
Related MCP Servers
- Apache 2.0
- AlicenseNot gradedqualityBmaintenanceOffline static correctness MCP server for Godot 4.x GDScript projects that lints code, looks up API symbols, and validates scenes/resources, all without a running editor.430 npmCreative Commons Attribution Non Commercial No Derivatives 4.0 International
- AlicenseBqualityDmaintenanceConnects MCP-capable AI clients to a running Godot 4 editor for scene, node, project, and debug runtime operations via a local-first architecture.361MIT
- AlicenseBqualityFmaintenanceEnables Godot development via MCP with tools to inspect project configuration, scenes, runtime state, and execute allowed test commands.15MIT