Defold MCP Server

My attempt to create a MCP server that can be used with cursor to work on a defold project

Local serverstdio

What is the Defold MCP Server?

My attempt to create a MCP server that can be used with cursor to work on a defold project

The short version

defold-mcp is an open-source Model Context Protocol (MCP) server designed to bridge the Defold game engine with modern developer tools and AI-powered workflows. It provides a set of powerful tools to automate, inspect, and manage Defold projects programmatically, making it easier for developers to:

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
launch_defoldLaunch the Defold editor for a project
run_projectRun a Defold project in debug mode and capture output
create_projectCreate a new Defold project with a basic structure
list_projectsList all Defold projects in a directory
get_project_settingsRead settings from game.project
update_project_settingsUpdate settings in game.project
create_scriptCreate a new Lua script
edit_scriptEdit an existing Lua script
create_lua_moduleCreate a reusable Lua module
create_collectionCreate a new collection
add_game_objectAdd a game object to a collection
add_componentAdd a component (sprite, script, etc.) to a game object
create_spriteCreate and add a sprite asset
create_tilemapCreate and add a tilemap asset

Configuration

VariableDescriptionRequired
MCP_TRANSPORTConfiguration value read at startup.Optional
DEFOLD_PATHFilesystem location the server is allowed to use.Optional
MCP_PORTConfiguration value read at startup.Optional
MCP_HOSTEndpoint or connection string the server talks to.Optional
BOB_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Defold to launch defold.”
  • “Use Defold to run project.”
  • “Use Defold to create project.”

Frequently asked questions

Add a `.cursor/mcp.json` file to your project with the path to your Node.js binary and the `index.js` file, along with environment variables such as `MCP_TRANSPORT`, `DEFOLD_PATH`, and `BOB_PATH`. The client will automatically start and manage the server.