EG

ee0pdt/godot-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

622 stars 65 forks 品質 69 トレンド 21MIT

Godot用のMCP。Claudeのようなツールを使ってGodotゲームエンジンでゲームを作成・編集できます

概要

モデルコンテキストプロトコル(MCP)を用いたGodotエンジンとAIアシスタントの包括的な統合です。このプラグインにより、AIアシスタントがGodotプロジェクトとやり取りできるようになり、コード支援、シーン操作、プロジェクト管理などの強力な機能を提供します。 - : AIアシスタントはスクリプト、シーン、ノード、プロジェクトリソースにアクセスし、編集できます - : プロジェクトデータをAIに送信し、エディタ内で提案された変更を直接適用 - : - : シーン内のノードを作成、修正、管理 - : GDScriptファイルを編集、分析、作成 - : シーンとその構造を操作 - : プロジェクト設定やリソースへのアクセス - : 各種エディター機能の制御 1. Claudeデスクトップの設定ファイルを編集または作成: 2. 以下の構成を追加(または付属のclaude_desktop_config.jsonを参照として使用してください):: PATH_TO_YOUR_PROJECTをこのリポジトリの絶対パスに置き換えます。 1. Godot Engine を開く 2.「インポート」を選択し、クローンリポジトリへ移動します 3.

概要(AI 翻訳)

モデルコンテキストプロトコル(MCP)を用いたGodotエンジンとAIアシスタントの包括的な統合です。このプラグインにより、AIアシスタントがGodotプロジェクトとやり取りできるようになり、コード支援、シーン操作、プロジェクト管理などの強力な機能を提供します。

特徴

  • 完全なGodotプロジェクトアクセス:AIアシスタントはスクリプト、シーン、ノード、プロジェクトリソースにアクセスし、変更できます
  • 双方向コミュニケーション:プロジェクトデータをAIに送信し、提案された変更をエディターに直接適用する
  • コマンドカテゴリ:
  • ノードコマンド:シーン内のノードを作成、修正、管理
  • スクリプトコマンド:GDScriptファイルの編集、解析、作成
  • シーンコマンド:シーンとその構造を操作する
  • プロジェクトコマンド:プロジェクト設定やリソースへのアクセス
  • エディターコマンド:各種エディター機能の制御

クイックセットアップ

1.リポジトリのクローン

2.MCPサーバーの設定

3.Claudeデスクトップの設定

  1. Claudeデスクトップの設定ファイルを編集または作成:

  2. 以下の構成を追加(または含まれているclaude_desktop_config.jsonを参考にしてください):

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Godot MCP (Model Context Protocol)

A comprehensive integration between Godot Engine and AI assistants using the Model Context Protocol (MCP). This plugin allows AI assistants to interact with your Godot projects, providing powerful capabilities for code assistance, scene manipulation, and project management.

Features

  • Full Godot Project Access: AI assistants can access and modify scripts, scenes, nodes, and project resources
  • Two-way Communication: Send project data to AI and apply suggested changes directly in the editor
  • Command Categories:
    • Node Commands: Create, modify, and manage nodes in your scenes
    • Script Commands: Edit, analyze, and create GDScript files
    • Scene Commands: Manipulate scenes and their structure
    • Project Commands: Access project settings and resources
    • Editor Commands: Control various editor functionality

Quick Setup

1. Clone the Repository

git clone https://github.com/ee0pdt/godot-mcp.git
cd godot-mcp

2. Set Up the MCP Server

cd server
npm install
npm run build
# Return to project root
cd ..

3. Set Up Claude Desktop

  1. Edit or create the Claude Desktop config file:

    # For macOS
    nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
    
  2. Add the following configuration (or use the included claude_desktop_config.json as a reference):

    {
      "mcpServers": {
        "godot-mcp": {
     	 "command": "node",
     	 "args": [
     	   "PATH_TO_YOUR_PROJECT/server/dist/index.js"
     	 ],
     	 "env": {
     	   "MCP_TRANSPORT": "stdio"
     	 }
        }
      }
    }
    

    Note: Replace PATH_TO_YOUR_PROJECT with the absolute path to where you have this repository stored.

  3. Restart Claude Desktop

4. Open the Example Project in Godot

  1. Open Godot Engine
  2. Select “Import” and navigate to the cloned repository
  3. Open the project.godot file
  4. The MCP plugin is already enabled in this example project

Using MCP with Claude

After setup, you can work with your Godot project directly from Claude using natural language. Here are some examples:

Example Prompts

@mcp godot-mcp read godot://script/current

I need help optimizing my player movement code. Can you suggest improvements?
@mcp godot-mcp run get-scene-tree

Add a cube in the middle of the scene and then make a camera that is looking at the cube.
@mcp godot-mcp read godot://scene/current

Create an enemy AI that patrols between waypoints and attacks the player when in range.

Natural Language Tasks Claude Can Perform

  • “Create a main menu with play, options, and quit buttons”
  • “Add collision detection to the player character”
  • “Implement a day/night cycle system”
  • “Refactor this code to use signals instead of direct references”
  • “Debug why my player character falls through the floor sometimes”

Available Resources and Commands

Resource Endpoints:

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "godot-mcp": { "command": "node", "args": [ "PATH_TO_YOUR_PROJECT/server/dist/index.js" ], "env": { "MCP_TRANSPORT": "stdio" } } } }