Cocos Creator

v1.0.0Developer Toolsstable

一款全面的、便捷的cocos creator AI MCP服务插件,适用于3.8.0以上cocos版本,一键安装,一键启动。A comprehensive and convenient cocos creator AI MCP service plug-in, suitable for cocos versions above 3.8.0, one-click installation and one-click start.

cocos-creator-mcp-server-pluginmcpai-integration
Share:
968
Stars
0
Downloads
0
Weekly
0/5

What is Cocos Creator?

Cocos Creator is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 一款全面的、便捷的cocos creator ai mcp服务插件,适用于3.8.0以上cocos版本,一键安装,一键启动。a comprehensive and convenient cocos creator ai mcp service plug-in, suitable for cocos versions above 3.8.0, one-click installation and o...

一款全面的、便捷的cocos creator AI MCP服务插件,适用于3.8.0以上cocos版本,一键安装,一键启动。A comprehensive and convenient cocos creator AI MCP service plug-in, suitable for cocos versions above 3.8.0, one-click installation and one-click start.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 一款全面的、便捷的cocos creator AI MCP服务插件,适用于3.8.0以上cocos版本,一键安装,一键启

Use Cases

一款全面的、便捷的cocos creator AI MCP服务插件,适用于3.8.0以上cocos版本,一键安装,一键启动。A comprehensive an
DaxianLee

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx cocos-creator-mcp-server-plugin

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Cocos Creator

The Cocos Creator MCP Server Plugin embeds a full MCP server directly inside the Cocos Creator editor, exposing 50 unified tools that let AI assistants create nodes, manage scenes, handle assets, control prefabs, run builds, and inspect the debug console through natural language. It targets Cocos Creator 3.8.0 and above, installs as a standard editor extension, and connects over HTTP so any MCP-compatible client including Claude Desktop and Claude Code CLI can control the editor in real time. Game developers use it to scaffold scenes, batch-modify components, and automate asset operations without leaving their AI assistant.

Prerequisites

  • Cocos Creator 3.8.6 or later installed
  • Node.js 16+ available on the system PATH (used to build the extension)
  • An MCP-compatible client such as Claude Desktop or Claude Code CLI
  • The cocos-mcp-server repository cloned into the Cocos Creator extensions directory
1

Clone the repository into your extensions folder

Place the plugin inside the extensions directory of your Cocos Creator project or the global extensions directory so the editor can discover it.

git clone https://github.com/DaxianLee/cocos-mcp-server.git extensions/cocos-mcp-server
2

Build the extension

Install Node.js dependencies and compile the TypeScript source.

cd extensions/cocos-mcp-server
npm install
npm run build
3

Enable the plugin in Cocos Creator

Restart Cocos Creator or go to Extensions > Extension Manager and click Refresh. Find the Cocos MCP Server extension and enable it. An MCP Server panel will appear under the Extensions menu.

4

Start the MCP server

Open Extensions > Cocos MCP Server. The server defaults to port 3000. Click Start, or enable Auto-start so it launches on every editor startup.

5

Connect Claude Desktop via HTTP

Add the server to claude_desktop_config.json using the HTTP transport pointing to the local server.

{
  "mcpServers": {
    "cocos-creator": {
      "type": "http",
      "url": "http://127.0.0.1:3000/mcp"
    }
  }
}
6

Connect via Claude Code CLI (alternative)

Register the HTTP endpoint with the Claude Code CLI.

claude mcp add --transport http cocos-creator http://127.0.0.1:3000/mcp

Cocos Creator Examples

Client configuration

Claude Desktop config block using HTTP transport to connect to the local Cocos Creator MCP server.

{
  "mcpServers": {
    "cocos-creator": {
      "type": "http",
      "url": "http://127.0.0.1:3000/mcp"
    }
  }
}

Prompts to try

Example prompts for controlling Cocos Creator scenes and assets through Claude.

- "Create a new 2D node called 'Player' under the Canvas node"
- "List all nodes in the current scene hierarchy"
- "Add a Sprite component to the Player node and set its spriteFrame to 'player_idle'"
- "Build the project for the Web Mobile platform"
- "Show me all prefabs in the resources/prefabs folder"

Troubleshooting Cocos Creator

Extension does not appear in the Extensions menu after installation

Confirm the plugin was placed in a directory named extensions/cocos-mcp-server inside your project (not nested deeper). Run npm install and npm run build before restarting the editor. Check the Cocos Creator console for extension load errors.

Claude cannot connect — 'connection refused' on port 3000

Open the Cocos MCP Server panel and confirm the server status shows 'Running'. If port 3000 is in use by another process, change the port in the panel settings and update the URL in your MCP client config accordingly.

Tools fail with 'editor not ready' errors

The MCP server must be started after a project is fully loaded in Cocos Creator. Avoid sending commands during scene loading transitions. Enable debug logs in the panel settings to see detailed error messages.

Frequently Asked Questions about Cocos Creator

What is Cocos Creator?

Cocos Creator is a Model Context Protocol (MCP) server that 一款全面的、便捷的cocos creator ai mcp服务插件,适用于3.8.0以上cocos版本,一键安装,一键启动。a comprehensive and convenient cocos creator ai mcp service plug-in, suitable for cocos versions above 3.8.0, one-click installation and one-click start. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Cocos Creator?

Follow the installation instructions on the Cocos Creator GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Cocos Creator?

Cocos Creator works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Cocos Creator free to use?

Yes, Cocos Creator is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "cocos-creator-mcp-server-plugin": { "command": "npx", "args": ["-y", "cocos-creator-mcp-server-plugin"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Cocos Creator?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides