Skip to main content

MCP server for Unity game development — connect Cursor, Claude Code, Windsurf, and other AI clients to your Unity Editor.

Project description

GladeKit MCP

Connect Cursor, Claude Code, Windsurf, Claude Desktop, and VS Code to your Unity Editor.

222+ tools. A full Unity-aware system prompt. GLADE.md project context. Script semantic search. Skill calibration. All free, all local - no GladeKit account required.


Quick Start

1. Install the Unity bridge

In Unity: Window > Package Manager > + > Add package from git URL...

https://github.com/gladekit/gladekit-mcp.git?path=/unity-bridge

The bridge starts automatically when Unity opens. It runs on localhost:8765.

2. Install the MCP server

# Recommended — no install step, always latest:
uvx gladekit-mcp

# Or install permanently:
pip install gladekit-mcp

3. Add to your AI client

Pick your client below and add the config. Then open your Unity project and start prompting.

Claude Code (auto-connect)

Open your project root in Claude Code - if you cloned this repo, the .mcp.json auto-connects. Otherwise add to your Claude Code MCP settings:

{
  "mcpServers": {
    "gladekit-unity": {
      "command": "uvx",
      "args": ["gladekit-mcp"]
    }
  }
}

Cursor

Cursor Settings > MCP > Add new MCP server:

{
  "mcpServers": {
    "gladekit-unity": {
      "command": "uvx",
      "args": ["gladekit-mcp"]
    }
  }
}

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "gladekit-unity": {
      "command": "uvx",
      "args": ["gladekit-mcp"]
    }
  }
}

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "gladekit-unity": {
      "command": "uvx",
      "args": ["gladekit-mcp"]
    }
  }
}

VS Code (GitHub Copilot)

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "gladekit-unity": {
      "type": "stdio",
      "command": "uvx",
      "args": ["gladekit-mcp"]
    }
  }
}

Why GladeKit MCP?

Feature GladeKit MCP unity-mcp (CoplayDev)
Tools 222 granular tools ~40 consolidated tools
System prompt Full Unity intelligence — render pipeline detection, input system routing, tool discipline rules None
Project context GLADE.md — inject your game design doc into every request None
Script search Semantic search via OpenAI embeddings (bring your own key) None
Skill calibration Auto-detects beginner/expert, adapts response verbosity None
In-session memory remember_for_session — AI stores and recalls facts mid-conversation None
Paid tier GLADEKIT_API_KEY — RAG knowledge base + cross-session memory None
License MIT MIT

All features in the table above are free and local — no GladeKit account needed.


Features

222 tools across 14 categories

Scene • GameObjects • Scripts • Prefabs • Materials • Lighting • VFX & Audio • Animation • IK • Physics • Camera • UI • Input System • Terrain & NavMesh

All 222 tools are dispatchable. Claude Code sees 82 curated tools by default (Claude Code has a practical 128-tool limit). Use get_relevant_tools to discover extended tools for specialized work (blend trees, NavMesh, IK, Cinemachine, etc.).

GLADE.md — project game design doc

Create a GLADE.md file in your Unity project root. The MCP server reads it and injects it into every request. Works as a permanent context layer: your game's design intent, conventions, and constraints are always in scope.

# My Game

Genre: 2D platformer  
Player: CharacterController, double jump enabled  
Art style: pixel art, 16x16 sprites  
Naming: PascalCase for scripts, snake_case for folders

Script semantic search

With OPENAI_API_KEY set, the server finds relevant scripts using cosine similarity rather than filename matching. Ask "how does the enemy spawn?" and the right script surfaces — even if it's not named EnemySpawner.

Skill calibration

The server tracks vocabulary across your messages and detects whether you're a Unity beginner or expert. Beginners get plain-language explanations and encouraging framing. Experts get terse, technical responses. Calibration persists to .gladekit/skill_level.json in your project.

Paid tier — GLADEKIT_API_KEY

Coming soon.


Environment Variables

