pokemon-battle-mcp
A TypeScript MCP server for Pokémon Champions battle assistance, providing tools for meta analysis, Pokémon options, stat calculations, damage checks, and spread optimization.
README
Pokémon Battle Helper MCP Server
A TypeScript MCP server for Pokémon Champions battle assistance.
For the canonical design, data sources, battle model, tool schemas, solver behavior, and test strategy, see Architecture.md.
Tools
The server registers these MCP tools:
get_meta_snapshotget_pokemon_optionscalculate_statscheck_damage_matchupoptimize_offensive_spreadoptimize_survival_spreadoptimize_speed_spreadget_speed_tiers
All tools expose input/output schemas through MCP tools/list.
Install / build / test
npm install
npm run build
npm test
npm test runs a pretest build and includes MCP stdio e2e tests that start dist/index.js, connect with the real @modelcontextprotocol/sdk client, call tools, and verify tool schemas.
Run as an MCP server
npm run build
node dist/index.js
Example MCP client config:
{
"mcpServers": {
"pokemon-battle": {
"command": "node",
"args": ["/absolute/path/to/pokemon-battle-mcp/dist/index.js"]
}
}
}
Live meta defaults
The implementation uses Pikalytics English live data for the current Pokémon Champions ranked ladder. Default meta URL shape:
https://www.pikalytics.com/api/p/2026-05/battledataregmbs3-1760
https://www.pikalytics.com/api/p/2026-05/battledataregmbs3-1760/garchomp
get_meta_snapshot and get_pokemon_options accept optional format request fields (single/double; default double). Pikalytics' battledataregmbs3 key is the Champions doubles ladder, so format currently does not change the queried dataset. The season/regulation key (battledataregmbs3) and rating cutoff (1760) are internal constants; update them when the live regulation changes. The data month (YYYY-MM) is discovered automatically — a preferred month is tried first, then recent months are probed newest-first — because Pikalytics serves the literal JSON false for months without data.
Pokémon name handling
All tools accept any common spelling of a Pokémon name and normalize it server-side (see src/utils/pokemon-name.ts):
- Showdown forme names and aliases:
Basculegion-F,lando-t,Urshifu-Rapid-Strike. - PokeAPI/Pikalytics-style slugs:
basculegion-female,urshifu-rapid-strike. - Space/punctuation variants:
Rotom Wash,Sirfetch'd.
Material corrections (e.g. basculegion-female -> Basculegion-F) are reported in inputCorrections. For get_pokemon_options, a base-species request resolves to the only matching meta forme when unambiguous (Floette -> Floette-Mega, with a formeResolved correction); if several formes are ranked, the tool returns an error listing the candidates. When Pikalytics has no page for the requested forme and base-forme data is used instead, the response carries an explicit warning (formeDataFallback) instead of silently returning the wrong forme's data. Unknown names produce did-you-mean suggestions.
Calc-oriented tool handlers (calculate_stats, check_damage_matchup, and the SP optimizers)
also guard against the common LLM mistake of sending a bare base species for a current-format
forme request: if the submitted name is a canonical base species and the current meta has exactly
one matching forme, the handler rewrites it and reports formeResolved in inputCorrections
before doing the calculation. Ambiguous cases still require the client/model to specify the forme.
Recommended client/system instruction:
For Pokémon Champions build, Mega, forme, damage, or speed questions, call get_pokemon_options
first for each named Pokémon and use the returned canonical Pokémon name/build in calculator
tools. Do not guess a base species when the user requested a Mega or forme. Item choices should
be passed exactly as provided by the user; this MCP does not validate item legality.
Mega forme ability handling
When a request uses a Mega forme, the server canonicalizes stale or missing abilities to the fixed Mega ability before calculation and reports the change in inputCorrections plus modifierBreakdown. get_pokemon_options also returns the Mega ability for Mega forme requests, even when move/item/spread data has to come from a base-form meta page.
If the ability has already been changed in battle by Skill Swap, Worry Seed, Entrainment, etc., clients should send the current effective ability and mark it explicitly with pokemon.abilitySource: "battle-changed" or an active ability-change effect such as { "id": "abilitychanged" }, { "id": "skillswap" }, or { "id": "worryseed" }. For ability suppression such as Gastro Acid, keep the actual ability and use state.abilityEffect: "inactive".
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。