Godot MCP Serverのロゴ

Godot MCP Server

コミュニティ
alexmeckes

godot-mcp is an MCP (Model Context Protocol) server for AI-assisted Godot 4.x development. It gives AI clients a structured way to inspect and change Godot projects instead of guessing at .tscn, .gd,…

公開者alexmeckes
リポジトリgodot-mcp
言語TypeScript
フォーク
11
スター
35
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Godot MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには35件のスターと11件のフォークがあります。

Godot MCP Server

godot-mcp is an MCP (Model Context Protocol) server for AI-assisted Godot 4.x development. It gives AI clients a structured way to inspect and change Godot projects instead of guessing at .tscn, .gd, .gdshader, .tres, or project.godot formats.

It exposes 99 tools across 13 categories for scene manipulation, script generation, shader creation, animation workflows, InputMap setup, audio routing/player setup, navigation setup, UI building, procedural generation, project setup, live editor control, and runtime automation.

How It Fits Together

PieceRole
godot-mcpThe MCP server in this repo. Exposes the tool surface your AI client can call.
addons/godot_ai_bridgeOptional Godot plugin bundled in this repo. Required for live editor control, runtime input automation, and screenshots.
godot-claude-skillsOptional companion skill pack. Adds knowledge and workflow layers for code generation, scene design, shaders, and live Godot work. Includes the advanced godot-interactive skill for persistent editor/runtime loops.

Recommended companion: Pair this MCP with godot-claude-skills. godot-mcp provides the tools. The skill pack improves how an agent uses them, especially through its godot-interactive workflow.

Features

File-Based Tools (Always Available)

  • Scene Tools: Read, write, and manipulate .tscn scene files
  • Script Tools: Generate and analyze GDScript files
  • Shader Tools: Create shaders with 11 preset effects (dissolve, outline, hologram, etc.)
  • Resource Tools: Manage .tres resource files
  • Animation Tools: Create and edit animation clips, keyframes, and scene animation setup
  • Input Tools: Manage InputMap actions/bindings and apply control presets
  • Audio Tools: Create bus layouts and configure AudioStreamPlayer nodes
  • Navigation Tools: Set up navigation regions, agents, and links in scene files
  • UI Tools: Create themes, menus, HUDs, dialogs, and responsive layouts
  • Procedural Generation: Dungeons, tilemaps, and enemy wave configurations

Live Editor Tools (Requires Godot AI Bridge Plugin)

  • Real-time scene tree inspection
  • Live node manipulation with undo/redo support
  • Run/stop scenes directly from your AI assistant
  • Capture runtime errors and console output
  • Select nodes in the editor
  • Drive the running game with synthetic actions, pointer events, and text entry
  • Capture viewport screenshots from the running game

Documentation

  • Built-in Godot 4.x class documentation
  • Searchable API reference for commonly used engine classes

Quick Start

  1. Build the MCP server from source.
  2. Point your MCP client at dist/index.js and pass --project /path/to/your/godot/project.
  3. If you want live editor tools, copy addons/godot_ai_bridge into your Godot project and enable the plugin.
  4. Start with godot_help, then connect to the editor if needed.

If you only want file-based scene/script/resource editing, you can skip the AI Bridge plugin and use the file tools directly.

If you are also using godot-claude-skills, prefer its godot-interactive skill for persistent inspect/edit/run/debug loops over godot-mcp.

bash
# Start here for tool discovery
godot_help                           # Overview of all 99 tools
godot_help tool="godot_write_scene"  # Usage template for one tool
godot_help task="create a menu"      # Suggested tool chain for a task
godot_help category="workflows"      # Common multi-step workflows

# If the Godot editor is running with AI Bridge enabled
godot_connect
godot_editor_get_project_info
godot_editor_get_scene_tree

Installation

Option 1: From Source

bash
git clone https://github.com/alexmeckes/godot-mcp.git
cd godot-mcp
npm install
npm run build

Option 2: From npm (when published)

bash
npm install -g @genai-gametools/godot-mcp

