supercell-mcp
Read-only MCP server for Supercell game APIs (Clash of Clans, Clash Royale, Brawl Stars) with prefixed tool names to search players, clans, clubs, and more.
README
supercell-mcp
One MCP server covering three Supercell game APIs — Clash of Clans, Clash Royale, and Brawl Stars. They share an auth model and response style, so a single server with prefixed tool names beats three near-identical ones.
Read-only. These APIs expose no write or messaging endpoints at all, so there is nothing here that can change game state.
Runs over stdio, registered in ~/.claude.json as supercell.
Tools
Prefixes: coc_ Clash of Clans, cr_ Clash Royale, bs_ Brawl Stars.
| Clash of Clans | Clash Royale | Brawl Stars |
|---|---|---|
coc_get_player |
cr_get_player |
bs_get_player |
coc_get_clan |
cr_get_clan |
bs_get_club |
coc_get_clan_members |
cr_get_clan_members |
bs_get_club_members |
coc_search_clans |
cr_search_clans |
bs_get_rankings |
coc_get_current_war |
cr_get_player_battlelog |
bs_get_player_battlelog |
Layout
src/client.js shared auth + fetch, one base URL per game
src/clashofclans.js coc_* tools
src/clashroyale.js cr_* tools
src/brawlstars.js bs_* tools
src/index.js McpServer construction + stdio transport
The IP allowlist gotcha
Supercell API keys are bound to the IP address they were created for. When
the home IP changes, every call starts returning 403 accessDenied even though
the key is perfectly valid and unexpired.
That failure mode looks like an auth bug and isn't one. To fix it, mint a new key for the current IP at the relevant developer portal:
- https://developer.clashofclans.com
- https://developer.clashroyale.com
- https://developer.brawlstars.com
Check the current public IP with curl -s https://api.ipify.org (already an
allowed command in ~/.claude/settings.json).
Setup
Requires Node 20+. Mint a key per game at the portal listed above, for your
current public IP, then save each one as credentials/<game>.json:
credentials/clashofclans.json
credentials/clashroyale.json
credentials/brawlstars.json
Each holds {"token": "..."} — see the matching *.example.json.
credentials/ is git-ignored. A game whose key file is absent simply fails on
first call with a message naming the file and its portal; the other games keep
working.
npm ci
npm start
claude mcp add supercell -- node <path>/supercell-mcp/src/index.js
Tests
npm test
Registration across all three games, tag encoding, and the missing-key error message. No network and no credentials.
Notes
- Player and clan tags start with
#(e.g.#2PP0JCVL). The#is URL-encoded before the request — pass tags with the#included. - Tags are unambiguous across games but not portable between them; a Clash Royale tag won't resolve against the Clash of Clans API.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。