Pokémon Champions MCP Server
Provides accurate competitive Pokémon information for Pokémon Champions, including damage calculation, type effectiveness, Pokémon data, and regulation legality checks.
README
Pokémon Champions MCP Server
An MCP server (TypeScript, stdio) that gives an AI client accurate, current information for competitive Pokémon Champions (the VGC-style battle game). It exposes tools for damage calculation, type effectiveness, Pokémon lookup, and regulation legality (e.g. which Pokémon are allowed in Regulation M-B).
Datasets
The server reads three local datasets at startup and never touches the network on a normal tool call — only the on-demand scraper scripts do.
-
Damage engine — the damage formula and its mechanics (abilities like Contrary, weather, items, crits, multi-hit, spread reduction) come from
@smogon/calc, whose engine descends from the same Honko/Zarel codebase the trusted community calculators use. We wrap it; we never reimplement the formula. (Generation 9.) -
Champions engine dex — per-Pokémon facts (base stats, typing, abilities, weight, and the full learnable movelist), in
data/champions-dex.json, scraped from Serebii's Champions Pokédex (207 Pokémon, 282 forms incl. Megas, ~62 moves each). Why not just use@smogon/calcfor this? Because@smogon/calcships mainline data, which is wrong or missing for Pokémon Champions' game-original Mega Evolutions — e.g. Champions' Mega Staraptor has Contrary, but@smogon/calcsays Intimidate; and forms like Mega Eelektross don't exist there at all.get_pokemonuses this dex as the source of truth, andcalculate_damageoverrides@smogon/calc's species data with it (auto-filling stats/typing/ability) so even Champions-original Megas calc correctly. This is a deliberate deviation from the original "never scrape engine data" rule, made because the package doesn't match the game. -
Legality data — which Pokémon are legal in a specific Champions regulation, in
regulations/. Small, fast-changing, Champions-specific, in no package.
Build
npm install
npm run build # tsc -> dist/
Requires Node 18+ (uses built-in fetch in the scraper).
Optional sanity check — runs all five tools through an in-memory MCP client:
npm test
Register in Claude Code
Add this to your Claude Code MCP config (use an absolute WSL/Linux path — Claude Code here runs via AWS Bedrock inside WSL2):
{
"mcpServers": {
"pokemon-champions": {
"command": "node",
"args": ["/home/emielkoridon/git_repos/poke-mcp-tool/dist/index.js"]
}
}
}
Then restart Claude Code. (Run npm run build first so dist/index.js exists.)
Tools
| Tool | What it answers |
|---|---|
calculate_damage |
"Does my Choice Band Staraptor-Mega OHKO that Garchomp?" — full damage/percent range, hits-to-KO, and the human-readable calc string. Auto-fills stats/typing/ability from the Champions dex (so Mega Staraptor uses Contrary, and even Champions-only Megas like Mega Eelektross calc correctly). Handles items, weather, terrain, Tera, crits, multi-hit, and Doubles spread reduction via @smogon/calc. |
type_effectiveness |
The multiplier (0–4x) of an attacking type against 1–2 defending types, from the bundled type chart. |
get_pokemon |
Base stats, typing, abilities, weight, and full movelist for a Pokémon (Mega forms accepted, e.g. Staraptor-Mega, Mega Staraptor, Mega Raichu X), Champions-accurate. Pass a regulation id to also get legality and regulation-legal moves. |
check_legality |
Whether a Pokémon — and optionally listed moves — is legal in a regulation. Move legality checks against the Pokémon's Champions learnset. |
list_regulations |
Which regulations are available locally, with each one's metadata and counts. |
Refresh the data
Both scrapers are standalone and run manually — the server never invokes them, it only reads their JSON output.
Regulation legality (the full legal roster + bans for a regulation):
npm run scrape -- m-b
This reads two Serebii pages: the regulation page (dates + what's newly useable) and the
Champions Pokédex index (the full legal roster — all HOME-transferable Pokémon). It writes
regulations/m-b.json with legalPokemon (the full roster, 207 for M-B), bannedPokemon
(format-excluded Mega forms — for M-B, Mega Garchomp Z & Mega Lucario Z), and meta
(dates, source URLs, newlyUseable, scrapedAt). Parameterize by id for future regulations
(npm run scrape -- m-c). Per the official rules there are no Restricted Pokémon, so
everything in the dex is legal except the listed Mega exclusions.
Champions engine dex (per-Pokémon stats/types/abilities — only needed when the game adds Pokémon/forms):
npm run scrape:dex # full roster (~207 pages, throttled — takes a minute)
npm run scrape:dex -- staraptor # one or more slugs, for testing (writes a .sample.json)
Both scrapers are defensive: if Serebii's markup changes or a page is only partially
published, they print a loud warning and write what they found rather than crashing. The
brittle, page-specific selectors are isolated in parseRegulationPage() /
parsePokemonPage() so they're easy to fix.
Known data limitations (surfaced honestly, not faked)
These come from the real source data and are reported in the tool output, not hidden:
- The format publishes no per-move bans, so move legality = whether the Pokémon can
learn the move in Champions (its scraped learnset).
check_legalityandget_pokemonstate this; a move marked "legal" means learnable, not separately whitelisted. - Mega legality follows the base species. A Mega isn't a separate roster entry, so
check_legality("Mega Staraptor")resolves via base "Staraptor" (and the result note says so). Specific Mega forms inbannedPokemon(Mega Garchomp Z, Mega Lucario Z) are excluded even though their base species is legal. - Champions-original ability effects aren't modelled by the damage engine.
@smogon/calccomputes base damage from the correct (overridden) stats/types, but it can't simulate the special effect of an ability it doesn't know (e.g. Mega Eelektross's "Eelevate"). Stats, typing, and the named ability are Champions-accurate; the ability's mechanical effect on the calc may be ignored for game-original abilities. - Regional-form typing can be noisy. A few Pokémon that share a dex page with a regional form (e.g. base Raichu vs Alolan Raichu) may show the union of both forms' type links in the base entry. Mega forms — the competitively relevant part — are parsed cleanly per form.
Project layout
src/index.ts MCP server: declares the 5 tools + stdio transport
src/calc.ts wraps @smogon/calc (damage formula + type effectiveness)
src/dex.ts get_pokemon lookups over data/champions-dex.json (fallback @smogon/calc)
src/regulations.ts loads/validates regulations/*.json, legality checks
src/names.ts shared Pokémon-name canonicalization (Mega word order, base species)
scripts/scrape-champions-dex.ts standalone scraper -> data/champions-dex.json (engine dex)
scripts/scrape-regulation.ts standalone scraper -> regulations/<id>.json (legality)
data/champions-dex.json Champions engine dex (generated; committed)
regulations/m-b.json legality data (generated; committed)
test/smoke.ts in-memory MCP client exercising all 5 tools
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.