Godot MCP Server

$pip install -e mcp/godot-mcp
README.md

An MCP server that provides tools for Godot Engine development.

Godot MCP Server

An MCP (Model Context Protocol) server that provides tools for Godot Engine development.

Features

  • godot_run_tests - Run GUT (Godot Unit Test) tests and get structured results
  • godot_check_errors - Check for parse/syntax errors without running the game
  • godot_import - Import/reimport assets
  • godot_run_scene - Run a specific scene
  • godot_export - Export project to a platform

Installation

cd mcp/godot-mcp
uv pip install -e .

Or with pip:

pip install -e mcp/godot-mcp

Configuration

Add to your Claude Code MCP configuration (~/.claude/mcp.json):

{
  "mcpServers": {
    "godot": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp/godot-mcp", "godot-mcp"],
      "env": {
        "QT_QPA_PLATFORM": "xcb",
        "__GLX_VENDOR_LIBRARY_NAME": "mesa"
      }
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "godot": {
      "command": "godot-mcp"
    }
  }
}

Usage

Once configured, Claude Code can use these tools:

Run Tests

Use godot_run_tests to run the unit tests

Check for Errors

Use godot_check_errors to check for parse errors

Run a Scene

Use godot_run_scene to run the game

Requirements

  • Python 3.10+
  • Godot 4.x installed and in PATH
  • GUT (Godot Unit Test) addon for test functionality

License

MIT

Tools (5)

godot_run_testsRun GUT (Godot Unit Test) tests and get structured results
godot_check_errorsCheck for parse/syntax errors without running the game
godot_importImport/reimport assets
godot_run_sceneRun a specific scene
godot_exportExport project to a platform

Environment Variables

QT_QPA_PLATFORMPlatform plugin for Qt (e.g., xcb)
__GLX_VENDOR_LIBRARY_NAMEGLX vendor library name (e.g., mesa)

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "godot": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp/godot-mcp", "godot-mcp"],
      "env": {
        "QT_QPA_PLATFORM": "xcb",
        "__GLX_VENDOR_LIBRARY_NAME": "mesa"
      }
    }
  }
}

Try it

Use godot_run_tests to run the unit tests
Use godot_check_errors to check for parse errors
Use godot_run_scene to run the game
Export the current Godot project to a platform using godot_export
Reimport the project assets using godot_import

Frequently Asked Questions

What are the key features of Godot MCP Server?

Run GUT (Godot Unit Test) tests with structured results. Check for parse and syntax errors without launching the game. Automate asset importing and reimporting. Launch specific scenes directly from the server. Export Godot projects to various platforms.

What can I use Godot MCP Server for?

Automating CI/CD pipelines for Godot games to run unit tests. Quickly identifying syntax errors in GDScript during development. Streamlining the asset pipeline by triggering reimports via AI. Testing specific game scenes without manually navigating the Godot editor. Automating the build and export process for different target platforms.

How do I install Godot MCP Server?

Install Godot MCP Server by running: pip install -e mcp/godot-mcp

What MCP clients work with Godot MCP Server?

Godot MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use Godot MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free