cocos-mcp-server
Enables AI assistants to interact with the Cocos Creator editor, providing tools for scene management, asset operations, and other editor functionality.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cocos-mcp-serverCreate a new Sprite node in the current scene"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cocos Creator MCP Server Plugin
An MCP (Model Context Protocol) server plugin for Cocos Creator 3.5+. Enables AI assistants to interact with the Cocos Creator editor through a standardized protocol.
50 core tools covering 99% of editor functionality!
Video Demo
Related MCP server: cocos_mcp
Requirements
Cocos Creator 3.5.0+ (3.8.6+ recommended)
Node.js (bundled with Cocos Creator)
Git
Installation
For AI agents: Follow these steps sequentially. All commands run from the Cocos Creator project root directory.
Step 1: Verify Cocos Creator Project
Confirm the current directory is a Cocos Creator project:
# MUST have an assets/ directory
ls assets/If assets/ does not exist, you are not in a Cocos Creator project root. Navigate to the correct directory first.
Step 2: Clone the Plugin
# Clone into extensions directory
mkdir -p extensions
git clone https://github.com/nicekid1/cocos-mcp-server.git extensions/cocos-mcp-serverIf the plugin already exists, pull latest instead:
cd extensions/cocos-mcp-server && git pull && cd ../..Step 3: Install Dependencies
cd extensions/cocos-mcp-server
npm install --production
cd ../..Step 4: Start the MCP Server
The user must start the server from Cocos Creator editor:
Open the project in Cocos Creator
Go to
Extensions > Cocos MCP ServerClick "Start Server"
Default port: 3000
Step 5: Verify Server is Running
curl http://127.0.0.1:3000/healthExpected: JSON response with status: "ok".
MCP Client Setup
For AI agents: After installation, register the MCP server in your client config. Pick the section matching your client.
Claude Code (CLI)
Run this command:
claude mcp add --transport http cocos-creator http://127.0.0.1:3000/mcpOpenCode
Create or update opencode.json in the project root:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"cocos-creator": {
"type": "remote",
"url": "http://127.0.0.1:3000/mcp"
}
}
}Claude Desktop
Add to Claude Desktop config file (claude_desktop_config.json):
{
"mcpServers": {
"cocos-creator": {
"type": "http",
"url": "http://127.0.0.1:3000/mcp"
}
}
}Cursor / VS Code
Add to MCP settings:
{
"mcpServers": {
"cocos-creator": {
"url": "http://localhost:3000/mcp"
}
}
}Other Clients
Protocol: HTTP transport, JSON-RPC 2.0. Endpoint: http://127.0.0.1:3000/mcp
Note: If you changed the port in the editor panel, replace
3000with your configured port in all URLs above.
Troubleshooting
Problem | Solution |
Server won't start | Check port |
Health check fails | Ensure server is started in Cocos Creator editor panel |
Build errors | Run |
Connection refused | Verify URL and port match editor panel settings |
Tools not working | Ensure a scene is open in Cocos Creator |
Enable Debug Log in the editor plugin panel for detailed logs.
License
Source code included for learning and secondary development. Commercial use and resale prohibited β contact author for commercial licensing.
Contact / Community
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal Eβ¦
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
One shared context your team's AI tools read & write over MCP. No re-explaining. Free.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA comprehensive plugin that enables AI assistants to interact with the Cocos Creator editor through the Model Context Protocol, providing 80 tools across 9 categories for nearly complete editor control.17 npm1,390MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Cocos Creator game development directly within the engine, providing tools for node manipulation, asset management, scene operations, and AI-powered image generation.13 npmISC
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to directly control the Cocos Creator 3.8.x editor via MCP protocol, providing over 130 tools for scene, node, component, asset, and project operations.17 npm40MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with the Cocos Creator 3.8+ editor through standardized protocols for scene, node, component, prefab, asset, project, debugging, and server operations.-