Godot Peek MCPのロゴ

Godot Peek MCP

コミュニティ
PrajnaAvidya

Peek into the Godot runtime

公開者PrajnaAvidya
リポジトリGodot-Peek-MCP
言語C++
フォーク
3
スター
12
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

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

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

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

  • コピーして使える設定

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

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

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

Godot Peek MCP

MCP server for peeking into Godot editor runtime. Run scenes, capture output, inspect debugger state.

Why Another Godot MCP?

Other Godot MCPs wrap editor actions that LLMs can already do. Claude can edit .tscn, .tres, and .gd files directly, it doesn't need a tool to "add a node" when it can just edit the scene file.

This MCP focuses on runtime visibility: output panels, debugger state, screenshots. The stuff that normally requires interacting with the editor.

Setup

Download, copy, connect. Three steps.

1. Download

Grab the release for your OS from Releases:

OSFile
Linux x86_64godot-peek-mcp-vX.X.X-linux-x86_64.tar.gz
macOS Apple Silicongodot-peek-mcp-vX.X.X-macos-arm64.tar.gz

Extract it somewhere convenient (e.g. ~/tools/godot-peek-mcp/). You'll get:

  • godot-peek-mcp — the MCP server binary
  • addons/godot_mcp/ — the Godot plugin

2. Install the Godot plugin

Copy the addons/godot_mcp folder into your Godot project so you end up with your-project/addons/godot_mcp/. Then enable it in Godot: Project > Project Settings > Plugins > Godot Peek MCP > Enable.

You should see something like this in the Output panel (the socket name is derived from your project directory):

GodotPeekPlugin: listening on /tmp/godot-peek-my-game.sock

3. Register the MCP server

Pick your MCP client:

Run this from your Godot project directory, pointing to the godot-peek-mcp binary you extracted in step 1:

bash
claude mcp add godot-peek ~/tools/godot-peek-mcp/godot-peek-mcp

The socket path is automatically derived from the working directory name. Restart Claude Code or run /mcp to verify the connection.

Create or edit .cursor/mcp.json in your project root:

json
{
  "mcpServers": {
    "godot-peek": {
      "command": "/home/YOUR_USER/tools/godot-peek-mcp/godot-peek-mcp"
    }
  }
}

Make sure to open the project from the Godot project directory so the working directory matches.

Edit ~/.codeium/windsurf/mcp_config.json:

json
{
  "mcpServers": {
    "godot-peek": {
      "command": "/home/YOUR_USER/tools/godot-peek-mcp/godot-peek-mcp"
    }
  }
}

Edit your config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, ~/.config/Claude/claude_desktop_config.json on Linux):

json
{
  "mcpServers": {
    "godot-peek": {
      "command": "/home/YOUR_USER/tools/godot-peek-mcp/godot-peek-mcp"
    }
  }
}

That's it. You're done.

Configuration

Disable specific MCP tools via JSON config. Two files, project overrides global:

LevelPath
Global~/.config/godot-peek-mcp/config.json
Project.godot-peek-mcp.json (in project root)
json
{
  "disabled_tools": ["run_main_scene", "stop_scene", "restart_scene"]
}

All tools are enabled by default. The project config replaces (not merges with) the global disabled_tools list. Unknown tool names are logged as warnings on startup. Config is read when the MCP server starts, so restart the MCP session to pick up changes (no need to restart Godot).

macOS: clearing quarantine

macOS may block unsigned binaries downloaded from the internet. If you get a security warning, run:

bash
xattr -cr ~/tools/godot-peek-mcp/godot-peek-mcp
xattr -cr ~/your-project/addons/godot_mcp/bin/

Features

  • Scene Control: Run main/current/specific scenes, stop the game
  • Variable Overrides: Set autoload variables at startup (e.g. enable debug mode)
  • Output Capture: Read the Output panel
  • Debugger Integration: Errors, stack traces, local variables, performance monitors, profiler frame data
  • Debugger Control: Set breakpoints, step through code, pause/continue
  • Runtime Inspection: Node tree and properties from running game
  • Screenshots: Editor viewports or running game
  • Expression Evaluation: Evaluate arbitrary GDScript in running game

Tools

Scene Control

ToolDescriptionParameters
run_main_sceneRun main scene (F5)timeout_seconds, overrides (optional)
run_sceneRun a specific scenescene_path, timeout_seconds, overrides (optional)
run_current_sceneRun currently open scenetimeout_seconds, overrides (optional)
stop_sceneStop the running gamenone
restart_sceneStop and re-run with same settings from last runnone

overrides: Set autoload variables at startup. Format: {"AutoloadName": {"property": value}} Example: {"DebugManager": {"debug_mode": true}}

Output & Debugging

ToolDescriptionParameters
get_outputGet Output panel contentclear, new_only (optional)
get_debugger_errorsGet Debugger Errors tabnone
get_debugger_stack_traceGet stack trace when paused on error/breakpointnone
get_debugger_localsGet local variables when paused on error/breakpointframe_index (optional, 0=top)
get_monitorsGet performance monitors (FPS, memory, etc.)none
get_profiler_frameGet profiler call tree for a specific frameframe_number (0-indexed)
get_remote_scene_treeGet node tree from running gamemax_depth (optional, 0=unlimited)
get_remote_node_propertiesGet node propertiesnode_path (e.g. /root/game/Player)

Screenshots

ToolDescriptionParameters
get_screenshotCapture editor or gametarget: "editor" or "game"

Debugger Control

ToolDescriptionParameters
set_breakpointSet or clear a breakpointpath, line, enabled
clear_breakpointsClear all breakpointsnone
get_debugger_stateCheck if paused/active/debuggablenone
debug_continueContinue executionnone
debug_stepStep into/over/outmode: "into", "over", "out"
debug_breakPause executionnone

Note: Breakpoints only work with Godot's built-in script editor. If using an external editor, breakpoints won't trigger.

Expression Evaluation

ToolDescriptionParameters
evaluate_expressionEvaluate GDScript in running gameexpression (e.g. get_node("/root/Main/Player").health)

Use this to query game state, set variables, or call methods without adding debug code.

Tips for LLM Users

Iterative debugging: Run scene → check output → fix code → repeat. The run_* tools auto-detect startup crashes and return the stack trace.

Test with overrides: Run with {"DebugManager": {"debug_mode": true}} to enable debug features without editing code.

Inspect at runtime: Use get_remote_scene_tree to see what's instantiated, then get_remote_node_properties to check values.

Auto-stop for testing: Use timeout_seconds to run briefly, then check get_output. Good for automated test loops.

Screenshots for visual bugs: get_screenshot target=game shows exactly what the player sees.

Evaluate expressions: Query any game state without print statements. evaluate_expression "get_tree().current_scene.name" or modify state: evaluate_expression "get_node('/root/Main/Player').set('health', 100)" (use .set() — assignment operators don't work in Expression class). Note: If the expression triggers a runtime error, the tool call will timeout since the game crashes before it can respond.

Exporting Your Game

The MCP plugin is editor-only. To export your game, exclude the extension files or the built game will error on startup:

Export > Resources > Filters to exclude: add addons/godot_mcp/bin/*, addons/godot_mcp/godot_peek.gdextension, addons/godot_mcp/plugin.*

The runtime helper script (peek_runtime_helper.gd) stays included since it's registered as an autoload, but it automatically skips initialization in export builds.

Notes

Output reads from the Output panel: print(), push_error(), push_warning(), and editor messages.

Debugger tools pull from the respective debugger tabs. frame_index selects which stack frame for locals (0=top). Important: get_debugger_stack_trace and get_debugger_locals only have data when the game is paused on a runtime error or breakpoint — calling them during normal execution returns empty results.

Remote inspection (get_remote_scene_tree, get_remote_node_properties) only works while the game is running.

Monitors (get_monitors) shows engine performance data: FPS, memory usage, draw calls, physics stats, etc.

Profiler (get_profiler_frame) returns the call tree for a specific frame with Self time, total time, and call counts. Requires the profiler to be running (click "Start" or enable "Autostart" in the Profiler tab). The scope dropdown is automatically switched to "Self" mode for cleaner data.

Screenshots save to /tmp/godot_peek_*.png. Editor screenshots capture active 2D/3D viewports. Game screenshots require the autoload that the plugin adds automatically.

Architecture

┌─────────────────────┐     stdio      ┌─────────────────────┐
│   Claude Code #1    │◄──────────────►│  Go MCP Server #1   │──┐
└─────────────────────┘                └─────────────────────┘  │
┌─────────────────────┐     stdio      ┌─────────────────────┐  │ Unix socket
│   Claude Code #2    │◄──────────────►│  Go MCP Server #2   │──┤ /tmp/godot-peek-<project>.sock
└─────────────────────┘                └─────────────────────┘  │
                                            ...                 │
                                       ┌────────────────────────▼┐
                                       │  C++ GDExtension        │
                                       │  (addons/godot_mcp)     │
                                       └────────────┬────────────┘
                                                    │ UDP (game features)
                                                    │ port 6971
                                       ┌────────────▼────────────┐
                                       │  Runtime Helper         │
                                       │  (running game)         │
                                       └─────────────────────────┘

Multiple MCP client sessions can connect simultaneously. Each session spawns its own Go MCP server process, and the C++ extension accepts all connections concurrently.

Requirements

  • Godot 4.4, 4.5, or 4.6
  • Linux x86_64 or macOS arm64 (Apple Silicon)

Building from Source

If you want to build from source instead of using a release:

bash
# go mcp server
go build -ldflags="-s -w" -o godot-peek-mcp ./cmd/godot-peek-mcp

# c++ extension (requires godot-cpp — set GODOT_CPP_PATH or defaults to ~/Code/godot-cpp)
cd extension && scons platform=linux target=editor

インストール

TypingMind
{
  "mcpServers": {
    "godot-peek-mcp": {
      "command": "./godot-peek-mcp",
      "args": []
    }
  }
}

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

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Godot Peek MCPに接続すれば、モデルごとに個別に設定することなく、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 Peek MCPをサーバーとして追加

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

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

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

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

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

よくある質問

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

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

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

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

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

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

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

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

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

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

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

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

関連するMCPサーバー

すべて見る

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

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