godot-mcp
Godot MCP Server
godot-mcp ermöglicht es MCP-Clients, Godot-Projekte zu inspizieren, zu validieren, zu testen, zu exportieren und abzufragen. Es unterstützt headless Godot-Befehle und optional Live-Zustand aus einem geöffneten Godot-Editor.
Voraussetzungen
Node.js 18 oder neuer
Godot 4.1 oder neuer, lokal installiert
Ein Godot-Projekt, das
project.godotenthält
Die Live-Editor-Tools erfordern zusätzlich das unten beschriebene MCP Bridge-Addon. Die übrigen Tools laufen headless.
Related MCP server: godot-ai-mcp
Installation
Aus einem lokalen Checkout
npm install
npm run buildVon npm (nach Veröffentlichung)
npx -y @zbrkic/godot-mcp --project /path/to/godot-project --godot /path/to/godotMCP-Client konfigurieren
Geben Sie immer den Projektpfad an. MCP-Desktop-Clients starten Server normalerweise in ihrem eigenen Arbeitsverzeichnis, daher ist die automatische Projekterkennung allein nicht zuverlässig.
{
"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"
}
}
}
}Die entsprechenden Befehlszeilenoptionen sind:
godot-mcp --project /path/to/godot-project --godot /path/to/godotGODOT_PATH/--godot ist nur optional, wenn die ausführbare Datei godot bereits im PATH ist. Unter Windows wird eine _console.exe-Datei bevorzugt.
Live-Editor-Tools aktivieren
Kopieren Sie
godot-plugin/addons/mcp_bridgenach<your-project>/addons/mcp_bridge.Öffnen Sie in Godot Projekt > Projekteinstellungen > Plugins und aktivieren Sie MCP Bridge.
Lassen Sie den Godot-Editor geöffnet, während Sie Live-Tools verwenden.
Die Brücke lauscht standardmäßig auf 127.0.0.1:7000. Setzen Sie mcp/plugin/port in project.godot, um dies zu überschreiben; der Server liest diese Einstellung aus dem oben konfigurierten Projekt. Schließen Sie addons/mcp_bridge/* von Produktions-Exportvoreinstellungen aus.
Tools
Projekt und Export:
get_project_settings,list_export_presets,export_projectTests und Validierung:
run_tests,validate_scene,validate_script,run_scene,format_gdscriptSzenen und Ressourcen:
inspect_scene_tree,find_nodes,get_node_properties,get_node_connections,list_resources,get_resource_dependencies,resolve_path,get_resource_infoDokumentation:
verify_api,get_helpLive-Editor:
get_editor_selection,get_open_scenes
Die meisten Tools geben ein strukturiertes JSON-Ergebnis mit success, data, errors, warnings und Zeitmetadaten zurück.
Entwicklung und Verifizierung
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 führt sowohl die Node/MCP-Tests als auch die Godot-Addon-Prüfungen bei Pushes und Pull-Requests aus.
Release-Checkliste
Aktualisieren Sie die Version in
package.json.Führen Sie
npm test,npm run test:godotundnpm pack --dry-runaus.Veröffentlichen Sie mit
npm publishund erstellen Sie ein passendes GitHub-Release.
Lizenz
Dieses Projekt ist unter der MIT-Lizenz lizenziert.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceA Godot 4 MCP server for AI-assisted project inspection, editing, validation, and runtime automation via stdio and optional WebSocket bridge.391MIT
- FlicenseAqualityCmaintenanceProvides AI assistants with tools to launch the Godot editor, run projects, manipulate scenes, manage scripts, and control node properties through a standardized MCP interface.21
- Apache 2.0
- AlicenseNot gradedqualityAmaintenanceOffline 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.4Creative Commons Attribution Non Commercial No Derivatives 4.0 International
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for interacting with the Supabase platform
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zbrkic/godot-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server