defold-mcp
If you are the rightful owner of defold-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
defold-mcp is an open-source Model Context Protocol (MCP) server designed to integrate the Defold game engine with modern developer tools and AI-powered workflows.
defold-mcp is a pioneering open-source MCP server that aims to enhance the Defold game engine by integrating it with modern developer tools and AI workflows. It provides a comprehensive set of tools to automate, inspect, and manage Defold projects programmatically. This server allows developers to launch and debug projects, generate and edit Lua scripts, manage project settings, and enable hot-reloading and real-time analytics. It is designed to work seamlessly on Apple Silicon Macs and supports environment configuration via `.env` files. The server is extensible, allowing developers to improve and adapt it for new workflows. defold-mcp is particularly useful for developers looking to integrate AI-assisted game development tools like Cursor.
Features
- Comprehensive Toolset: Exposes a wide range of Defold project operations as MCP tools.
- Apple Silicon & Dotenv Support: Works out-of-the-box on Apple Silicon Macs and supports environment configuration via `.env` files.
- Automated Project Management: Easily create, list, and configure Defold projects from the command line or through compatible clients.
- Script & Asset Automation: Programmatically generate scripts, collections, sprites, and more.
- Debug & Analytics: Run projects in debug mode, capture console output, and retrieve analytics on project modifications.
Tools
launch_defold
Launch the Defold editor for a project
run_project
Run a Defold project in debug mode and capture output
create_project
Create a new Defold project with a basic structure
list_projects
List all Defold projects in a directory
get_project_settings
Read settings from
game.project
update_project_settings
Update settings in
game.project
create_script
Create a new Lua script
edit_script
Edit an existing Lua script
create_lua_module
Create a reusable Lua module
create_collection
Create a new collection
add_game_object
Add a game object to a collection
add_component
Add a component (sprite, script, etc.) to a game object
create_sprite
Create and add a sprite asset
create_tilemap
Create and add a tilemap asset
create_particlefx
Create and add a particle effect
create_camera
Create and add a camera component
create_factory
Create a factory component for spawning game objects
create_gui
Create a GUI scene and script
setup_physics
Configure physics for a collision object
build_project
Build the project for a target platform
enable_hot_reload
Enable hot-reload by watching project files
add_native_extension
Add a native extension
get_project_analytics
Retrieve analytics on project modifications