{"type":"mcp_server","name":"YetAnotherUnityMcp","description":"YetAnotherUnityMcp is a Unity Master Control Protocol implementation enabling AI agents to control Unity through a .NET/C# plugin and a Python MCP client, facilitating real-time interaction. YetAnotherUnityMcp is a Unity","category":"AI","language":"C#","stars":5,"forks":4,"owner":"Azreal42","github_url":"https://github.com/Azreal42/YetAnotherUnityMcp","homepage":null,"setup":"## Setup\n\n### Unity Server Setup\n\n1.  Open your Unity project (2020.3 or later)\n2.  Import the YetAnotherUnityMcp plugin using one of these methods:\n    *   Copy the `plugin/Scripts` folder to your Unity project's Assets directory\n    *   Create a Unity package and import it\n    *   Create a symbolic link for development (Windows PowerShell example):\n        ```powershell\n        New-Item -ItemType SymbolicLink -Target \"D:\\Dev\\YetAnotherUnityMcp\\plugin\" -Path \"C:\\Users\\azrea\\My project\\Assets\\Plugins\\YetAnotherUnityMcp\"\n        ```\n3.  Start the TCP server:\n    *   From the menu: MCP > TCP Server > Start Server\n    *   Or: Window > MCP Server > Start Server\n4.  Note the TCP server address (default: localhost:8080)\n\n### Python Client Setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/YetAnotherUnityMcp.git\ncd YetAnotherUnityMcp\n\n# Create and activate a virtual environment using uv\nuv venv -p 3.11\nsource .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n\n# Install the server with development dependencies\nuv pip install -e \".[dev]\"\n\n# Run the MCP client\npython -m server.mcp_server\n```\n\n### MCP Integration\n\n```bash\n# Install FastMCP and tools\nuv pip install fastmcp\n\n# Run the client with MCP inspector for debugging\nfastmcp dev server/mcp_server.py\n\n# Install in Claude Desktop\nfastmcp install server/mcp_server.py --name \"Unity Controller\"\n```","tools":"## Available Tools\n\n1.  Execute C# code in Unity from AI agents (Allows running C# code in the Unity Editor).\n2.  Query Unity Editor state through MCP resources with dynamic parameter handling (Enables querying Unity Editor state).\n3.  Organize MCP resources and tools in logical containers for better organization (Provides better organization of resources and tools).\n4.  Capture screenshots with AI-driven parameters (Allows taking screenshots of the Unity Editor).\n5.  Get logs and debug information from Unity (Provides access to logs and debug information).\n6.  Modify GameObject properties with AI assistance (Enables changing properties of Unity GameObjects).\n7.  List and navigate GameObject hierarchies (Allows listing and navigating GameObject hierarchies).\n8.  Provide contextual templates through MCP prompts (Provides contextual templates).\n","faq":null,"created_at":"2025-03-16T09:40:33+00:00","updated_at":"2025-03-28T08:34:27+00:00","source_url":"https://model-context-protocol.com/servers/unity-mcp-ai-agent-control-plugin","related_articles":[]}