Model Context Protocol (MCP) Server for Unity
Overview
MCP Server is a Unity package that connects Unity with AI assistants (Claude, Cursor AI, and Windsurf) through the Model Context Protocol.
To use MCP Server, install it via the Unity Package Manager or manually by cloning the repository. Then, configure your AI service credentials and start the server to connect your AI assistant.
- Connects Unity with multiple AI services: Claude AI, Cursor AI, Windsurf. - Enables AI services to access Unity Console, Project Browser, Scene Hierarchy, and Inspector properties.
- Integrating AI assistants into Unity projects for enhanced functionality.
- Accessing Unity project data through AI services for automation and analysis.
- Debugging and logging through AI assistants for improved development workflow.
Add to your AI client
Use these steps to connect Model Context Protocol (MCP) Server for Unity in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-folkward99": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-folkward99"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-folkward99": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-folkward99"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-folkward99": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-folkward99"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-folkward99": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-folkward99"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-folkward99": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-folkward99"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-folkward99": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-folkward99"
]
}
}
}FAQ
What AI services can I connect with MCP Server?
You can connect with Claude AI, Cursor AI, and Windsurf.
How do I install MCP Server?
You can install it using the Unity Package Manager or by manually copying the files to your Unity project's Packages folder.
Is there documentation available?
Yes, detailed documentation is provided in the Documentation folder of the project.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2746,"uuid":"0840c8f0-03a3-4114-8c79-5c5cb01ae2af","name":"mcp-server","title":"Model Context Protocol (MCP) Server for Unity","description":"","avatar_url":"https://avatars.githubusercontent.com/u/153935819?v=4","created_at":"2025-03-14T00:57:35.121Z","updated_at":"2025-03-14T01:36:46.589Z","status":"created","author_name":"folkward99","author_avatar_url":"https://avatars.githubusercontent.com/u/153935819?v=4","tags":"mcp-server,unity,ai-assistant","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/folkward99/mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"C#\",\"is_official\":false,\"latest_commit_time\":\"2025-03-14 03:51:54\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]