Skip to main content
Glama
gm-forge-mcp

gm-forge-mcp

by nicklesimba

gm-forge-mcp is an MCP server that lets an AI assistant create and edit GameMaker projects: scripts, objects, rooms, sprites, sounds, and the rest of the .yyp catalog. In practice that means you can ask Claude to scaffold a new project, import a folder of sprite frames, or rename an object everywhere it's referenced, and the project still opens in the IDE afterwards.

Early stage (0.1.0) - back up your project before letting anything write to it.

GameMaker's file format punishes sloppy edits quietly. A room missing its creationCodeFile field, or a sound whose declared sample rate doesn't match the real .wav, can look fine right up until the IDE fails to open the project or crashes. Every writer here is modeled on files GameMaker itself produced, and two tools use GameMaker's own tooling directly: lint_project runs the official headless validator (ProjectTool) and compile_project runs the real compiler (Igor), which catches actual GML errors.

Requirements

  • Node.js 20+

  • GameMaker (Windows) for lint_project's ProjectTool check and for compile_project. Both skip with a clear message when GameMaker isn't installed; everything else works cross-platform.

Related MCP server: GB Studio MCP Server

Install

git clone https://github.com/nicklesimba/gm-forge-mcp.git
cd gm-forge-mcp
npm install
npm run build

Configure

Add to your MCP client config (e.g. Claude Desktop's claude_desktop_config.json):

{
  "mcpServers": {
    "gm-forge": {
      "command": "node",
      "args": ["/absolute/path/to/gm-forge-mcp/dist/index.js"]
    }
  }
}

Tools

Projects -- create_project, list_resources, find_references, delete_resource, rename_resource, lint_project, compile_project

Groups -- add_texture_group, add_audio_group

Scripts -- add_script, edit_script, get_script_info

Objects -- add_object, add_object_event, get_object_info

Rooms -- add_room, edit_room, add_room_instance, reorder_room, move_room_relative, get_room_info, find_tile_region

Sprites -- add_sprite_from_images, edit_sprite, get_sprite_info

Tilesets -- add_tileset, edit_tileset, get_tileset_info

Sounds -- add_sound, edit_sound, get_sound_info

Shaders -- add_shader, edit_shader, get_shader_info

Fonts -- add_font, edit_font, get_font_info

Notes -- add_note, get_note_info

Extensions -- add_extension, get_extension_info

Particle systems -- add_particle_system, get_particle_system_info

Animation curves -- add_anim_curve, get_anim_curve_info

delete_resource and rename_resource search the whole project for references before touching anything.

Testing

npm test

The suite checks every writer's output against reference schemas captured from real GameMaker files, simulates files GameMaker has resaved (trailing commas and all), and runs live ProjectTool/Igor checks when those are installed. CI runs on a Windows runner without GameMaker, so the live checks skip there and the summary reports the skip count. Every resource type has also been loaded in the actual IDE, including a project created from scratch by create_project.

See also

GameMaker is required to use any of this. Thanks to YoYo Games for making game-making more accessible for two decades and counting!

@petah/gamemaker-mcp covers GML function/API reference lookup, which this project doesn't.

License

MIT - see LICENSE.

Available Tools

15 tools
add_noteA

Create a new Notes resource (plain-text project documentation, never compiled into the game) and register it in the project

Inputs: noteName (required), projectDir (required), content.

add_scriptA

Create a new GML script and register it in the YYP

Inputs: projectDir (required), scriptName (required), code.

add_texture_groupB

Create a new, additional texture group in the project (beyond the default one auto-provisioned for sprites/fonts)

Inputs: groupName (required), projectDir (required).

compile_projectA

Actually compile the project with GameMaker's real build tool (Igor) to catch real GML errors -- duplicate function names, syntax errors -- that structural checks like lint_project can't see. NOTE: a successful compile briefly LAUNCHES the built game (then kills it immediately), so the project's own code runs; only compile projects you trust. Requires the GameMaker runtime to be installed (skips gracefully with a clear message if not). Windows only.

Inputs: projectDir (required).

create_projectB

Create a new GameMaker YYP project at the specified directory if it does not exist

Inputs: name (required), projectDir (required).

edit_spriteA

Edit an existing sprite's origin, collision kind, and/or bounding box -- not its frame data

Inputs: projectDir (required), spriteName (required), xorigin, yorigin, +6 more.

find_tile_regionA

Check whether a world point in a room sits on a real tile, decoding GameMaker's compressed tile layer data (invisible to get_room_info's instance list). If occupied, reports the connected region of tiles it belongs to -- use this to confirm a spot is actually inside tile-drawn geometry (a building, a floor) before placing something there, not just clear of instances.

Inputs: x (required), y (required), roomName (required), projectDir (required).

get_note_infoA

Get an existing note's content

Inputs: noteName (required), projectDir (required).

get_object_infoA

Get detailed info about an existing object: sprite, parent, physics, and its full event list with human-readable event names

Inputs: objectName (required), projectDir (required).

get_room_infoA

Get detailed info about an existing room: dimensions, persistence, layers, and every placed instance with its position

Inputs: roomName (required), projectDir (required).

get_sprite_infoA

Get detailed info about an existing sprite: real dimensions, frame count, origin, collision settings

Inputs: projectDir (required), spriteName (required).

lint_projectA

Validate a whole project for dangling references, orphaned resources, missing folder registrations, missing event code files, and sound/sprite metadata that doesn't match the real underlying file -- run this before trusting a project is safe to open

Inputs: projectDir (required).

list_resourcesA

List resource names by type from the YYP file

Inputs: projectDir (required), kind.

move_room_relativeA

Move a room immediately before or after another named room in the room order

Inputs: position (required), roomName (required), projectDir (required), targetRoomName (required).

reorder_roomB

Move a room to an absolute position in the game's room order (what room_goto_next/previous follow at runtime)

Inputs: newIndex (required), roomName (required), projectDir (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: separate info tools for notes, objects, rooms, sprites; distinct operations for editing, compiling, listing, creating, reordering, and linting. No two tools have overlapping purposes.

    Naming Consistency3/5

    Naming uses a verb_noun pattern but with varied verbs (get, edit, compile, add, reorder, move, find, lint). While readable, the lack of a single consistent prefix style (e.g., all get_ or all add_) creates minor confusion.

    Tool Count4/5

    With 15 tools, the set covers project creation, resource management, information retrieval, and validation. Slightly on the higher side but well-scoped for a GameMaker development assistant.

    Completeness3/5

    Covers creation, reading, updating (limited), and validation. Missing delete/removal tools and note/object editing capabilities. Agents can perform core workflows but may encounter dead ends when needing to modify certain resources.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables creation, validation, and manipulation of Game Boy Studio projects through the Model Context Protocol, allowing AI agents to generate game assets, scenes, and actors.
      189 npm
      25
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to edit GameMaker projects, compile with GameMaker's own toolchain, and live-connect to a running game to inspect and steer it.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI assistants to launch a game engine editor, run and debug projects, capture console output, and manage scenes, nodes, sprites, and UIDs.
      14
      MIT