Unity's official MCP integration lets AI assistants control the editor, but the built-in tools only cover so much. In this tutorial, you'll learn how to extend Unity's MCP integration with your own custom MCP tools so your AI assistant can do exactly what your project needs.
The Assets/Editor/ folder contains the two custom MCP tools built during the video:
| File | Description |
|---|---|
LogToConsoleParams.cs |
Parameter record for the LogToConsole tool |
LogToConsoleTool.cs |
Logs a message to the Unity Console with a specified log type |
SceneNoteParams.cs |
Parameter record for the SceneNote tool |
SceneNoteTool.cs |
Places a floating text note in the scene at an optional position |
- Copy the files from
Assets/Editor/into your Unity project'sAssets/Editor/folder (create it if it doesn't exist). - Unity will detect the scripts after a domain reload.
- Open Project Settings > AI > MCP Tools to verify the tools appear under the "Demo Example" group.
- Call the tools from any MCP client connected to your Unity Editor.
- Unity 6+ with the
com.unity.ai.assistantpackage installed
- Unity MCP Toolkit - CC0-licensed collection of custom MCP tools for Unity
- Unity AI Assistant Package Documentation