What is defold-mcp?
defold-mcp is an open-source Model Context Protocol (MCP) server that bridges the Defold game engine with AI-powered developer tools. It provides a set of tools to automate, inspect, and manage Defold projects programmatically, aimed at game developers using Defold.
How to use defold-mcp?
Clone the repository, run npm install, optionally configure a .env file, then start the server with node index.js. Connect with any MCP-compatible client, such as Cursor or Windsurf, by adding a .cursor/mcp.json configuration that points to your Node.js binary and the index.js file. Set environment variables like DEFOLD_PATH, MCP_PORT, and BOB_PATH as needed.
Key features of defold-mcp
- Exposes 20+ Defold project operations as MCP tools
- Works on Apple Silicon and supports
.env configuration
- Automates creating, listing, and configuring Defold projects
- Generates Lua scripts, collections, sprites, and tilemaps programmatically
- Debugs projects and captures console output
- Enables hot-reloading and analytics on project modifications
Use cases of defold-mcp
- Launch and debug a Defold project from an AI assistant
- Generate and edit Lua scripts and modules automatically
- Create collections, sprites, tilemaps, and particle effects via code
- Manage project settings and dependencies without opening the editor
- Integrate Defold with Cursor or Windsurf for AI-assisted game development
Comments