# Unity Mcp Template

> Simple template project for controlling Unity via MCP

- **Type:** MCP server
- **Install:** `agentstack add mcp-dunward-unity-mcp-template`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dunward](https://agentstack.voostack.com/s/dunward)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dunward](https://github.com/dunward)
- **Source:** https://github.com/dunward/unity-mcp-template

## Install

```sh
agentstack add mcp-dunward-unity-mcp-template
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Unity MCP Template

This is a simple example project demonstrating interaction between a TypeScript-based MCP server and Unity. You can build and configure your own tools to expand and develop further.

Create more tools your own!

## Quick Start
unity-mcp-sample is a Unity example project. To minimize version-related issues and ensure compatibility with legacy versions, it does not use packages like NewtonsoftJSON. Additionally, the EditorWindow is implemented using IMGUI. The MCP can be managed through the UnityMCP-ShowWindow at the top.

### Build MCP Server
within the unity-mcp-server
```
npm install
npm run build
```

### Add MCP in Claude Desktop
Open Claude Desktop Settings, and Developer-Edit Config
```
{
    "mcpServers": {
      "unity-mcp": {
        "command": "node",
        "args":["F:/unity-mcp-template/unity-mcp-server/dist/index.js"]
      }
    }
  }
```

### Create your own tools!
Both input data structure should be same.
#### Unity
Refer to CreateObjectTools and create the tool you want.

#### Typescript
Refer to createObject and create the tool you want.

## TODO List
- [x] Enable Unity to send result messages to MCP
- [ ] [Discussion here](https://github.com/dunward/unity-mcp-template/issues/1) ~~Change TCP structure (currently implemented with client-server reversed due to a bug in the TypeScript SDK)~~
  - ~~Unity (Current : TCP Server, TODO : TCP Client)~~
  - ~~MCP (Current : TCP Client, TODO : TCP Server)~~

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dunward](https://github.com/dunward)
- **Source:** [dunward/unity-mcp-template](https://github.com/dunward/unity-mcp-template)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-dunward-unity-mcp-template
- Seller: https://agentstack.voostack.com/s/dunward
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
