1. Conduid
  2. Gaming
  3. ModelContextProtocolUnityEmbedIO
MCP server · Gaming

ModelContextProtocolUnityEmbedIO

An implementation of a SSE server in EmbedIO that can be run within unity, unity editor, unity editor (in play mode)

Unclaimed gaming
34Low

Scored 6 months ago · breakdown

About ModelContextProtocolUnityEmbedIO

ModelContextProtocolUnityEmbedIO is an MCP server in the Gaming category: an implementation of a SSE server in EmbedIO that can be run within unity, unity editor, unity editor (in play mode).

Install

From source
git clone https://github.com/WHedlund/ModelContextProtocolUnityEmbedIO

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about ModelContextProtocolUnityEmbedIO

Powered by Claude · Grounded in docs

I know everything about ModelContextProtocolUnityEmbedIO. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Deprecated. use https://github.com/WHedlund/csharp-sdk instead

Unity EmbedIO Extensions for the MCP C# SDK

Unstable: This package tracks the evolving Model Context Protocol (MCP) and is subject to breaking changes as the MCP package updates.

About

This package enables Unity projects to run a fully functional Model Context Protocol (MCP) server using EmbedIO as a lightweight HTTP server. It is designed specifically for Unity, since ASP.NET Core is not fully compatible with the Unity runtime (Mono).

Key features:

  • Native Unity integration for MCP servers.
  • Uses EmbedIO for lightweight HTTP/SSE transport.
  • Runs the HTTP server in a separate thread to avoid blocking the Unity main thread.
  • A MainThreadDispatcher may be added for safe Unity object interaction.
  • Automatic tool discovery: Finds tools on the same GameObject (see EchoToolWithInstance).
  • Updated to match latest MCP type/name changes.

This is a community-driven project and not officially maintained by the MCP core team.


🚀 Installation & Getting Started

1. Add This Package to Your Unity Project

Simply clone or copy this repository into your project’s Assets folder.

Assets/
└── ModelContextProtocol/
    └── EmbedIO/
        ... (all scripts here)

2. Install Dependencies

Use NuGet for Unity to install the required packages:

  • EmbedIO 3.5.2
  • ModelContextProtocol 0.1.0-preview.10

Enable "Show Prerelease Packages" in NuGet for Unity’s settings to find the correct MCP version.


3. Add Components to Your Scene

  1. Create a new GameObject in your Unity scene.
  2. Attach both EmbedIOServerHost and EchoToolWithInstance scripts to this GameObject.

When you press Play, the MCP server starts automatically (in a background thread) and is available at:

http://localhost:8888/api/sse

You can test your server using the MCP Inspector tool from MCP[cli].

To add more tools, just add additional tool scripts as components on the same GameObject for automatic discovery!


🧩 Usage & Examples

Tools are automatically discovered when added as components to the same GameObject as the server host.
Here’s an example of an instance tool using MonoBehaviour:

using UnityEngine;
using ModelContextProtocol.Tools;

public class EchoToolWithInstance : MonoBehaviour
{
    [McpServerTool(Description = "Echoes the input message (instance)")]
    public string Echo(string message)
    {
        return $"Echo: {message}";
    }
}
  • Attach your tool script (like EchoToolWithInstance) to the same GameObject as EmbedIOServerHost.
  • All [McpServerTool] methods will be registered and available to MCP clients.
  • You can test tool calls using MCP Inspector or any MCP-compatible client.

🔗 Related Projects & Links

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About ModelContextProtocolUnityEmbedIO

How do I install ModelContextProtocolUnityEmbedIO?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is ModelContextProtocolUnityEmbedIO safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is ModelContextProtocolUnityEmbedIO still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.