Configuration

Any MCP client that can launch a local process can run this server. The example below uses Claude Code / Claude Desktop.

The server uses the stable MCP TypeScript SDK v2 and supports both the 2026-07-28 protocol and 2025-era clients. Stdio remains the default transport.

Claude Code / Claude Desktop

Add to your MCP configuration (~/.claude/mcp_servers.json or Claude Desktop settings):

json
{
  "mcpServers": {
    "godot-mcp": {
      "command": "node",
      "args": [
        "/path/to/godot-mcp/dist/index.js",
        "--project",
        "/path/to/your/godot/project"
      ]
    }
  }
}

Command Line Options

bash
godot-mcp [options]

Options:
  --project <path>     Path to Godot project directory (default: current directory)
  --port <number>      Editor WebSocket port (default: 6550)
  --transport <type>   MCP transport: stdio or http (default: stdio)
  --http-port <number> Stateless HTTP port (default: 3000)

Stateless HTTP

For clients that connect to a URL instead of launching a subprocess:

bash
npm run build
node dist/index.js --transport http --http-port 3000 --project /path/to/project

Connect the client to http://127.0.0.1:3000/mcp. The HTTP transport creates a fresh MCP server for every request and advertises ttlMs: 0; 2025-era HTTP requests use the SDK's stateless compatibility mode and do not receive session IDs. The endpoint binds only to loopback and validates localhost Host and Origin headers to reduce DNS-rebinding exposure.

The Godot AI Bridge WebSocket is intentionally process-scoped. Consequently, godot_connect persists across otherwise stateless MCP HTTP requests, which is necessary for the live editor tools to remain useful.


Coverage Roadmap

See docs/COVERAGE_MATRIX.md for:

  • current subsystem coverage (Strong/Partial/Minimal/Missing)
  • high-impact gaps
  • phased implementation priorities
  • the same info is available via godot_help category="coverage"

All 99 Tools

Scene Tools (8 tools)

ToolDescription
godot_read_sceneParse and read a .tscn scene file
godot_write_sceneCreate or overwrite a .tscn scene file
godot_add_nodeAdd a new node to an existing scene
godot_remove_nodeRemove a node and its children from a scene
godot_modify_nodeModify properties of an existing node
godot_list_scene_nodesList all nodes in a scene with hierarchy
godot_validate_sceneValidate scene for missing resources and issues
godot_list_scenesList all .tscn files in project

File-based scene tools accept either scene-root-relative paths like UI/Label or live-editor style paths like Main/UI/Label.

Script Tools (6 tools)

ToolDescription
godot_read_scriptRead a GDScript file with parsed metadata
godot_write_scriptCreate or update a GDScript file
godot_analyze_scriptExtract classes, functions, signals, exports
godot_generate_scriptGenerate GDScript from natural language description
godot_list_scriptsList all .gd files in project
godot_validate_scriptCheck GDScript syntax and best practices

Shader Tools (4 tools)

ToolDescription
godot_read_shaderRead a .gdshader file with parsed uniforms
godot_write_shaderCreate or update a shader file
godot_generate_shaderGenerate shader from preset or description
godot_list_shadersList all .gdshader files in project

Built-in Shader Presets: flash, outline, dissolve, pixelate, wave, gradient_map, chromatic_aberration, vignette, crt, hologram, fresnel

UI Tools (12 tools)

ToolDescription
godot_ui_create_themeGenerate a complete UI theme (.tres) from presets
godot_ui_create_styleboxCreate individual StyleBox resources
godot_ui_list_presetsList available theme presets and styles
godot_ui_create_menuGenerate main menu, pause menu, or settings menu scenes
godot_ui_create_hudGenerate HUD with health bars, score, minimap
godot_ui_create_dialogGenerate dialog boxes, popups, confirmations
godot_ui_create_panelGenerate info panels, inventories, stat panels
godot_ui_list_anchorsList available anchor presets
godot_ui_list_containersList container types and their use cases
godot_ui_create_layoutCreate responsive layouts with proper anchoring
godot_ui_get_anchor_configGet anchor values for a specific preset
godot_ui_create_containerCreate container hierarchies for complex layouts

