Back to Home
DaxianLee icon

cocos-mcp-server

by DaxianLee

Overview

Enables AI assistants to interact with the Cocos Creator editor through a Model Context Protocol (MCP) server, providing control over scene, node, component, asset, and project operations.

Installation

Run Command
No command provided

Security Notes

CRITICAL RISK: The `debug_execute_script` tool (found in `source/tools/debug-tools.ts`) allows arbitrary JavaScript code execution within the Cocos Creator editor's scene context via a direct `eval` call. This constitutes a Remote Code Execution (RCE) vulnerability if an AI client is compromised or a malicious prompt is executed. While the server defaults to binding to `127.0.0.1`, the `Access-Control-Allow-Origin: *` header in `source/mcp-server.ts` implies it could be configured for broader network access, escalating the risk significantly. Even with local-only access, this feature could lead to severe compromise of the project or local system if exploited.

Similar Servers

Stats

Interest Score90
Security Score1
Cost ClassMedium
Avg Tokens500
Stars289
Forks72
Last Update2025-11-19

Tags

Cocos CreatorAI AssistantMCP ServerEditor PluginGame Development