My attempt to create a MCP server that can be used with cursor to work on a defold project
My attempt to create a MCP server that can be used with cursor to work on a defold project. That is what the defold mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
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:
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
The server publishes 14 tools. What each one is for:
launch_defold — Launch the Defold editor for a projectrun_project — Run a Defold project in debug mode and capture outputcreate_project — Create a new Defold project with a basic structurelist_projects — List all Defold projects in a directoryget_project_settings — Read settings from game.projectupdate_project_settings — Update settings in game.projectcreate_script — Create a new Lua scriptedit_script — Edit an existing Lua scriptcreate_lua_module — Create a reusable Lua modulecreate_collection — Create a new collectionadd_game_object — Add a game object to a collectionadd_component — Add a component (sprite, script, etc.) to a game objectConfiguration is passed through the environment: MCP_TRANSPORT, DEFOLD_PATH, MCP_PORT, MCP_HOST, BOB_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
This sits in the file and storage access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Defold's toolset — launch_defold, run_project, create_project and 11 more — is a fair guide to whether it matches your workflow. It is maintained by ChadAragorn; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| 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 |
| Variable | Description | Required |
|---|---|---|
| MCP_TRANSPORT | Configuration value read at startup. | Optional |
| DEFOLD_PATH | Filesystem location the server is allowed to use. | Optional |
| MCP_PORT | Configuration value read at startup. | Optional |
| MCP_HOST | Endpoint or connection string the server talks to. | Optional |
| BOB_PATH | Filesystem location the server is allowed to use. | Optional |
Scoped local file access — read, write, search and reorganise files in directories you explicitly allow.
Search and read your Drive — Docs, Sheets and files become context your assistant can actually use.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Build a programmable telecommunications stack for connecting telephony services with the Internet via a cloud-based utility.
Chat with your second brain — search, read and write vault notes through the Local REST API.
Connects AI models to an Obsidian knowledge base for direct access and manipulation of notes and folders.