Model Context Protocol (MCP) Server for Unity

by folkward99

429 downloads
Not rated
GitHub

Description

# Model Context Protocol (MCP) Server for Unity A Unity package that connects Unity with AI assistants (Claude, Cursor AI, and Windsurf) through the Model Context Protocol. ## Features - Connect Unity with multiple AI services: - Claude AI - Cursor AI - Windsurf - Enable AI…

About

# Model Context Protocol (MCP) Server for Unity A Unity package that connects Unity with AI assistants (Claude, Cursor AI, and Windsurf) through the Model Context Protocol. ## Features - Connect Unity with multiple AI services: - Claude AI - Cursor AI - Windsurf - Enable AI services to access: - Unity Console (errors…

Details

Author
folkward99
Downloads
429
Categories
Other

- Connects Unity with Claude AI, Cursor AI, and Windsurf
- Enables AI access to Unity Console (errors, warnings, logs)
- Enables AI access to Project Browser (assets)
- Enables AI access to Scene Hierarchy (GameObjects)
- Enables AI access to Inspector (properties)
- Configurable server port, update frequency, and log level

Install via the Unity Package Manager using Git URL or by manually copying the package to your project's Packages folder. Open the MCP Server window (Window > MCP > Server), configure your AI service credentials, start the server, and connect your AI assistant to the provided endpoint.

Model Context Protocol (MCP) Server for Unity

A Unity package that connects Unity with AI assistants (Claude, Cursor AI, and Windsurf) through the Model Context Protocol.

Features

- Connect Unity with multiple AI services:
- Claude AI
- Cursor AI
- Windsurf
- Enable AI services to access:
- Unity Console (errors, warnings, logs)
- Project Browser (assets)
- Scene Hierarchy (GameObjects)
- Inspector (properties)

Installation

Using Git URL

1. Open the Unity Package Manager (Window > Package Manager)
2. Click the "+" button in the top-left corner
3. Select "Add package from git URL..."
4. Enter the following URL: https://github.com/folkward99/mcp-server.git
5. Click "Add"

Manual Installation

1. Clone this repository
2. Copy the contents to your Unity project's Packages folder

Usage

1. Open the MCP Server window (Window > MCP > Server)
2. Configure your AI service credentials
3. Start the server
4. Connect your AI assistant to the provided endpoint

Configuration

API Keys

To use the MCP Server, you'll need API keys for the AI services you want to connect:

- Claude AI: Get API Key
- Cursor AI: Get API Key
- Windsurf: Get API Key

Server Settings

- Port: The port number for the MCP server (default: 8080)
- Update Frequency: How often to send updates to AI services (in seconds)
- Log Level: Detail level for server logs

Documentation

For detailed documentation, see the Documentation folder.

Examples

Check out the example scenes in the Samples~/Examples folder to see the MCP Server in action.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.