Godot MCP

by bradypp

526 downloads
Not rated
GitHub

About

A Model Context Protocol (MCP) server for interacting with the Godot game engine.

Details

Author
bradypp
Downloads
526
Categories
Other

- Launch Godot editor and run projects with debug output capture
- Create, modify, and manage Godot scenes and nodes
- Load textures into Sprite2D nodes and export MeshLibrary resources
- Get Godot version, project info, and list projects in directories
- Support for Godot 4.4+ UID management (get and update UIDs)
- Optional read-only mode for safe project analysis
- Zero-config automatic Godot detection with manual override

Install by cloning the repository, running npm install and npm run build. Configure the server by adding a JSON entry (with command, args, and environment variables) to your AI assistant’s MCP settings file (e.g., for Cline, Cursor, or VS Code). Optionally set GODOT_PATH, DEBUG, or READ_ONLY_MODE environment variables.

Godot MCP

![](https://modelcontextprotocol.io/introduction) Made with Godot ![](https://nodejs.org/en/download/) ![](https://www.typescriptlang.org/) ![](https://github.com/bradypp/godot-mcp/commits/main) ![](https://github.com/bradypp/godot-mcp/stargazers) ![](https://github.com/bradypp/godot-mcp/network/members) ![](https://opensource.org/licenses/MIT) A comprehensive Model Context Protocol (MCP) server for seamless AI assistant integration with the Godot game engine.

Table of Contents

- What is Godot MCP? - Features - Requirements - Installation - Configuration - API Reference - Project Architecture - Usage Examples - Read-Only Mode - Troubleshooting - FAQ - Contributing - License

What is Godot MCP?

Godot MCP bridges the gap between AI assistants and the Godot game engine by providing a standardized Model Context Protocol interface. This powerful integration enables AI assistants like Claude, Cursor, and Cline to directly interact with Godot projects through a comprehensive set of tools.

Key Value Propositions

- Direct Godot Integration: Launch editors, run projects, and capture debug output programmatically - Scene Management: Create, modify, and manage Godot scenes through AI commands - Real-time Feedback: AI assistants can see actual Godot output and errors for better assistance - Cross-platform Compatibility: Works seamlessly on Windows, macOS, and Linux - Secure Operations: Optional read-only mode for safe project analysis - Zero Configuration: Automatic Godot detection with manual override options

How It Works

The server acts as a middleware layer between your AI assistant and Godot, translating natural language commands into specific Godot operations. When you ask your AI to "create a player scene with a sprite," the MCP server: 1. Validates the request and project structure 2. Executes the appropriate Godot operations 3. Returns detailed success/error feedback 4. Enables the AI to understand and respond to the results This creates a powerful feedback loop where AI assistants can learn from actual Godot behavior, leading to more accurate code generation and debugging assistance.

Features

Core Project Management

- πŸš€ Launch Godot Editor: Open the Godot editor for specific projects - ▢️ Run Godot Projects: Execute projects in debug mode with real-time output capture - πŸ›‘ Control Execution: Start and stop Godot projects programmatically - πŸ“Š Debug Output Capture: Retrieve comprehensive console output and error messages - ℹ️ System Information: Get installed Godot version and project metadata - πŸ“ Project Discovery: Find and list Godot projects in specified directories

Advanced Scene Management

- 🎬 Create New Scenes: Generate scenes with specified root node types - βž• Add Nodes: Insert nodes into existing scenes with customizable properties - ✏️ Edit Node Properties: Modify positions, scales, textures, and other node attributes - πŸ—‘οΈ Remove Nodes: Clean up scenes by removing unwanted nodes - πŸ–ΌοΈ Load Sprites: Automatically load textures into Sprite2D nodes - 🧱 Export MeshLibrary: Convert 3D scenes to MeshLibrary resources for GridMap - πŸ’Ύ Save Scene Variants: Create scene copies and manage scene versions

Godot 4.4+ UID Management

- πŸ”— Get File UIDs: Retrieve unique identifiers for project resources - πŸ”„ Update UID References: Maintain proper resource links during project upgrades

Security & Safety

- πŸ”’ Read-Only Mode: Restrict operations to analysis-only for secure environments - βœ… Path Validation: Comprehensive project and file path verification - πŸ›‘οΈ Error Handling: Robust error reporting with actionable suggestions

Requirements

System Requirements

- Godot Engine: Version 3.5+ or 4.0+ (latest stable recommended) - Node.js & npm

AI Assistant Compatibility

- Cline & Roo Code: Full support with auto-approval configuration - Cursor & VS Code: Supports both UI and project-specific configuration - Claude Desktop: Compatible with MCP server integration - Other MCP-enabled tools: Any tool supporting the Model Context Protocol

Installation

Clone and Build

```bash
No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.