Game engine runtime mcp
Provides tools for inspecting Unity scene hierarchies, executing headless test suites, safely writing scripts, and analyzing runtime logs for exceptions and performance metrics.
A production-grade Model Context Protocol (MCP) server that connects Anthropic's Claude AI directly with game engine runtimes (Unity & Godot). It enables automated testing, real-time error log filtering, scene hierarchy inspection, and safe file writing inside an isolated sandbox environment.
🌟 Key Features
Scene Hierarchy Inspection: Parse Unity (
.unity) and Godot (.tscn) scenes to give Claude complete awareness of active nodes, GameObjects, and attached components.Headless Test Runner: Execute game engine unit/integration tests directly without opening the GUI, avoiding command timeouts via asynchronous process handling.
Token-Optimized Log Filtering: Extracts only stacktraces, null-pointer exceptions, and compilation errors from engine logs to prevent blowing past context limits.
Strict Security Sandboxing: Protects host filesystems by restricting file read/write operations strictly to permitted game project folders.
Related MCP server: Godot-MCP
🛠️ Included Tools
inspeccionar_jerarquia_escena: Returns a structured overview of GameObjects or Nodes inside a scene file.ejecutar_suite_pruebas_motor: Triggers Unity or Godot inEditMode/PlayModeheadless testing modes.escribir_codigo_seguro: Safely writes/updates scripts inside the authorized project sandbox.analizar_fugas_memoria_y_logs: Synthesizes runtime logs to extract exceptions and performance metrics.
⚙️ Configuration for Claude Desktop
Add this block to your claude_desktop_config.json:
{
"mcpServers": {
"game-engine-runtime": {
"command": "npx",
"args": [
"-y",
"game-engine-runtime-mcp"
],
"env": {
"ALLOWED_PROJECT_PATHS": "C:/Users/YourUser/Projects/MyGame"
}
}
}
}Available Tools
4 toolsanalizar_fugas_memoria_y_logsB
Lee los últimos logs de consola y los sintetiza automáticamente extraendo NullPointerExceptions, Warnings y métricas de rendimiento.
Inputs: logFilePath (required), maxErrors.
ejecutar_suite_pruebas_motorA
Ejecuta el Test Runner nativo del motor en modo Headless, filtrando el resultado para devolver solo fallos críticos y stacktraces limpios.
Inputs: engine (required), testMode (required), projectPath (required).
escribir_codigo_seguroA
Escribe o actualiza código dentro del Sandbox del proyecto verificando la estructura previa.
Inputs: content (required), projectPath (required), relativePath (required).
inspeccionar_jerarquia_escenaB
Analiza la escena o mapa actual del motor (Unity/Godot) y devuelve el árbol de objetos, nodos y componentes asignados.
Inputs: scenePath (required), projectPath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct concern: scene hierarchy inspection, test execution, safe code editing, and log/memory analysis. There is no meaningful overlap or risk of an agent selecting the wrong tool.
All tool names follow the same verb_noun pattern in lowercase snake_case: inspeccionar, ejecutar, escribir, analyzar. The naming is uniform and predictable.
Four tools is a reasonable size for a focused engine-runtime toolbox. Each tool appears to serve a distinct workflow, though the set could be slightly richer for a broad 'runtime' server.
The set covers scene inspection, test execution, code editing, and log analysis, but lacks direct runtime control and live state mutation features like play/pause, object property changes, or scene manipulation. These gaps limit what an agent can accomplish in an actual running game engine session.
Maintenance
Related MCP Connectors
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
An MCP server that provides agents access to the KeldynAI platform
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Cloud-hosted MCP server for durable AI memory
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for automated Godot 4 game testing. Enables launching games, capturing errors, and verifying changes from Claude Code or any MCP client.1MIT
- AlicenseAqualityAmaintenanceOpen-source MCP server connecting AI agents (Claude, Cursor, GitHub Copilot, Gemini, and more) to the Godot Editor and runtime (Godot 4.x, C#). Additionally you can use AI Game Dev app (https://ai-game.dev) to generate images, video, audio, 3D, rig, animation and much more.15383Apache 2.0
- FlicenseNot gradedqualityDmaintenanceAn in-editor MCP server that exposes Unity convenience tools to AI assistants, allowing them to read console logs, execute menu items, dump scene hierarchies, and take screenshots.-
- FlicenseNot gradedqualityDmaintenanceMCP server that connects Claude to Unreal Engine 5.8 via the official Remote Control API, enabling asset manipulation, actor control, level operations, and AI-powered 3D model generation (via Meshy) through natural language.-