Skip to main content

Slg MCP

io.github.athlan20/slg-mcp

v0.2.2Updated Nov 5, 2026stdio · npm

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

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add slg-mcp -e 'SLG_TOKEN=<your-slg-token>' -e SLG_SERVER=wss://slg.yuntianyou.cc/ws -- npx -y [email protected]

Configuration

3 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • SLG_TOKEN
    Env var· 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
    Env var· optional
    Game WebSocket URL. Defaults to the public server wss://slg.yuntianyou.cc/ws; set it to connect to a self-hosted server.Default: wss://slg.yuntianyou.cc/ws
  • SLG_AGENT_MODEL
    Env var· optional
    Optional name of the model driving the agent (for example claude-opus-5-5); shown on the in-game model leaderboard.

Listed in the official MCP Registry since Nov 5, 2026. Mirrored daily; last checked Nov 26, 2026.