MCP Server for Game Maker Studio 2
Configuration
View docs{
"mcpServers": {
"atennebris-gms2-mcp-server": {
"command": "python",
"args": [
"mcp_serv/mcp_server.py"
],
"env": {
"GMS2_PROJECT_PATH": "YOUR_GMS2_PROJECT_PATH"
}
}
}
}You run a GameMaker Studio 2 project MCP server inside Cursor IDE to quickly access project structure, GML code, and asset metadata. It exposes practical tools that help developers analyze projects and lets AI agents understand assets without opening GameMaker Studio 2.
You interact with the MCP server through a Cursor IDE MCP client. Once the server is running, you can ask the AI agent to explore the project, read GML content, examine rooms and objects, or export data in a readable format. Use the available tools to inspect project structure, assets, and relationships without launching the GameMaker editor.
Prerequisites you need before starting:
- Python 3.8 or newer (3.10+ recommended; tested with 3.12)
- GameMaker Studio 2 project (with a .yyp file) to point the MCP server at
- Cursor IDE with MCP support
Step 1: Clone the server repository
Step 2: Create and activate a virtual environment
Step 3: Install dependencies
Step 4: Configure Cursor MCP server integration
Step 5: Restart Cursor IDE and initialize MCP servers status
Configure Cursor to start the MCP server from the project root. Use the provided example configuration for a local, stdio-based server that runs Python and points to the MCP script.
{
"mcpServers": {
"gms2-mcp": {
"command": "python",
"args": ["C:/Users/YourName/Desktop/gms2-mcp-server/mcp-serv/mcp_server.py"],
"env": {
"GMS2_PROJECT_PATH": "C:/Users/YourName/Downloads/Your GMS2 Project"
}
}
}
}Scans the GMS2 project to count assets and locate GML files, giving you a quick overview of structure.
Reads the contents of a specified GML file for inspection or AI analysis.
Provides detailed information about rooms from .yy files, including objects and layouts.
Analyzes objects and their events from .yy files to reveal behavior and relationships.
Returns sprite details such as dimensions, frames, and configuration settings.
Exports all project data to a human-readable text format for review or offline analysis.
Lists all assets by category (Objects, Scripts, Rooms, Sprites, etc.)