Variable Required Description
UNITY_BRIDGE_URL No Unity bridge URL (default: http://localhost:8765)
OPENAI_API_KEY No Enables script semantic search
GLADEKIT_API_KEY No Enables RAG knowledge base + cross-session memory

Troubleshooting

Bridge not connecting

  • Open Unity and wait for it to finish importing assets — the bridge starts automatically
  • Check Window > GladeKit MCP in Unity for bridge status
  • Verify nothing else is using port 8765: lsof -i :8765 (Mac/Linux) or netstat -ano | findstr 8765 (Windows)

uvx not found

  • Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh (Mac/Linux) or pip install uv
  • Or use pip install gladekit-mcp and replace uvx gladekit-mcp with python -m gladekit_mcp

Tools not appearing in Claude Code

  • Claude Code has a practical ~128-tool limit. GladeKit shows 82 curated tools by default — this is intentional. All 222 are dispatchable: use the get_relevant_tools tool to find extended tools by task description.

GLADE.md not being picked up

  • The file must be named exactly GLADE.md (case-sensitive on Mac/Linux) and placed in the Unity project root (same directory as Assets/, Packages/, ProjectSettings/)

Architecture

[AI Client: Cursor / Claude Code / Windsurf / Claude Desktop]
         │
         │ stdio MCP protocol
         ▼
[gladekit_mcp Python process]
    bridge.py → HTTP localhost:8765
    prompts.py → system prompt (auto-reads render pipeline, input system, GLADE.md)
    tools/ → 222 tool schemas + dispatch
    cloud.py → optional GLADEKIT_API_KEY → api.gladekit.dev
         │
         │ HTTP localhost:8765
         ▼
[Unity Bridge — C# Editor extension (UPM package)]
    UnityBridgeServer.cs → HttpListener on :8765
    222 ITool implementations
    UnityContextGatherer → scene, scripts, packages, render pipeline

Contributing

The Unity bridge (unity-bridge/) is the source of truth for C# tools. Adding a tool requires two files:

1. C# implementation (unity-bridge/Editor/Tools/Implementations/<Category>/MyTool.cs):

public class MyTool : ITool
{
    public string Name => "my_tool";
    public string Execute(Dictionary<string, object> args)
    {
        // ... Unity Editor API calls ...
        return ToolUtils.CreateSuccessResponse("Done", extras);
    }
}

2. Python schema (mcp-server/src/gladekit_mcp/tools/<category>.py):

Add an entry to the category's tool list following the existing format (OpenAI function-calling schema).

Tools are auto-discovered via reflection - no registration needed beyond these two files.


License

MIT: see LICENSE.

The GladeKit desktop app provides the full agentic loop experience (streaming, miss recovery, error tracking, memory UI) and is a separate commercial product.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gladekit_mcp-0.1.1.tar.gz (137.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gladekit_mcp-0.1.1-py3-none-any.whl (72.2 kB view details)

Uploaded Python 3

File details

Details for the file gladekit_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: gladekit_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 137.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gladekit_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b9bbf90d4c95986b2d609020da1c1dcc523268583949e76e5265b97f5de0756
MD5 20865fbe2b6530b8eef8199971360f97
BLAKE2b-256 cb0fda0c533daa331aed55f970180ae7bcff12ba8040f2a88f5fc9bc69da8ada

See more details on using hashes here.

Provenance

The following attestation bundles were made for gladekit_mcp-0.1.1.tar.gz:

Publisher: release.yml on Glade-tool/glade-mcp-unity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gladekit_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gladekit_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 72.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gladekit_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 483acc87cc4dc2d203fd07b9a37429c845810010b174edd42732e202f022fe1e
MD5 7696e39fd144ee3143df23346c55f4af
BLAKE2b-256 5c6c4df50d0d638698b3d62cc79d7bdb90827f194ccb686de17dd8b475d9f348

See more details on using hashes here.

Provenance

The following attestation bundles were made for gladekit_mcp-0.1.1-py3-none-any.whl:

Publisher: release.yml on Glade-tool/glade-mcp-unity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page