Theme Presets: fantasy, sci-fi, minimal, retro, horror, mobile

Resource Tools (3 tools)

ToolDescription
godot_read_resourceRead a .tres resource file as structured data
godot_write_resourceCreate or update a resource file
godot_list_resourcesList all .tres files in project

Animation Tools (8 tools)

ToolDescription
godot_animation_create_clipCreate an Animation resource with tracks and keyframes
godot_animation_read_clipRead an Animation resource into structured data
godot_animation_add_keyframeAdd a keyframe to an existing track
godot_animation_remove_keyframeRemove keyframes by index or time
godot_animation_list_clipsList Animation resource files in project
godot_animation_setup_sceneAdd/configure AnimationPlayer and AnimationTree in a scene
godot_animation_build_state_machine_planBuild state machine config/script plans for AnimationTree
godot_animation_build_blend_space_planBuild blend-space config/script plans for AnimationTree

Input Tools (6 tools)

ToolDescription
godot_input_list_actionsList InputMap actions with deadzones and binding counts
godot_input_get_actionRead one InputMap action and its bindings
godot_input_set_actionCreate/update InputMap actions and bindings
godot_input_remove_actionRemove an InputMap action
godot_input_list_presetsList built-in control presets
godot_input_apply_presetApply a control preset to InputMap

Audio Tools (9 tools)

ToolDescription
godot_audio_create_bus_layoutCreate or overwrite an AudioBusLayout resource
godot_audio_read_bus_layoutRead an AudioBusLayout resource as structured bus data
godot_audio_set_busCreate/update a named bus (send, volume, mute, solo, bypass)
godot_audio_remove_busRemove a bus from a layout
godot_audio_list_playersList AudioStreamPlayer nodes and their bus/stream settings
godot_audio_configure_playerConfigure stream/bus/volume/pitch/autoplay on a player node
godot_audio_list_effect_presetsList built-in effect-chain presets
godot_audio_generate_effect_chain_scriptGenerate AudioServer script for applying an effect preset
godot_audio_apply_mix_profileApply named mix profiles (gameplay/cinematic/paused/silent)

Navigation Tools (8 tools)

ToolDescription
godot_navigation_list_nodesList navigation nodes and key settings in a scene
godot_navigation_add_regionAdd NavigationRegion2D/3D nodes with baseline properties
godot_navigation_add_agentAdd NavigationAgent2D/3D nodes with baseline properties
godot_navigation_add_linkAdd NavigationLink2D/3D nodes with start/end positions
godot_navigation_configure_regionUpdate region properties (layers, costs, enabled)
godot_navigation_configure_agentUpdate agent movement and avoidance properties
godot_navigation_build_bake_planBuild bake readiness checklist from scene navigation setup
godot_navigation_validate_pathsValidate layers, links, and agent-region compatibility

Procedural Generation Tools (3 tools)

ToolDescription
godot_generate_dungeonGenerate dungeon layout with rooms and corridors
godot_generate_tilemap_patternGenerate platforms, terrain, maze, or cave patterns
godot_generate_wave_configGenerate enemy wave configurations for wave-based games

Documentation Tools (4 tools)

ToolDescription
godot_helpStart here - Get guidance on which tool to use
godot_get_class_docsGet full documentation for any Godot class
godot_search_docsSearch documentation by keyword
godot_list_documented_classesList all documented classes by category

Editor Tools (27 tools - Requires Plugin)

