unity-mcp

unity-mcp is a skill for Claude Code, Codex from Dqz00116/skill-lib. It costs 25 tokens per session (4,334 once invoked), scanned A, original, MIT.

A guide for connecting an AI agent to the Unity MCP server, a bridge that lets software control and inspect the Unity game editor.

In plain words
What is it for?
Use it to create or modify Unity objects, components, scenes, assets, and scripts through automation, or to inspect and debug a Unity scene.
Why use it?
It explains the required operations and data formats and helps diagnose connection or session problems.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dqz00116/skill-lib/unity-mcp
Any agent
npx skills add Dqz00116/skill-lib --skill unity-mcp
Clone the repo
git clone --depth 1 https://github.com/Dqz00116/skill-lib

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unity-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/dqz00116/skill-lib/unity-mcp.svg)](https://agentmods.dev/skills/dqz00116/skill-lib/unity-mcp)
Your own site
<a href="https://agentmods.dev/skills/dqz00116/skill-lib/unity-mcp"><img src="https://agentmods.dev/badge/skills/dqz00116/skill-lib/unity-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.04334
Opus 5 $0.00013 $0.02167
Sonnet 5 $0.00005 $0.00867
Haiku 4.5 $0.00003 $0.00433

Measured 5d ago against content hash c87dc209070c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

unity-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

unity-mcp/SKILL.md · 631 lines

How it starts

The opening of the file, as written. The whole thing — 631 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SKILL: unity-mcp

Overview

A reference guide for deploying and using the Unity MCP Server, covering API operations, data type formats, and common issue resolution.

Complete deployment guide, API usage tips, and troubleshooting manual for the Unity MCP (Model Context Protocol) Server.

Description

This skill covers:

  • Starting and connecting the Unity MCP Server
  • Common API operations (GameObject, Component, Scene, Asset)
  • Parameter format specifications (Color, Vector3, and other special types)
  • Common problem troubleshooting and resolution approaches

When to Use

  • You need to control the Unity editor via AI automation
  • You are batch-creating or modifying GameObjects, components, or scenes
  • You are programmatically generating Unity assets or scripts
  • You encounter connection issues, session errors, or data type format problems with Unity MCP
  • You need to remotely debug or inspect a Unity scene

Do not use when:

  • The task is purely about Unity game logic coding without MCP integration
  • You only need general Unity scripting help without editor automation
  • You are working with a different MCP server or game engine

When to Invoke

Usage scenarios:

  • Need to control the Unity editor via AI to perform automated operations
  • Batch create/modify scene objects, components
  • Procedurally generate assets or scripts
  • Remote debugging and scene inspection
  • Automated testing workflows

Prerequisites

Environment requirements:

  • Unity 6000+ (or other supported versions)
  • Unity MCP plugin/package installed
  • Python uvx tool

1. Check if MCP Plugin is Installed

Check in the Unity editor:

  • Whether the menu bar has MCP or Window → MCP
  • Whether the Project window has MCP or McpForUnity related folders

If the MCP plugin is not installed:

  1. Install via Unity Asset Store:
    • Open Window → Package Manager
    • Select Unity Registry or My Assets
    • Search for "MCP" or "MCP for Unity"
    • Click Install

Read the full file on GitHub · 631 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 631 lines · 25 tokens per session scan A c87dc209070c

Subscribe to this mod's changes

unity-mcp is a skill published in the GitHub repository Dqz00116/skill-lib (22 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 4,334 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

reversi-master

One-click install + model switch:Claude Code,Codex CLI (OpenAI), Grok Build (xAI), DeepSeek Harness, Kimi Code (Moonshot) ,Qwen Code,Aider,OpenCode,MiMo Code (Xiaomi),ZCode (Z.AI),OpenClaw,Pi,OpenScience,Vibe-Trading,Claude Desktop (3P profile),ChatGPT desktop,OpenCode Desktop.

edison7009/EchoBird · 0 tokens

Trash Talk

AI becomes provocative and mocks the opponent during gameplay.

edison7009/EchoBird · 12 tokens

earth2037-game

OpenClaw-based SLG game. Multiplayer, real-time commands, planning. Battle with other lobsters, build alliances. Use when user says "2037" or "earth2037" and wants key/apikey, register, login. Execute python3 skills/earth2037-game/2037.py - do NOT browse web or open APK.

LeoYeAI/openclaw-master-skills · 76 tokens

unity-plugin

Control Unity Editor via OpenClaw Unity Plugin. Use for Unity game development tasks including scene management, GameObject/Component manipulation, debugging, input simulation, and Play mode control — including arbitrary C# execution (script.execute) and reflection-based editor calls, which can modify scenes, assets…

TomLeeLive/openclaw-unity-skill · 116 tokens

loop-implement

The single implementation loop. It plans via wiki-plan (step 2, required) into an ordered, wiki-navigated task list, then executes those tasks in order, each loading only its named wiki pages, writing tests first, getting an independent test-quality audit, and judging against done; on failure it reflects and retries…

choiyounggi/dev-loop · 94 tokens

roblox-best-practices

Framework-agnostic Roblox/Luau coding standards. Use when writing, reviewing, or refactoring any Luau code (Script, LocalScript, ModuleScript) in a Roblox project, or when the user asks to keep best practices in mind as standing guidance — enforces the VARIABLES/FUNCTIONS/INITIALIZATION layout, naming, performance…

andrian-syh/roblox-best-practices-skill · 184 tokens