MCP server to connect Claude with Unity projects. Built using the Model Context Protocol SDK.
- List all Unity projects
- Get detailed project information
- Access project structure and files
Run this project locally by cloning this repo
git clone https://github.com/your-username/unity-mcp.git
cd unity-mcp
bun install
Add this tool as an MCP server in Claude.
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"unity": {
"command": "bun",
"args": ["run", "C:\\Users\\Artga\\Code\\unity-mcp\\src\\index.ts"]
}
}
}
- Unity with projects configured
- Bun runtime
Please open an issue if you can't get this MCP working. Here are some tips:
- Make sure Unity is installed and you have some projects configured
- Check that the unity-mcp server can access the projects-v1.json file
- Ensure you have proper permissions for the Unity project directories
This MCP will emit logs to stderr as specified in the MCP spec. On Mac the Claude Desktop app should emit these logs
to ~/Library/Logs/Claude
.
On other platforms you can find logs here.
# Install dependencies
bun install
# Run the project
bun run src/index.ts
# Type check
bun run typecheck
# Format code
bun run format
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector with this command:
bun run inspector
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
MIT License - see LICENSE file for details.