ToolDescription
godot_connectConnect to running Godot editor
godot_disconnectDisconnect from editor
godot_connection_statusCheck connection status
godot_editor_get_scene_treeGet live scene tree from editor
godot_editor_select_nodeSelect a node in the editor
godot_editor_add_nodeAdd a node to the live scene
godot_editor_modify_nodeModify node properties in real-time
godot_editor_remove_nodeRemove a node from the live scene
godot_editor_open_sceneOpen a scene file in the editor
godot_editor_save_sceneSave the current scene
godot_editor_run_sceneRun the current or specified scene
godot_editor_stop_sceneStop the running scene
godot_editor_get_errorsGet current errors from the editor
godot_editor_get_outputGet console output from running game
godot_editor_get_log_fileRead Godot's log file for debugging
godot_editor_execute_gdscriptExecute arbitrary GDScript in the editor
godot_editor_get_project_infoGet project name, path, Godot version
godot_runtime_statusGet runtime harness status from the running game
godot_runtime_waitWait for frames or seconds inside the running game (defaults to one frame)
godot_runtime_press_actionPress and hold an InputMap action
godot_runtime_release_actionRelease a pressed InputMap action
godot_runtime_tap_actionTap an InputMap action for a few frames
godot_runtime_mouse_moveMove the synthetic runtime pointer
godot_runtime_clickClick inside the running game viewport
godot_runtime_type_textType into the focused runtime control
godot_runtime_capture_screenshotCapture the running game viewport to PNG
godot_editor_refresh_filesystemTrigger filesystem rescan

Project Tools (1 tool)

ToolDescription
godot_init_projectInitialize a new Godot project with recommended structure

Godot AI Bridge Plugin

For live editor features, you need to install the Godot AI Bridge plugin in your Godot project.

What It Does

The AI Bridge plugin runs a WebSocket server inside the Godot editor that allows the MCP server to:

  • Read and modify the live scene tree
  • Run and stop game scenes
  • Capture print output and errors from the running game
  • Trigger editor actions (save, open scenes, etc.)

Installation

  1. Copy the plugin folder to your Godot project:

    bash
    cp -r addons/godot_ai_bridge /path/to/your/project/addons/
  2. Enable the plugin in Godot:

    • Open your project in Godot 4.x
    • Go to Project > Project Settings > Plugins
    • Find "Godot AI Bridge" and set it to Active
  3. Verify it's running:

    • You should see [AI Bridge] Server started on port 6550 in the Output panel

Plugin Structure

addons/godot_ai_bridge/
├── plugin.cfg           # Plugin metadata
├── godot_ai_bridge.gd   # Main EditorPlugin
├── runtime_bridge.gd    # Runtime automation harness (autoload)
├── ws_server.gd         # WebSocket server implementation
└── message_handler.gd   # JSON-RPC message handling

How It Works

The plugin uses Godot's EditorPlugin and EditorDebuggerPlugin APIs to:

  1. WebSocket Server (ws_server.gd): Listens on port 6550 for connections
  2. Message Handler (message_handler.gd): Processes JSON-RPC requests
  3. Debugger Plugin: Captures runtime output, errors, and warnings from the running game
  4. Runtime Harness (runtime_bridge.gd): Receives debugger messages inside the running game for input automation and screenshot capture

JSON-RPC Methods

The plugin responds to these JSON-RPC methods:

MethodDescription
initializeGet server info and capabilities
scene_tree.getGet the current scene tree
scene_tree.add_nodeAdd a node to the scene
scene_tree.remove_nodeRemove a node from the scene
scene_tree.modify_nodeModify node properties
editor.open_sceneOpen a scene file
editor.save_sceneSave the current scene
editor.run_sceneRun current or specified scene
editor.stop_sceneStop the running scene
editor.select_nodeSelect a node in the scene tree
runtime.statusGet runtime harness status and viewport metadata
runtime.waitWait for frames or seconds in the running game (defaults to one frame when omitted)
runtime.press_actionPress and hold an InputMap action
runtime.release_actionRelease a pressed InputMap action
runtime.tap_actionTap an InputMap action
runtime.mouse_moveMove the synthetic runtime pointer
runtime.clickClick inside the running game viewport
runtime.type_textType into the focused runtime control
runtime.capture_screenshotCapture a runtime viewport screenshot
info.projectGet project information
info.errorsGet runtime errors
info.outputGet console output
info.log_fileRead Godot's log file
execute.gdscriptExecute GDScript in the editor context
fs.refreshRefresh the filesystem

