
ee0pdt/godot-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP для Godot, который позволяет создавать и редактировать игры на движке Godot с помощью таких инструментов, как Claude
Обзор
Комплексная интеграция между Godot Engine и AI-ассистентами с использованием протокола Model Context Protocol (MCP). Этот плагин позволяет AI-ассистентам взаимодействовать с вашими проектами Godot, предоставляя мощные возможности для помощи в коде, обработки сцен и управления проектами. - : Ассистенты ИИ могут получать и изменять скрипты, сцены, узлы и ресурсы проекта - : Отправлять данные проекта ИИ и применять предлагаемые изменения непосредственно в редакторе - : - : Создавать, изменять и управлять узлами в ваших сценах - : Редактировать, анализировать и создавать файлы GDScript - : Манипулировать сценами и их структурой - : Получать доступ к настройкам и ресурсам проекта - : Управлять различными функциональностями редактора 1. Отредактировать или создать конфигурационный файл Claude Desktop: 2. Добавьте следующую конфигурацию (или используйте включённый claude_desktop_config.json в качестве справочника): : Замените PATH_TO_YOUR_PROJECT на абсолютный путь к месту, где хранится этот репозиторий. 1. Откройте Godot Engine 2. Выберите «Импортировать» и перейдите к клонированному репозиторию 3.
Обзор (машинный перевод)
Комплексная интеграция между Godot Engine и AI-ассистентами с использованием протокола Model Context Protocol (MCP). Этот плагин позволяет AI-ассистентам взаимодействовать с вашими проектами Godot, предоставляя мощные возможности для помощи в коде, обработки сцен и управления проектами.
Особенности
- Полный доступ к проекту Godot: ИИ-ассистенты могут получать и изменять скрипты, сцены, узлы и ресурсы проектов
- Двусторонняя связь: Отправляйте данные проекта ИИ и применяйте предлагаемые изменения непосредственно в редакторе
- Категории команд:
- Команды узлов: Создавайте, изменяйте и управляйте узлами в ваших сценах
- Команды скриптов: редактирование, анализ и создание файлов GDScript
- Команды сцены: Манипулировать сценами и их структурой
- Команды проекта: Доступ к настройкам и ресурсам проекта
- Команды редактора: Управление различными функциями редактора
Быстрая подготовка
1. Клонирование хранилища
2. Настройте MCP-сервер
3. Set Up Claude Desktop
-
Отредактировать или создать конфигурационный файл Claude Desktop:
-
Добавьте следующую конфигурацию (или используйте включённый
claude_desktop_config.jsonв качестве источника):
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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
-
Edit or create the Claude Desktop config file:
# For macOS nano ~/Library/Application\ Support/Claude/claude_desktop_config.json -
Add the following configuration (or use the included
claude_desktop_config.jsonas 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_PROJECTwith the absolute path to where you have this repository stored. -
Restart Claude Desktop
4. Open the Example Project in Godot
- Open Godot Engine
- Select “Import” and navigate to the cloned repository
- Open the
project.godotfile - 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:
Установка
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"
}
}
}
}