Cocos MCP Tools

v1.0.0Developer Toolsstable

cocos-mcp-tools

cocos-mcp-toolsmcpai-integration
Share:
20
Stars
0
Downloads
0
Weekly
0/5

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

Integrate Cocos game development tools with MCP.
tidys

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx cocos-mcp-tools

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 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
1

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-mcp
2

Configure 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"]
    }
  }
}
3

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"]
    }
  }
}
4

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.

5

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.

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-mcp-tools": { "command": "npx", "args": ["-y", "cocos-mcp-tools"] } } }

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

Read the full setup guide →

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.

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