AccelByte Unity MCP Server
OfficialProvides tools for generating AccelByte AGS uGUI prefabs, managing the Unity editor bridge, performing scene setup (Canvas, EventSystem, panels), and interacting with the Unity editor for prefab generation, C# script compilation, and SDK configuration.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AccelByte Unity MCP ServerGenerate a login screen prefab using the AGS recipe."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AccelByte Unity MCP Server
An MCP (Model Context Protocol) server that gives AI assistants the tools to generate AccelByte AGS uGUI prefabs in Unity projects, look up AccelByte Unity SDK best practices, search Bytewars C# example components, and configure SDK credentials — all from a Claude Code or Cursor session.
Prerequisites
Python 3.10+
Unity Hub with the Unity editor version matching your project (auto-detected from
ProjectSettings/ProjectVersion.txt)com.accelbyte.ui-toolspackage installed in the target Unity project (see Installing the Unity Package)
Related MCP server: Unity-MCP
Installation
cd accelbyte-unity-mcp
pip install -r requirements.txt
python server.pyNo cache generation step is needed. Unlike the Unreal MCP server, this server talks directly to the live Unity project and editor — there is no offline symbol database to build.
MCP Configuration
Add the server to the .mcp.json at your Unity project root so Claude Code starts it automatically on session load:
{
"mcpServers": {
"accelbyte-unity-mcp": {
"type": "stdio",
"command": "python",
"args": ["D:\\ags-ai\\accelbyte-unity-mcp\\server.py"]
}
}
}Installing the Unity Package
Copy the embedded package into your Unity project:
Copy-Item -Path "D:\ags-ai\accelbyte-unity-mcp\data\com.accelbyte.ui-tools" `
-Destination "<YourUnityProject>\Packages\com.accelbyte.ui-tools" `
-Recurse -ForceGenerated project prefabs are written to Assets/AGS/UI/Generated/. Reusable component prefabs go under Assets/AGS/UI/Components/.
Tools
Prefab Generation
Tool | What it does |
| Pick the right AGS recipe for a feature (login, leaderboard, friends list, etc.) |
| One-shot readiness report: style approval, recipe selection, validation blockers, bridge status |
| Validate a recipe spec file without opening Unity |
| Dry-run: resolve recipe → prefab spec without creating any assets |
| Generate a project-owned uGUI prefab (bridge mode when editor is open, batch mode when closed) |
| Generate reusable component prefabs under |
| Patch an existing prefab with narrow property changes |
| Inspect generated prefab health (layout, backing class, components, collections) |
Style
Tool | What it does |
| Discover uGUI/TMP style assets in the project and optionally approve the style fingerprint |
AGS Core Kit
Tool | What it does |
| Inspect package-owned AGS kit prefabs against component specs (read-only) |
| Rebuild all AGS core kit prefabs from scratch (bridge or batch mode) |
Scene Setup
Tool | What it does |
| Check scene readiness: Canvas, EventSystem, input module compatibility, active panels, blockers |
| Set up Canvas/EventSystem, instantiate generated panels, attach MenuManager, and save the scene |
Editor & Bridge
Tool | What it does |
| Detect the expected Unity editor, whether it is running, and whether |
| Lightweight health check for the editor bridge at |
| Refresh AssetDatabase and trigger C# script recompilation after writing a backing class |
Backing Class & Entry Candidates
Tool | What it does |
| Validate that |
| Report approved project prefab candidates for generated list or collection rows |
SDK & Example Components
Tool | What it does |
| AccelByte Unity SDK best-practices guide with C# code templates for a feature topic |
| Search Bytewars C# source for classes matching a feature; returns ranked metadata and URIs |
| Read the actual C# source files returned by |
| Write AccelByte SDK credentials and config files into a Unity project |
How the Bridge Works
When Unity is open with com.accelbyte.ui-tools loaded, generation and scene setup go through a localhost HTTP bridge:
http://127.0.0.1:48758The bridge starts automatically when the editor loads the package. Prefabs generated through it appear in the open project immediately — no editor restart needed.
When Unity is closed, unity_ui_generate and unity_ui_kit_build fall back to Unity batch mode (-batchmode -nographics). The correct Unity executable is matched against ProjectSettings/ProjectVersion.txt. For non-standard installs or CI environments, set UNITY_EDITOR_PATH:
$env:UNITY_EDITOR_PATH = "C:\Program Files\Unity\Hub\Editor\6000.4.9f1\Editor\Unity.exe"If the editor is running but the bridge is not reachable (script compilation in progress, package not yet loaded), the MCP returns an actionable error — it will not launch a competing batch instance against an open project.
Typical Workflow
Check the editor —
unity_editor_statusconfirms Unity is running and the package is installed.Select a recipe —
unity_ui_select_recipewith a natural-language feature description returns a spec stub.Preflight —
unity_ui_preflightvalidates style approval, recipe fit, entry candidates, and bridge readiness in one call.Write a C# backing class (if the recipe requires one) — use
get_accelbyte_unity_how_toandsearch_unity_example_components/describe_unity_example_componentsfor SDK patterns and reference implementations.Verify the backing class —
unity_ui_verify_backing_classconfirms[SerializeField]fields match the spec.Trigger recompile —
unity_trigger_recompileimports the new file and starts compilation; pollunity_ui_bridge_healthuntilisCompilingis false.Generate —
unity_ui_generatecreates the prefab atAssets/AGS/UI/Generated/.Set up the scene —
unity_ui_scene_preflight+unity_ui_scene_setupwires the panel into a Canvas with the correct input module and saves the scene.
Project Structure
.
├── server.py # MCP server entry point — registers all tools
├── requirements.txt # Python dependencies
├── pyproject.toml # Package metadata and entry point
├── generate_source_cache.py # Optional: regenerate Bytewars C# source index
├── data/
│ └── com.accelbyte.ui-tools/ # Unity Editor package (copy into your project's Packages/)
│ ├── Tools/ # Python UI tools library used by this server
│ ├── Prefabs/ # Package-owned AGS core kit prefabs
│ └── Specs/ # Component specs and recipes
└── tests/ # Python testsTroubleshooting
Bridge not reachable (unity_ui_bridge_health returns ok: false)
Unity is open but the bridge is down. This usually means scripts are still compiling or the package failed to load. Wait for compilation to finish (check the editor status bar), or reimport Packages/com.accelbyte.ui-tools via the Package Manager.
Editor not detected
The server matches the Unity version in ProjectSettings/ProjectVersion.txt against known install roots. If your editor is in a non-standard location, set UNITY_EDITOR_PATH to the full path of Unity.exe before starting the server.
Compile errors block generation
unity_ui_generate refuses to proceed when the editor reports compile errors. Fix the errors shown in Unity's Console, then call unity_trigger_recompile and wait until isCompiling is false before retrying.
License
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AccelByte/accelbyte-unity-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server