Funplay Cocos MCP
Lets your AI agent inspect and edit your Cocos Creator project: run scripts, build UI, take screenshots and check assets.
383 stars on GitHubby FunplayAILicense MITUpdated 25 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add funplay-cocos -- npx -y funplay-cocos-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
FUNPLAY_COCOS_MCP_URL | Optional local Cocos MCP HTTP endpoint. Defaults to http://127.0.0.1:8765/. | No |
FUNPLAY_COCOS_MCP_TIMEOUT_SECONDS | Optional HTTP timeout per request in seconds. Defaults to 120. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Create a login page with account and password fields and a main login button.
Inspect the active scene and list the nodes under Canvas.
What it is
Funplay MCP for Cocos is an extension that runs an MCP server inside the Cocos Creator editor. Its main tool, execute_javascript, runs JavaScript in the scene or in the editor, so the agent can build UI, add components, inspect results and capture screenshots.
What it can do
execute_javascript: run JavaScript in the scene or editor context- Screenshots to check the result
- Prompts and resources
- Asset dependency validation
- Tool profiles to choose which tools are exposed
- One-click client configuration
When to use
- βΊWhen you want an agent to build a login page under your Canvas.
- βΊWhen you want the agent to inspect a scene and attach components.
- βΊWhen you want to check a screenshot of the result after an edit.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
unity-ai-game-creatorHelps your agent create complete Unity games from ideas. It generates visual elements, scene structures, and sounds, guiding development step-by-step.cv-detectionHelps your agent pick an object detection architecture and training setup for benchmarks such as COCO and Pascal VOC, including YOLO, Faster R-CNN, and DETR.build-game-map-editorHelps your agent build a browser map editor for a game, so designers can inspect and draft level placements without changing live game data.Frequently asked questions
Is it free and open source?
Yes, it is MIT-licensed according to the readme.
Which AI clients does it support?
Claude Code, Cursor, Codex, VS Code Copilot, Trae, Kiro, Qoder, Kimi Code, OpenCode, CodeBuddy and DeepSeek Harness.
How does my AI client connect?
Use the one-click configuration in the MCP Server panel, or edit the config by hand with the URL shown in the panel.
Which port does it use?
A project-based port from 20000 to 29999 for new projects. If it is busy, a fallback port is used.
Can I install it for all projects?
Yes, use Install for All Projects in MCP Settings, once per Creator version.
Does the interface support Chinese?
Yes. The panel follows the Creator interface language, in English or Chinese. Tool IDs stay in English.
If it does not work
- βΊRestart Cocos Creator or reload extensions after you install the extension.
- βΊUse the exact URL shown in the MCP Server panel, and pin the port if a temporary fallback port is active.
- βΊIf you have both a project copy and a global copy, remove or disable one to avoid conflicts.
5 new skills a week. 1 minute to read.