SuperAPI AI Directory

godot-forge

Godot 4 dev companion: GUT/GdUnit4 test running, API docs with 3-to-4 migration mapping, script analysis, scene parsing, screenshots and LSP diagnostics.

Open website

About this tool

Godot Forge is an MCP (Model Context Protocol) server for Godot 4, designed to provide AI coding assistants with the ability to interact with Godot 4 projects. It addresses a common structural problem when AI models generate GDScript code: because training data is biased toward Godot 3, models easily hallucinate outdated APIs, such as using yield instead of await, KinematicBody instead of CharacterBody3D, and export var instead of @export var. Godot Forge corrects these issues by providing accurate Godot 4 API information and migration mappings.

Main Capabilities Godot Forge provides 8 tools, covering the following functions:

  • Test running: Automatically detects the GUT and GdUnit4 test frameworks, returns structured JSON results, including pass/fail counts and failure details (file paths and line numbers), and supports filtering by script, method, or inner class.
  • API documentation and migration mapping: When the AI queries a deprecated API, it immediately returns the correct Godot 4 equivalent, including more than 30 mappings, covering classes, methods, syntax, and constants.
  • Script analysis: Detects 10 common pitfalls, all drawn from real game development experience.
  • Scene parsing: Parses .tscn and .tres files and detects issues such as deep nesting (more than 8 levels), overly large scenes (more than 100 nodes), missing script references, preload() in .tres, and integer resource IDs.
  • LSP diagnostics: Connects to Godot's built-in language server (which runs automatically when the editor is open) and returns real compiler errors and warnings without guessing. Requires the Godot editor to be running with the project open.
  • Screenshot capture: Captures the game viewport as a PNG image, loads the project's main scene (or a specified scene), waits for rendering, and returns the screenshot as base64 for the AI to view.

Usage Godot Forge requires zero configuration, automatically detects the Godot binary (supporting installation methods such as Steam, Homebrew, and direct download) and automatically finds project.godot. Users only need to add the configuration to their IDE's MCP configuration file, such as .cursor/mcp.json, .vscode/mcp.json, ~/.codeium/windsurf/mcp_config.json, settings.json, or the Claude desktop configuration file. For specific configuration snippets, refer to the IDE setup guide.

Godot detection order: GODOT_PATH environment variable, godot or godot4 in PATH, Steam installation (macOS, Windows, Linux), platform default paths (/Applications/Godot.app, Homebrew, Scoop, Flatpak, Snap, etc.). Can be manually overridden.

Project directory detection: search upward from the current directory for project.godot. Can be manually overridden.

Environment requirements: Node.js 18+ (for npx execution), Godot 4.x (auto-detected, 6 of 8 tools optional), any IDE that supports MCP (Claude Code, Cursor, VS Code, Windsurf, Zed, etc.).

Use cases Godot Forge is suitable for developers using Godot 4 for game development who want to improve efficiency with the help of AI coding assistants. It is especially suited for scenarios that require AI to generate correct GDScript code, run tests, analyze scripts and scenes, and obtain real-time diagnostics and screenshots.

Limitations

  • 6 tools can be used without a Godot installation, but test running, project launching, and screenshots require the Godot binary.
  • LSP diagnostics require the Godot editor to be running with the project open.
  • Other tools do not require the editor.
  • Specific pricing, costs, platform support, etc. are not provided in the materials.

Design principles

  • Result-oriented, not operation-oriented: each tool provides a complete result rather than a raw API wrapper.
  • 8 curated tools: avoid the context bloat caused by 93 tools.
  • Progressive disclosure: summary first, details later.
  • Use spawn() instead of exec(): avoid command injection and Windows quoting issues.
  • Actionable errors: each error includes suggestions that AI can act on.
  • Cross-platform: supports macOS, Windows, Linux, Steam and non-Steam installations.

The project welcomes contributions; see CONTRIBUTING.md for guidelines. The roadmap includes phase two: input simulation, runtimescene tree inspection, performance profiling, shader validation, export/CI pipelines.