Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Godot-MCP-Native

An asset by yurineko73
The page banner background of a mountain and forest
Godot-MCP-Native thumbnail image
Godot-MCP-Native thumbnail image
Godot-MCP-Native thumbnail image
Godot-MCP-Native hero image

Quick Information

0 ratings
Godot-MCP-Native icon image
yurineko73
Godot-MCP-Native

一款支持godot开源引擎的的mcp插件,支持常见godot引擎操作,使用Godot原生实现MCPServer,无需安装依赖,开箱即用,支持多种AI工具调用。An MCP plugin that supports the open-source Godot engine, enabling common Godot engine operations. It implements the MCP Server using Godot's native HTTP, requires no dependency installation, is ready to use out of the box, and supports invocation by various AI tools.

Supported Engine Version
4.5
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
6 hours ago
Git URL
Issue URL

Godot MCP Native (Model Context Protocol)

中文版本

README Godot Version README License README Version

A powerful Godot Engine plugin that integrates AI assistants (Claude, etc.) via the Model Context Protocol (MCP). Enable AI to directly read and modify your Godot projects - scenes, scripts, nodes, and resources - all through natural language.

🚀 Features

  • Full Project Access: AI assistants can read and modify scripts, scenes, nodes, and resources
  • Native Implementation: No Node.js dependency required - runs entirely within Godot
  • Real-time Editing: Apply AI suggestions directly in the editor
  • Comprehensive Tool Set (33+ tools):
    • Node Tools (6): Create, modify, and manage scene nodes
    • Script Tools (6): Edit, analyze, and create GDScript files
    • Scene Tools (6): Manipulate scene structure and save scenes
    • Editor Tools (5): Control editor functionality and debug
    • Debug Tools (5): Debugging and logging
    • Project Tools (5): Access project settings and list resources

📦 Installation

  1. Open your Godot project
  2. Go to AssetLib tab in the editor
  3. Search for "Godot MCP Native"
  4. Click Download and then Install

Method 2: Manual Installation

  1. Download or clone this repository
  2. Copy the addons/godot_mcp folder to your project's addons/ directory
  3. Open your project in Godot
  4. Go to Project > Project Settings > Plugins
  5. Enable "Godot MCP Native" plugin

🔧 Usage

Enabling the Plugin

  1. Open Project > Project Settings > Plugins
  2. Locate "Godot MCP Native" in the list
  3. Set the status to Enable

Configuring MCP Server

The plugin provides two transport modes:

HTTP Mode (for remote access)

  • Best for: Network-based AI integration
  • Configuration: Set transport_mode = "http" and configure http_port (default: 9080)
  • Optional: Enable auth_enabled and set auth_token for security

Connecting with Claude Desktop

HTTP Mode Configuration

{
  "mcpServers": {
    "godot-mcp": {
      "url": "http://localhost:9080/mcp"
    }
  }
}

With authentication:

{
  "mcpServers": {
    "godot-mcp": {
      "url": "http://localhost:9080/mcp",
      "headers": {
        "Authorization": "Bearer your-secret-token-here"
      }
    }
  }
}

💬 Example Prompts

Once connected, you can interact with your Godot project through Claude:

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

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

Add a cube in the middle of the scene and create a camera that looks at it.
Create a main menu with Play, Options, and Quit buttons
Implement a day/night cycle system with dynamic lighting

📚 Available Commands

Node Tools (6)

  • get-scene-tree - Get scene tree structure
  • get-node-properties - Get properties of a specific node
  • create-node - Create a new node
  • delete-node - Delete a node
  • update-node-property - Update node properties
  • list-nodes - List nodes under a parent

Script Tools (6)

  • list-project-scripts - List all scripts
  • read-script - Read a specific script
  • modify-script - Update script content
  • create-script - Create a new script
  • analyze-script - Analyze script structure
  • get-current-script - Get currently editing script

Scene Tools (6)

  • list-project-scenes - List all scenes
  • read-scene - Read scene structure
  • create-scene - Create a new scene
  • save-scene - Save current scene
  • open-scene - Open a scene
  • get-current-scene - Get current scene info

Project Tools (5)

  • get-project-info - Get project information
  • get-project-settings - Get project settings
  • list-project-resources - List project resources
  • create-resource - Create a new resource
  • get-project-structure - Get project directory structure

Editor Tools (5)

  • get-editor-state - Get current editor state
  • run-project - Run the project
  • stop-project - Stop the running project
  • get-selected-nodes - Get selected nodes
  • set-editor-setting - Modify editor settings

Debug Tools (5)

  • get-editor-logs - Get editor/runtime logs
  • execute-script - Execute GDScript expression
  • get-performance-metrics - Get performance data
  • debug-print - Print debug info
  • execute-editor-script - Execute GDScript script

🔒 Security Recommendations

  • Production: Always enable authentication (auth_enabled = true)
  • Token: Use a strong token (≥16 characters with letters, numbers, special characters)
  • Storage: Don't commit tokens to version control
  • ⚠️ Remote Access: Use HTTPS (TLS/SSL) for network access

📋 Requirements

  • Godot Engine 4.x (recommended 4.5 or higher)
  • No additional dependencies (native implementation)

📖 Documentation

For detailed documentation, see the docs/current/ folder:

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

👤 Author

yurineko73

🙏 Acknowledgments

  • Godot Engine team for the amazing game engine
  • Model Context Protocol (MCP) specification
  • Claude AI by Anthropic for inspiring this integration

Note: This is a community plugin and is not officially affiliated with Godot Engine or Anthropic.

一款支持godot开源引擎的的mcp插件,支持常见godot引擎操作,使用Godot原生实现MCPServer,无需安装依赖,开箱即用,支持多种AI工具调用。An MCP plugin that supports the open-source Godot engine, enabling common Godot engine operations. It implements the MCP Server using Godot's native HTTP, requires no dependency installation, is ready to use out of the box, and supports invocation by various AI tools.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Godot-MCP-Native icon image
yurineko73
Godot-MCP-Native

一款支持godot开源引擎的的mcp插件,支持常见godot引擎操作,使用Godot原生实现MCPServer,无需安装依赖,开箱即用,支持多种AI工具调用。An MCP plugin that supports the open-source Godot engine, enabling common Godot engine operations. It implements the MCP Server using Godot's native HTTP, requires no dependency installation, is ready to use out of the box, and supports invocation by various AI tools.

Supported Engine Version
4.5
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
6 hours ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers