mcpforunityserver
MCP for Unity Server: A Unity package for Unity Editor integration via the Model Context Protocol (MCP).
What it is and what it does
mcpforunityserver is a Model Context Protocol (MCP) server that acts as a bridge between AI language models and the Unity Editor. It exposes Unity's capabilities as MCP tools and resources, allowing Claude, Cursor, and other AI assistants to read scene state, modify game objects, run scripts, and automate workflows through natural language. The server runs as a standalone Python process and communicates with Unity Editor via WebSocket; it supports both stdio and HTTP transports, making it suitable for local development or remote team deployments.
The package bundles httpx, fastmcp, mcp, pydantic, fastapi, uvicorn, and click to handle protocol translation, HTTP serving, and CLI argument parsing. It requires Python 3.10+ and the uv package manager to run. Most users install it via uvx and configure it in their MCP client (Claude Desktop, Cursor, etc.); advanced deployments can enable remote-hosted mode with API key authentication for shared team servers. No license restrictions apply—MIT terms allow commercial and open-source use.
Use it for:
- Automate repetitive game development tasks (scene setup, prefab instantiation, property tweaking) by describing them in natural language to Claude or Cursor.
- Rapidly prototype game mechanics by having an AI assistant generate and modify C# scripts or scene configurations based on your descriptions.
- Debug and inspect game state interactively—ask an LLM to read scene hierarchies, check component values, or run diagnostics without manual clicking.
- Deploy a shared MCP server for a game dev team, with per-user API key authentication and session isolation in remote-hosted mode.
- Integrate Unity workflows into AI-powered code generation pipelines where the LLM needs to inspect or modify the game project state.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Runs a Model Context Protocol server that lets AI assistants control Unity Editor through natural language commands, bridging Claude, Cursor, and other LLMs to game development workflows.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and carries a permissive MIT license. Install it if you want to control Unity Editor through AI assistants—it's the only tool that bridges MCP and Unity. Prerequisite: you must have uv installed and the Unity MCP Plugin set up in your Editor project for it to work.
Install
mcpforunityserver on PyPI
pip
pip install mcpforunityserveruv
uv add mcpforunityserverpoetry
poetry add mcpforunityserverInstalling mcpforunityserver
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance—released 12 days ago with 13396 repository stars. Requires uv and the Unity MCP Plugin installed in your Unity project to function.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and open-source projects alike.
Quickstart
# Install via uv (required)
uvx --from mcpforunityserver mcp-for-unity --transport http --http-url http://localhost:8080
# Configure MCP client (e.g., Claude Desktop)
# Add to config.json:
# {
# "mcpServers": {
# "UnityMCP": {
# "url": "http://localhost:8080/mcp"
# }
# }
# }
Requires uv package manager installed; Unity MCP Plugin must be installed in your Unity Editor project; server connects to Unity automatically when both are running.
Verify before relying
- Specific Unity Editor versions supported or tested against.
- Performance characteristics when controlling complex scenes or many game objects.
- Latency expectations for LLM-to-Unity command execution over HTTP vs stdio transport.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — httpx, fastmcp, mcp, pydantic, tomli, fastapi, uvicorn, click |
| Maintenance | actively maintained — 12 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 277,477/month — #8,146 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mcpforunityserver-10.1.2-py3-none-any.whl
Keywords: mcp, unity, ai, model context protocol, gamedev, unity3d, automation, llm, agent
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
godot-aiGodot AI exposes a Model Context Protocol (MCP)…
unclear · top 15,000 on PyPI
blender-mcpBlenderMCP is a Model Context Protocol server…
permissive · top 15,000 on PyPI
arcade-mcp-serverArcade MCP Server provides a FastAPI-like…
permissive · top 15,000 on PyPI
excel-mcp-serverProvides a Model Context Protocol server that…
unclear · top 15,000 on PyPI
ha-mcpProvides a Model Context Protocol (MCP) server…
permissive · top 15,000 on PyPI
astro-airflow-mcpProvides AI assistants with programmatic access…
unclear · top 15,000 on PyPI
pagerduty-mcpAn MCP (Model Context Protocol) server that…
unclear · top 15,000 on PyPI
mcp-server-odooAn MCP server that bridges AI assistants like…
copyleft · top 5,000 on PyPI
mcp-server-gitExposes Git repository operations as tools for…
permissive · top 15,000 on PyPI
ha-mcp-devAn MCP server that lets AI assistants control…
permissive · top 15,000 on PyPI