Example Usage

Once configured, you can ask your AI assistant:

Scene Creation

  • "Create a new 2D platformer scene with a player and some platforms"
  • "Add a Camera2D that follows the player"
  • "Set up a tilemap for my level"

Script Generation

  • "Generate a player controller script with WASD movement and jumping"
  • "Create an enemy AI script that patrols and chases the player"
  • "Write a state machine for managing game states"

UI Development

  • "Create a main menu with play, settings, and quit buttons using the fantasy theme"
  • "Build a HUD with a health bar, score counter, and minimap"
  • "Generate a settings menu with audio and display options"

Shaders

  • "Add a dissolve shader to the player sprite"
  • "Create a CRT screen effect for the game"
  • "Generate an outline shader for selected objects"

Procedural Content

  • "Generate a 10x10 dungeon with 5 rooms"
  • "Create a cave tilemap pattern that's 20x15"
  • "Generate 10 waves of enemies with goblins and orcs"

Live Editing

  • "Connect to Godot and show me the current scene tree"
  • "Run the main scene and show me any errors"
  • "Select the Player node in the editor"

Runtime Automation

  • "Run the scene, tap jump, and tell me if the player leaves the ground"
  • "Click the Play button and capture a screenshot to tmp/menu.png"
  • "Type a player name into the focused LineEdit"

Documentation

  • "Show me the CharacterBody2D documentation"
  • "Search the docs for 'collision'"
  • "What methods does Area2D have?"

Common Workflows

1. Create a Complete Character

1. godot_write_scene - Create character scene
2. godot_generate_script - Generate controller script
3. godot_generate_shader - Add visual effects
4. godot_add_node - Add collision shapes, sprites

2. Build Game UI

1. godot_ui_create_theme - Create consistent theme
2. godot_ui_create_menu - Build main menu
3. godot_ui_create_hud - Add in-game HUD
4. godot_ui_create_dialog - Add dialog system

3. Debug with Live Editor

1. godot_connect - Connect to Godot
2. godot_editor_run_scene - Run the game
3. godot_editor_get_output - Check console output
4. godot_editor_get_errors - Review any errors

4. Automate a Runtime Check

1. godot_connect - Connect to Godot
2. godot_editor_run_scene - Start the game in debug mode
3. godot_runtime_status - Confirm the runtime harness is ready
4. godot_runtime_tap_action / godot_runtime_click - Drive gameplay or UI
5. godot_runtime_capture_screenshot - Save visual evidence when needed

5. Generate Procedural Content

1. godot_generate_dungeon - Create dungeon layout
2. godot_generate_tilemap_pattern - Add tile patterns
3. godot_generate_wave_config - Configure enemies

Requirements

  • Node.js 20+
  • Godot 4.x (4.2+ recommended for live editor features)

License

MIT

Contributing

Issues and pull requests welcome at github.com/alexmeckes/godot-mcp

インストール

TypingMind
{
  "mcpServers": {
    "alexmeckes-godot-mcp": {
      "command": "godot-mcp",
      "args": [
        "--project",
        "/path/to/your/godot/project"
      ],
      "env": {
        "PROJECT_PATH": "<PROJECT_PATH>"
      }
    }
  }
}

Godot MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Godot MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Godot MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Godot MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "alexmeckes-godot-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@genai-gametools/godot-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてGodot MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Godot MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Godot MCP Serverを使ってこのタスクを手伝ってもらえますか?
Godot MCP Server
はい、読みました。
Godot MCP Serverで調べた結果をお伝えします。

よくある質問

Godot MCP Server MCPサーバーは何に使いますか?

Godot MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでGodot MCP Server MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでGodot MCP Serverを利用できます。

TypingMindでGodot MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。Godot MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Godot MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

Godot MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでGodot MCP Server MCPのどのようなツールを利用できますか?

Godot MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Godot MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Godot MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