MCP server enabling two-way communication between AI assistants and Godot for scripts, scenes, nodes, and project resources.
Configuration
View docs{
"mcpServers": {
"ee0pdt-godot-mcp": {
"command": "node",
"args": [
"PATH_TO_YOUR_PROJECT/server/dist/index.js"
],
"env": {
"MCP_TRANSPORT": "stdio"
}
}
}
}Godot MCP provides a direct bridge between the Godot Engine and AI assistants using the Model Context Protocol. It lets you access and edit your Godot project from AI within a workflow that supports code assistance, scene manipulation, and project management, all from natural language prompts.
After you set up the MCP server, you can interact with your Godot project from an AI assistant using natural language prompts. You can inspect the current script or scene, ask the AI to modify nodes, update GDScript, or adjust project settings. The AI can also execute editor actions or run the project to test changes. Use prompts that reference the currently opened resources, for example asking to read the current script, display the scene tree, or add a new node and set its properties. Create tasks such as placing objects, wiring up signals, or refactoring code, and have the assistant apply the changes back to your Godot editor.
Read the currently open script and suggest optimizations for the performance-critical section.
Add a cube in the middle of the scene and orient a camera to look at it.
Read the current scene structure and propose a hierarchy improvement for a boss encounter.
Returns the full scene tree structure for the currently loaded project, enabling you to understand scene composition and relationships.
Fetches properties for a specific node in the active scene, allowing you to inspect and edit node configurations.
Creates a new node within the active scene with specified type and parent.
Deletes a node from the active scene based on its path or identifier.
Updates properties of a specified node to apply changes in the editor.
Lists all GDScript files in the project for quick discovery and editing.
Reads the contents of a specific script for review or modification.
Updates the content of a script and applies changes to the project.
Creates a new GDScript file in the project with initial content.
Provides analysis and optimization suggestions for a script's structure and performance.
Lists all scenes in the project to help you navigate and organize content.
Reads the structure of a scene for inspection and modification.
Creates a new scene with a given structure or template.
Saves the current scene state to disk.
Fetches project settings and configuration details.
Lists project resources such as scripts, scenes, and assets.
Retrieves the current editor state, including open files and active panels.
Runs the Godot project to test changes in the running environment.
Stops a running project and resets the editor state.