Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

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

NameWhat it isRequired
FUNPLAY_COCOS_MCP_URLOptional local Cocos MCP HTTP endpoint. Defaults to http://127.0.0.1:8765/.No
FUNPLAY_COCOS_MCP_TIMEOUT_SECONDSOptional 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

Cocos Creator with the extension installed from the Cocos Store or this repository. Open Funplay > MCP Server in the editor to start it and configure your AI client.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.