Polymerium
Advanced

MCP Mode & AI Agent Integration

Let AI agents manage your Minecraft instances through the Model Context Protocol — unique to Polymerium.

Last updated on

What is MCP?

The Model Context Protocol (MCP) is a standard for AI agents to interact with external tools. Polymerium's CLI (trident) can run as an MCP server, exposing 30+ tools that AI agents can call directly.

This means you can ask an AI assistant to:

  • "Create a Fabric 1.21.4 instance with performance mods"
  • "Take a snapshot, then update Sodium to the latest version"
  • "Export this instance as a Modrinth modpack"

And it will do it — no manual clicks needed.

No other Minecraft launcher supports this.

Starting the MCP Server

trident --mcp

This starts an MCP server over stdio. Connect your AI client (Claude, Cursor, etc.) to it as a tool provider.

Configuration for AI Clients

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "polymerium": {
      "command": "trident",
      "args": ["--mcp"]
    }
  }
}

Cursor

Add as an MCP tool server in Cursor's settings, pointing to trident --mcp.

Other Clients

Any client that supports MCP over stdio can connect. The server speaks the standard MCP protocol.

Available Tools (30+)

Instance Tools

ToolDescription
instance_listList all instances
instance_inspectView instance details
instance_createCreate a new instance
instance_deleteDelete an instance
instance_unlockUnlock an imported instance's source binding
instance_resetReset the build (clear build/ and live/)
instance_exportExport instance as a modpack
instance_importImport a modpack file

Package Tools

ToolDescription
package_listList installed mods
package_searchSearch CurseForge / Modrinth
package_addAdd a mod by purl
package_inspectView mod details
package_enable / package_disableToggle mods
package_dependency_listList a mod's dependencies
package_dependent_listList mods that depend on a given mod
package_version_listList available versions
package_version_setPin a specific version

Loader Tools

ToolDescription
loader_listList loaders for an instance
loader_version_listList available loader versions
loader_get / loader_setGet or set the loader

Config Tools

ToolDescription
config_get / config_setRead/write configuration
config_list / config_unsetList or remove config keys

Account Tools

ToolDescription
account_listList accounts
account_add_offlineAdd an offline account
account_removeRemove an account

Repository Tools

ToolDescription
repository_listList configured repositories
repository_statusCheck repository connectivity
repository_add / repository_removeAdd or remove repositories

Example Sessions

Creating a Performance Modpack

You: Create a Fabric 1.21.4 instance called "perf-pack" with Sodium, Lithium, and Iris.

Agent: I'll create the instance and add the mods.
  → instance_create("perf-pack", version="1.21.4", loader="fabric")
  → package_add("modrinth:sodium")
  → package_add("modrinth:lithium")
  → package_add("modrinth:iris")
  → instance_build("perf-pack")
  Done! Your "perf-pack" instance is ready to launch.

Safe Experimentation

You: Take a snapshot of my "skyblock" instance, then update all mods.

Agent:
  → instance_inspect("skyblock")   // confirm instance exists
  → snapshot_create("skyblock", name="before-bulk-update")
  → package_version_list(...)      // check each mod for updates
  → package_version_set(...)       // apply updates
  → instance_build("skyblock")
  Snapshot saved. All mods updated and redeployed.
  If anything breaks, restore the "before-bulk-update" snapshot.

Limitations

  • MCP runs over stdio — it's designed for local use, not remote servers.
  • Microsoft account login requires Device Code Flow, which isn't ideal for headless AI interaction. Use offline accounts for automated workflows.
  • The MCP server uses the same data directory as the GUI — don't run both simultaneously.

On this page