About
Cocos MCP Server is a comprehensive Model Context Protocol (MCP) plugin for Cocos Creator that enables AI coding assistants to directly control the game editor. It bridges AI agents like Claude, Cursor, and Claude CLI with Cocos Creator 3.8.0 and above through seamless integration and one-click installation. Key features of Cocos MCP Server: - Complete editor control through 50+ consolidated tools covering scene management, node lifecycle, component operations, prefab workflows, and asset management - Prefab lifecycle management including creation, instantiation, synchronization, and complex reference relationships with full format compatibility with Cocos Creator - Asset management capabilities for importing, deleting, and analyzing dependencies across sprites, textures, scripts, and other game resources - Project-level operations including build processes, configurations, debugging console access, and log management - Event binding functionality for nodes, components, and resources aligned with official Cocos Creator implementations - Efficient "operation code + parameters" architecture that reduces AI token consumption while improving call reliability - Cross-platform AI assistant support tested with Claude, Cursor, and compatible with any MCP-capable editor or IDE
README
Cocos Creator MCP 服务器插件
一个适用于 Cocos Creator 3.8+ 的综合性 MCP(模型上下文协议)服务器插件,使 AI 助手能够通过标准化协议与 Cocos Creator 编辑器进行交互。一键安装和使用,省去所有繁琐环境和配置。已经测试过Claude客户端Claude CLI和Cursor,其他的编辑器理论上也完美支持。
🚀 现在提供 50 个强力融合工具,实现99%的编辑器控制!
视频演示和教学
[](https://www.bilibili.com/video/BV1mB8dzfEw8?spm_id_from=333.788.recommend_more_video.0&vd_source=6b1ff659dd5f04a92cc6d14061e8bb92)
##快速链接
更新日志
🚀 重大更新 v1.5.0(2024年7月29日)(已经在cocos 商城更新,github版本将在下个版本同步更新)
cocos store:https://store.cocos.com/app/detail/7941
工具体系与操作码
{
"tool": "node_lifecycle",
"arguments": {
"action": "create",
"name": "MyNode",
"parentUuid": "parent-uuid",
"nodeType": "2DNode"
}
}
---
主要功能类别(部分示例)
v1.4.0 - 2025年7月26日(当前github版本)
#### 🎯 重大功能修复
{"__id__": x} 格式
- 外部引用: 预制体外部的节点和组件引用正确设置为 null
- 资源引用: 预制体、纹理、精灵帧等资源引用完整保留UUID格式
#### 🔧 核心改进
#### 🐛 错误修复
Cannot read properties of undefined (reading '_name') 错误placeHolder.initDefault is not a function 错误_objFlags 等关键属性被组件数据覆盖#### 📈 功能增强
#### 💡 技术突破
🎉 现在预制体创建功能已完全可用,支持复杂的组件引用关系和完整的预制体结构!
v1.3.0 - 2024年7月25日
#### 🆕 新功能
#### 🔧 改进
#### 🐛 错误修复
#### 🏗️ 技术改进
#### 📊 统计信息
v1.2.0 - 之前版本
快速使用
Claude cli配置:
claude mcp add --transport http cocos-creator http://127.0.0.1:3000/mcp(使用你自己配置的端口号)
Claude客户端配置:
{ "mcpServers": {
"cocos-creator": {
"type": "http",
"url": "http://127.0.0.1:3000/mcp"
}
}
}
Cursor或VS类MCP配置
{ "mcpServers": {
"cocos-creator": {
"url": "http://localhost:3000/mcp"
}
}
}
功能特性
🎯 场景操作 (scene_*)
🎮 节点操作 (node_*)
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support