MCP server for the Defold game engine

MCP server for the Defold game engine

defold-mcp•bychadaragorn

An open-source Model Context Protocol server that exposes Defold project operations as MCP tools for automation and AI-assisted game development.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes a comprehensive set of Defold project operations as MCP tools.
  • •Can create and manage Defold projects, including listing, creating, and configuring settings.
  • •Generates scripts and assets such as Lua scripts, collections, sprites, tilemaps, particle effects, and GUI scenes.
  • •Runs projects in debug mode, captures console output, and retrieves analytics on project modifications.

BEST FOR

  • •AI-assisted Defold game development workflows through MCP-compatible clients.
  • •Automating Defold project creation, scripting, and asset generation programmatically.
  • •Running and debugging Defold projects with captured output.

ABOUT DEFOLD-MCP

MCP server for the Defold game engine is cataloged as an MCP server attributed to chadaragorn. An open-source Model Context Protocol server that exposes Defold project operations as MCP tools for automation and AI-assisted game development. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for the Defold game engine are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What kinds of Defold operations can the server perform?

It can launch and debug projects, create and edit Lua scripts and modules, create collections and assets, manage project settings and dependencies, and enable hot-reloading and analytics.

Does it include tools for creating game assets like sprites and tilemaps?

Yes, tools include create_sprite and create_tilemap for creating and adding those assets.

Is defold-mcp licensed for open-source use?

Yes, it is MIT licensed.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 1243f4bc8c3f · 采集于 2026-11-13 10:03:10 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

defold-mcp

Note: This is my first attempt at creating an MCP (Model Context Protocol) server. It is not perfect, in fact it's missing a lot of functions, but I hope someone smarter than me can take what I've started and really run with it!


🚀 What is defold-mcp?

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:

  • Launch and debug Defold projects
  • Generate and edit Lua scripts and modules
  • Create collections, sprites, tilemaps, and more
  • Manage project settings and dependencies
  • Enable hot-reloading and real-time analytics
  • Integrate with tools like Cursor for AI-assisted game development

✨ Features

  • Comprehensive Toolset: Exposes a wide range of Defold project operations as MCP tools (see below for the full list).
  • 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.
  • Extensible: Built for others to improve, extend, and adapt for new workflows.

🛠️ Provided Tools

defold-mcp exposes the following MCP 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

...and more! See index.js for the full list and details.

⚡️ Getting Started

  1. Clone the repository:
    git clone https://github.com/yourusername/defold-mcp.git
    cd defold-mcp
    
  2. Install dependencies:
    npm install
    
  3. Configure environment (optional): Create a .env file to override defaults (see index.js for variables like DEFOLD_PATH, MCP_PORT, etc).
  4. Run the server:
    node index.js
    
  5. Connect with your favorite MCP-compatible client (such as Cursor).

🛠️ Using with Cursor or Windsurf

If you are using Cursor or Windsurf, you do not need to manually run the server. Instead, add a configuration file to your project at .cursor/mcp.json to let your client automatically launch and manage the server for you.

Here's an example configuration:

{
  "mcpServers": {
    "defold-mcp": {
      "command": "/path/to/your/node/binary", // e.g., ~/.nvm/versions/node/v22.14.0/bin/node
      "args": ["/path/to/where/you/cloned/defold-mcp/index.js"], // e.g., ~/git/defold-mcp/index.js
      "env": {
        "MCP_TRANSPORT": "stdio",
        "DEFOLD_PATH": "/Applications/Defold.app/Contents/MacOS/Defold",
        "MCP_PORT": "3000",
        "MCP_HOST": "localhost",
        "BOB_PATH": "/desired/path/for/bob.jar" // e.g., ~/defold/bob-1.9.6.jar
      }
    }
  }
}
  • command: Path to your Node.js binary. You can find this by running which node in your terminal.
  • args: Path to the index.js file of this project, wherever you cloned it.
  • BOB_PATH: Path where you want the Defold bob.jar file to be installed or found.

This allows Cursor or Windsurf to automatically start, stop, and connect to the defold-mcp server whenever you open your project. Just adjust the paths and environment variables as needed for your setup.

💡 Why This Project?

I created defold-mcp as my first experiment in building an MCP server and integrating it with the Defold game engine. My goal was to make Defold more accessible to automation and AI-driven workflows. I know there are rough edges and things that could be done better, but I hope this project inspires others to contribute, improve, and take it much further!

If you see ways to make it better, please fork, contribute, or reach out. Let's build something awesome for the Defold community together.

🤝 Contributing

Contributions, bug reports, and feature requests are all welcome! Please open an issue or submit a pull request.

📄 License

This project is MIT licensed.


Created with curiosity and a love for game development.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for the Defold game engine from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/defold-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools