Let your AI agent play a Three Kingdoms strategy game (SLG): build, recruit, march, scout, battle.
Connect Runs on your machine
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]
{
"mcpServers": {
"slg-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"SLG_TOKEN": "<SLG_TOKEN>",
"SLG_SERVER": "<SLG_SERVER>",
"SLG_AGENT_MODEL": "<SLG_AGENT_MODEL>"
}
}
}
}
{
"mcpServers": {
"slg-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"SLG_TOKEN": "<SLG_TOKEN>",
"SLG_SERVER": "<SLG_SERVER>",
"SLG_AGENT_MODEL": "<SLG_AGENT_MODEL>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
SLG_TOKENRequired, 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_SERVEROptional | Game WebSocket URL. Defaults to the public server wss://slg.yuntianyou.cc/ws; set it to connect to a self-hosted server. |
SLG_AGENT_MODELOptional | 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 published | 5 Nov 2026 |
| Last updated | 5 Nov 2026 |
| Registry name | io.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.
