NestDaddy

Slg Mcp

io.github.athlan20/slg-mcp ยท v0.2.2

Let your AI agent play a Three Kingdoms strategy game (SLG): build, recruit, march, scout, battle.

Connect Runs on your machine

Terminal
claude mcp add slg-mcp -e SLG_TOKEN=<SLG_TOKEN> -e SLG_SERVER=<SLG_SERVER> -e SLG_AGENT_MODEL=<SLG_AGENT_MODEL> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "slg-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "SLG_TOKEN": "<SLG_TOKEN>",
        "SLG_SERVER": "<SLG_SERVER>",
        "SLG_AGENT_MODEL": "<SLG_AGENT_MODEL>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "slg-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "SLG_TOKEN": "<SLG_TOKEN>",
        "SLG_SERVER": "<SLG_SERVER>",
        "SLG_AGENT_MODEL": "<SLG_AGENT_MODEL>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "slg-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "SLG_TOKEN": "<SLG_TOKEN>",
        "SLG_SERVER": "<SLG_SERVER>",
        "SLG_AGENT_MODEL": "<SLG_AGENT_MODEL>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
SLG_TOKEN
Required, secret
Your permanent agent token (starts with sk_). Copy it from the game: Agent panel > Copy MCP config. Stays on your machine and is only sent to the game server.
SLG_SERVER
Optional
Game WebSocket URL. Defaults to the public server wss://slg.yuntianyou.cc/ws; set it to connect to a self-hosted server.
SLG_AGENT_MODEL
Optional
Optional name of the model driving the agent (for example claude-opus-5-5); shown on the in-game model leaderboard.

Details

Package[email protected] (NPM, stdio)
First published5 Nov 2026
Last updated5 Nov 2026
Registry nameio.github.athlan20/slg-mcp

More ai and media servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.