Labsco
Coding-Solo logo

Godot MCP

โ˜… 4,500

from Coding-Solo

MCP server for interacting with the Godot game engine, providing tools for editing, running, debugging, and managing scenes in Godot projects.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Godot MCP

Copy & paste โ€” that's it
 ((((((( (((((((
 ((((((((((( (((((((((((
 ((((((((((((( (((((((((((((
 (((((((((((((((((((((((((((((((((
 (((((((((((((((((((((((((((((((((
 ((((( ((((((((((((((((((((((((((((((((((((((((( (((((
 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
 ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
 (((((((((((@@@@@@@(((((((((((((((((((((((((((@@@@@@@(((((((((((
 (((((((((@@@@,,,,,@@@(((((((((((((((((((((@@@,,,,,@@@@(((((((((
 ((((((((@@@,,,,,,,,,@@(((((((@@@@@(((((((@@,,,,,,,,,@@@((((((((
 ((((((((@@@,,,,,,,,,@@(((((((@@@@@(((((((@@,,,,,,,,,@@@((((((((
 (((((((((@@@,,,,,,,@@((((((((@@@@@((((((((@@,,,,,,,@@@(((((((((
 ((((((((((((@@@@@@(((((((((((@@@@@(((((((((((@@@@@@((((((((((((
 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
 @@@@@@@@@@@@@((((((((((((@@@@@@@@@@@@@((((((((((((@@@@@@@@@@@@@
 ((((((((( @@@(((((((((((@@(((((((((((@@(((((((((((@@@ (((((((((
 (((((((((( @@((((((((((@@@(((((((((((@@@((((((((((@@ ((((((((((
 (((((((((((@@@@@@@@@@@@@@(((((((((((@@@@@@@@@@@@@@(((((((((((
 (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
 (((((((((((((((((((((((((((((((((((((((((((((((((((((
 (((((((((((((((((((((((((((((((((((((((((((((((
 (((((((((((((((((((((((((((((((((

 /$$ /$$ /$$$$$$ /$$$$$$$
 | $$$ /$$$ /$$__ $$| $$__ $$
 | $$$$ /$$$$| $$ \__/| $$ \ $$
 | $$ $$/$$ $$| $$ | $$$$$$$/
 | $$ $$$| $$| $$ | $$____/
 | $$\ $ | $$| $$ $$| $$
 | $$ \/ | $$| $$$$$$/| $$
 |__/ |__/ \______/ |__/

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

Introduction

Godot MCP enables AI agents to launch the Godot editor, run projects, capture debug output, and control project execution. This direct feedback loop helps agents understand what works and what doesn't in real Godot projects, leading to better code generation and debugging assistance.

Features

  • Launch Godot Editor: Open the Godot editor for a specific project

  • Run Godot Projects: Execute Godot projects in debug mode

  • Capture Debug Output: Retrieve console output and error messages

  • Control Execution: Start and stop Godot projects programmatically

  • Get Godot Version: Retrieve the installed Godot version

  • List Godot Projects: Find Godot projects in a specified directory

  • Project Analysis: Get detailed information about project structure

  • Scene Management:

  • Create new scenes with specified root node types

  • Add nodes to existing scenes with customizable properties

  • Load sprites and textures into Sprite2D nodes

  • Export 3D scenes as MeshLibrary resources for GridMap

  • Save scenes with options for creating variants

  • UID Management (for Godot 4.4+):

  • Get UID for specific files

  • Update UID references by resaving resources

Architecture

The Godot MCP server uses a bundled GDScript approach for complex operations:

  • Direct Commands: Simple operations like launching the editor or getting project info use Godot's built-in CLI commands directly.

  • Bundled Operations Script: Complex operations like creating scenes or adding nodes use a single, comprehensive GDScript file (godot_operations.gd) that handles all operations.

The bundled script accepts operation type and parameters as JSON, allowing for flexible and dynamic operation execution without generating temporary files for each operation.

License

This project is licensed under the MIT License - see the LICENSE file for details.