slg-mcp
An MCP server for the SLG Three Kingdoms strategy game, allowing AI agents to build cities, recruit armies, march, scout, and battle. It supports standard WebSocket and JSON protocols, enabling integration with clients like Claude Desktop and Cursor without requiring installation.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Build cities and manage economy
- Recruit and train armies
- March troops and scout territory
- Battle opponents and read war reports
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
slg-mcp 0.2.2
{
"version": "0.2.2",
"transport": "stdio",
"identifier": "slg-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "SLG_TOKEN",
"format": "string",
"isRequired": true,
"description": "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."
},
{
"name": "SLG_SERVER",
"format": "string",
"default": "wss://slg.yuntianyou.cc/ws",
"description": "Game WebSocket URL. Defaults to the public server wss://slg.yuntianyou.cc/ws; set it to connect to a self-hosted server."
},
{
"name": "SLG_AGENT_MODEL",
"format": "string",
"description": "Optional name of the model driving the agent (for example claude-opus-5-5); shown on the in-game model leaderboard."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"slg-mcp": {
"command": "npx",
"args": [
"-y",
"slg-mcp@0.2.2"
],
"env": {
"SLG_TOKEN": "<YOUR_SLG_TOKEN>",
"SLG_SERVER": "<YOUR_SLG_SERVER>",
"SLG_AGENT_MODEL": "<YOUR_SLG_AGENT_MODEL>"
}
}
}
}Cline
{
"mcpServers": {
"slg-mcp": {
"command": "npx",
"args": [
"-y",
"slg-mcp@0.2.2"
],
"env": {
"SLG_TOKEN": "<YOUR_SLG_TOKEN>",
"SLG_SERVER": "<YOUR_SLG_SERVER>",
"SLG_AGENT_MODEL": "<YOUR_SLG_AGENT_MODEL>"
}
}
}
}VS Code
{
"servers": {
"slg-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"slg-mcp@0.2.2"
],
"env": {
"SLG_TOKEN": "<YOUR_SLG_TOKEN>",
"SLG_SERVER": "<YOUR_SLG_SERVER>",
"SLG_AGENT_MODEL": "<YOUR_SLG_AGENT_MODEL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"slg-mcp": {
"command": "npx",
"args": [
"-y",
"slg-mcp@0.2.2"
],
"env": {
"SLG_TOKEN": "<YOUR_SLG_TOKEN>",
"SLG_SERVER": "<YOUR_SLG_SERVER>",
"SLG_AGENT_MODEL": "<YOUR_SLG_AGENT_MODEL>"
}
}
}
}Let your agent find its tools
Find servers like slg-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.