DEV Community

Cover image for 🧠🥷How to make cool Ninja game (Unity MCP + Blender MCP (Cline and Cursor))
Web Developer Hyper
Web Developer Hyper

Posted on • Edited on

7 1

🧠🥷How to make cool Ninja game (Unity MCP + Blender MCP (Cline and Cursor))

Intro

Hello! I'm a Ninja Web Developer. Hi-Yah!🥷
These days, I am enjoying MCP.
🧠🥷How to use MCP in Cline and Cursor
🧠🥷How to use MCP in Cline and Cursor 2 (use under Proxy)
🧠🥷How to make MCP (Cline and Cursor)
🧠🤖AI coding agent 1 (Cline + Cursor)
I tried Blender MCP last time, and it was awesome!
I could make a cool Ninja 3D model easily by using AI.
🧠🥷How to make cool Ninja (Blender MCP (Cline and Cursor))
So this time, I tried Unity MCP, since I wanted to make a cool Ninja game.
Unity MCP enables communication between Unity and Large Language Models (LLMs) via Model Context Protocol (MCP).
I would like to focus on how to use Unity MPC actually.
Hoping this post will be a help to someone who wants to make a cool game.
So, let's go!🚀

How to use Unity MCP

This is the GitHub repository of Unity MCP.↓
https://github.com/justinpbarnett/unity-mcp
1️⃣ Installation
1: Unity 2020.3 LTS or newer (⚠️ Currently only works in URP projects)
2: Python 3.12 or newer
3: uv package manager
for Windows:↓

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Enter fullscreen mode Exit fullscreen mode

Then, add uv to your PATH:↓

set Path=%USERPROFILE%\.local\bin;%Path%
Enter fullscreen mode Exit fullscreen mode

2️⃣ Install Unity Package
1: Unity > Window > Package Manager > + button > Add package from git URL
2: Input: https://github.com/justinpbarnett/unity-mcp.git
3: The server starts automatically when used with Cursor.
If you want to use with Cline, or use it manually with Cursor:
Window > Unity MCP > Cursor Configuration > Manual Configuration
Copy the JSON Configuraion to cline_mcp_settings.json for Cline and mcp.json for Cursor.
3️⃣ It's ready to use Unity MCP.🎉

How to install 3D models to Unity form Blender

First, please refer my previous post how to make a 3D model by AI using blender MCP.
🧠🥷How to make cool Ninja (Blender MCP (Cline and Cursor))
I am an IT engineer, but new to Unity and Blender.
The hardest part was how to install the Ninja made by Blender MCP to Unity.
First, I tried:
Blender > File > Export > FBX > Export FBX
and drug and drop the FBX file to Unity, but the 3D model didn't have a color.😟
I searched a lot, and the below way worked in my case.
1️⃣ Select the 3D model you want to use at Unity.
2️⃣ Move to Texture Paint > Image > Save As ... > Save the Blender images to Unity.
3️⃣ File > Export > FBX
Chage the Path mode form Auto to Copy > Check Selected Objects > Export FBX
4️⃣ Drug and Drop the FBX file to Unity.
Please let me know, if there is a better way.

How to make game using Unity MCP

After moving the 3D images from Blender to Unity, all you have to do is to chat with your AI how you want your game to be.
I think for beginners, like me, it will be easy to proceed by making a little one by one, and test how it works each time.
Here are things that I did to make a cool Ninja game.
1️⃣ Add a plane (floor).
2️⃣ Add a camera and light.
3️⃣ Add key control to Ninja_good_guy.
4️⃣ Add random move to Ninja_bad_guy.
There were some errors when making, but I asked AI to solve them, and it worked.
And, this is the final output.↓

More about Unity MPC

I made only the beginning of the shit cool Ninja game.
It's up to you to make a better game.
There are lots of things Unity MCP can do. Such as:

  • Asset Management: Create, import, and manipulate Unity assets programmatically.
  • Scene Control: Manage scenes, objects, and their properties.
  • Material Editing: Modify materials and their properties.
  • Script Integration: View, create, and update Unity scripts.
  • Editor Automation: Control Unity Editor functions like undo, redo, play, and build.

You can make action game, shooting game, RPG, and any kinds of game using Unity MCP.
Free your imagination, and create your own cool game.

Outro

I heard that Unity is difficult, and I didn't have experience of Unity.
Although, due to Unity MCP, I could make a cool game easily.
Using both Unity MCP and Blender MCP will level up your game development even more.
Oops, I've been playing with MCP too much.
I need to learn how to use MCP for work to make my boss happy.
I might write about MCP for work next time.
Thank you for reading.
Happy AI coding!🤖 Hi-Yah!🥷

Update (2025/04/02):Wrote about MCP in Cline and Cursor under Proxy 2
🧠🥷How to use MCP in Cline and Cursor 3 (use under Proxy 2)

Update (2025/04/06):Wrote about MCP Security
🧠🥷MCP Security (choose safe MCP and check MCP safety)🛡️

Update (2025/04/12):Wrote about Vroid
🧠🥷How to make AI controled Avatar 1 (VRoid)

Update (2025/04/19):Wrote about Vroid MCP
🧠🥷How to make AI controled Avatar 2 (Vroid MCP + Cline and Cursor + Unity)

Top comments (0)