Take your gaming experience to the next level with this MCP server for Clash of Clans.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add clash-of-clans --env CLASH_API_KEY='<CLASH_API_KEY>' -- npx -y mcp-server-clash-of-clans~/.codex/config.toml
[mcp_servers.clash-of-clans]
command = "npx"
args = ["-y", "mcp-server-clash-of-clans"]
env = { CLASH_API_KEY = "<CLASH_API_KEY>" }
# codex mcp add clash-of-clans --env CLASH_API_KEY='<CLASH_API_KEY>' -- npx -y mcp-server-clash-of-clans~/.cursor/mcp.json
{
"mcpServers": {
"clash-of-clans": {
"command": "npx",
"args": [
"-y",
"mcp-server-clash-of-clans"
],
"env": {
"CLASH_API_KEY": "<CLASH_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"clash-of-clans": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-clash-of-clans"
],
"env": {
"CLASH_API_KEY": "<CLASH_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"clash-of-clans": {
"command": "npx",
"args": [
"-y",
"mcp-server-clash-of-clans"
],
"env": {
"CLASH_API_KEY": "<CLASH_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"clash-of-clans": {
"command": "npx",
"args": [
"-y",
"mcp-server-clash-of-clans"
],
"env": {
"CLASH_API_KEY": "<CLASH_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"clash-of-clans": {
"command": "npx",
"args": [
"-y",
"mcp-server-clash-of-clans"
],
"env": {
"CLASH_API_KEY": "<CLASH_API_KEY>"
}
}
}
}Environment variables
CLASH_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.