Cocos MCP Tools
cocos-mcp-tools
What is Cocos MCP Tools?
Cocos MCP Tools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to cocos-mcp-tools
cocos-mcp-tools
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- cocos-mcp-tools
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx cocos-mcp-toolsConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Cocos MCP Tools
Cocos MCP Tools is a two-part system that lets AI assistants directly control the Cocos Creator game editor through the Model Context Protocol. An npm package (cocos-mcp) acts as the MCP server that your AI client connects to, while a Creator plugin installed in your project exposes the actual editor tools — node hierarchy queries, component management, prefab editing, and more. This enables natural-language game development workflows where you describe what you want and the AI executes it inside your open Cocos Creator project.
Prerequisites
- Node.js installed globally for the npm package
- Cocos Creator 3.x (tested on 3.8.1) installed
- An MCP-compatible AI client (VS Code with Cline, Cursor, Windsurf, etc.)
- The cocos-mcp Creator plugin downloaded and installed in your project
Install the cocos-mcp npm package globally
Install the MCP server package globally via npm. This provides the cocos-mcp command that your AI client will launch to communicate with the editor.
npm install -g cocos-mcpConfigure your AI client to use cocos-mcp
Add the cocos-mcp server to your MCP client config. For VS Code with Cline, open MCP Settings and add the server. On Windows use 'cmd /c cocos-mcp'; on macOS/Linux use the global node_modules path.
{
"mcpServers": {
"cocos": {
"command": "cmd",
"args": ["/c", "cocos-mcp"]
}
}
}macOS / Linux configuration
On macOS or Linux, point directly to the installed package's entry point since a global command alias may not be in the PATH used by your editor.
{
"mcpServers": {
"cocos": {
"command": "node",
"args": ["/usr/local/lib/node_modules/cocos-mcp/dist/index.js"]
}
}
}Install and enable the Creator plugin
Download the cocos-mcp-tools Creator plugin from the GitHub repository. Install it into your Cocos Creator project by placing it in the extensions folder and enabling it in the editor under Extensions → Plugin Manager. The plugin registers the actual MCP tools.
Refresh the MCP server and verify tools
In your AI client, disable and re-enable the cocos-mcp server to trigger a fresh tool discovery. Because tools are dynamically provided by the Creator plugin, they only appear once the plugin is active and the server refreshes.
Cocos MCP Tools Examples
Client configuration
VS Code Cline MCP configuration for cocos-mcp on Windows.
{
"mcpServers": {
"cocos": {
"command": "cmd",
"args": ["/c", "cocos-mcp"]
}
}
}Prompts to try
Natural-language instructions you can give your AI assistant once cocos-mcp is connected and the Creator plugin is active.
- "Query the current scene hierarchy and list all top-level nodes"
- "Find the Player node in the open prefab and add a RigidBody2D component to it"
- "List all nodes in the scene that have a Sprite component"
- "Create a new empty node called 'UI_Root' under the Canvas node"
- "Show me all properties of the currently selected node in the editor"Troubleshooting Cocos MCP Tools
AI client shows 0 tools after connecting to cocos-mcp
The tools come from the Creator plugin, not the npm package. Ensure the plugin is installed in the project's extensions folder and enabled in Cocos Creator's Plugin Manager. Then disable and re-enable cocos-mcp in your AI client to refresh tool discovery.
cocos-mcp command not found on macOS
Use the full absolute path to the installed package: node /usr/local/lib/node_modules/cocos-mcp/dist/index.js. Run 'npm root -g' to find the correct global node_modules path on your system.
Plugin works in Cocos Creator 3.8.1 but not other versions
The plugin has only been tested with Cocos Creator 3.8.1. Other 3.x versions may work but are untested. Avoid using with Creator 2.x as the API surface is different.
Frequently Asked Questions about Cocos MCP Tools
What is Cocos MCP Tools?
Cocos MCP Tools is a Model Context Protocol (MCP) server that cocos-mcp-tools It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Cocos MCP Tools?
Follow the installation instructions on the Cocos MCP Tools GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Cocos MCP Tools?
Cocos MCP Tools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Cocos MCP Tools free to use?
Yes, Cocos MCP Tools is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Cocos MCP Tools Alternatives — Similar Developer Tools Servers
Looking for alternatives to Cocos MCP Tools? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Cocos MCP Tools in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Cocos MCP Tools?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.