pokeapi-mcp-server MCP Server
Look up Pokémon, moves, abilities, items, natures, and type matchups from PokéAPI v2.
pokeapi-mcp-server scores 70 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 9 tools. Filed under Uncategorized. GitHub shows 1 stars. Package registries report about 258 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade B
79/100 for listing completeness. Lost points: 7 of 9 tools barely described, short summary.
How quality is graded
Where the 70 comes from
22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: No sign-in detected. Our check reached the endpoint without being asked for credentials. Some servers only check keys after connecting, so follow the provider's setup notes. Security tips
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cyanheads-pokeapi-mcp-server": { "command": "npx", "args": [ "-y", "@cyanheads/pokeapi-mcp-server@0.3.2" ], "env": { "MCP_LOG_LEVEL": "info" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
MCP_LOG_LEVEL | Optional | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
MCP_TRANSPORT_TYPE | Optional | Selects the HTTP transport. |
MCP_HTTP_HOST | Optional | The hostname for the HTTP server. |
MCP_HTTP_PORT | Optional | The port to run the HTTP server on. |
MCP_HTTP_ENDPOINT_PATH | Optional | The endpoint path for the MCP server. |
MCP_AUTH_MODE | Optional | Authentication mode to use: 'none', 'jwt', or 'oauth'. |
MCP_SESSION_MODE | Optional | Session mode to use: 'auto', 'stateful', or 'stateless'. The 'auto' schema default resolves to stateful. |
MCP_LOG_LEVEL | Optional | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
Tools9Tool docs quality grade F
All capabilitiesctx.logtoolrequest-scoped logging, ctx.state for tenant-scoped storage (and caching)
not_foundtoolthe identifier resolves to no ability
<sub>tool</sub>
<sub>tool</sub>
pokeapi_get_itemtool<sub>tool</sub>
pokeapi_get_movetool<sub>tool</sub>
<sub>tool</sub>
<sub>tool</sub>
<sub>tool</sub>
About
Public Hosted Server: https://pokeapi.caseyjhand.com/mcp
Overview
Pokémon game data from PokéAPI: Pokémon, moves, abilities, items, and natures. Get a complete Pokémon profile in one call (stats, abilities, evolution, sprites), filter by generation, type, pokédex, or egg group, and compute dual-type matchups.
Tools
| Tool | Description |
|---|---|
pokeapi_get_pokemon | Denormalized Pokémon dossier in one call — stats, types, abilities, earlier-generation typing, abilities, and stats, evolution chain, sprites, and species data |
pokeapi_get_type_matchups | Computed offensive and defensive type effectiveness for one type, two types, or a Pokémon, with correctly composed dual-type matchups, current or as of an earlier generation |
pokeapi_get_move | Move details — type, damage class, power, accuracy, PP, priority, stat changes, effect text, and the TM, TR, or HM that teaches it per version group |
pokeapi_get_ability | Ability details — effect text and the Pokémon that have it, with hidden-ability flag and slot |
pokeapi_get_item | Item details — effect text, category, versioned prices, fling power, attributes, common holders, and the move a TM, TR, or HM teaches per version group |
pokeapi_get_nature | Nature details — stat boost/penalty and berry flavor preferences; lists all 25 when called without an identifier |
pokeapi_find_pokemon | Filter Pokémon by generation, type, pokédex, or egg group, with name-token matching and pagination |
Resources
| Resource | Description |
|---|---|
pokeapi://pokemon/{identifier} | Pokémon dossier by name or PokéAPI Pokémon-record ID — same payload as pokeapi_get_pokemon without moves |
pokeapi://type/{typeName} | Type damage relations — raw multiplier table, offensive and defensive |
All resource data is also reachable via tools.
Prompt
Request pokeapi_team_builder through your client's prompt picker with required arguments lead, opponent, and opponent_kind (pokemon or type). For example, the MCP prompts/get parameters are:
{
"name": "pokeapi_team_builder",
"arguments": { "lead": "charizard", "opponent": "aerodactyl", "opponent_kind": "pokemon" }
}
For a type opponent, use "opponent": "electric", "opponent_kind": "type". Retrieval returns instructions; the client then calls the existing tools to propose up to six verified members including the lead. The workflow asks for game/format restrictions and separates type-chart and base-stat observations from recommendations. It does not establish battle turn order, game legality, or guaranteed counters; a type opponent has no individual Speed.
Capability reference
pokeapi_get_pokemon tool
- Accepts a name (including display spellings such as
Mr. Mime) or numeric PokéAPI Pokémon-record ID asidentifier; an unknown entry returnsnot_found. A species name resolves to its default variety (deoxysreturnsdeoxys-normal, withresolvedFromSpecies: "deoxys"). - Returns stats, types, ability effects, sprites, evolution chain (every
evolutionDetailsalternative), varieties, capture and growth rates, gender ratio, and legendary/mythical flags in one dossier. - Each evolution stage's
trigger,minLevel,item, andconditionsummarize its firstisDefaultalternative, else its first;conditionlists every populated requirement of that alternative as comma-separated phrases.evolutionDetailsholds every alternative with its full requirements. pastTypes,pastAbilities, andpastStatshold the earlier-generation typing, ability slots, and base stats and effort yields as PokéAPI records them, oldest first, each taggedthroughGeneration.pastTypesentries are complete;pastAbilitiesandpastStatslist only what changed, and a slot or stat an entry omits takes its value from the next later entry that lists it, else the current data. Generation I listsspecialas its own stat with effort 0.idpreserves Pokémon-record identity, including forms.speciesIdis the National Pokédex number;pokedexNumberslists Pokédex entries as{ pokedex, entryNumber }. Breeding data includes nullablehatchCounterandbaseHappiness, plusisBaby. Alolan Raichu keeps record ID 10100 while reporting species ID 26.include_moves(defaultfalse) adds each move's learn methods, levels, andversionGroup, selecting the latest group per move and method by PokéAPI's chronology. Distinct levels within that group are retained.moveCountalways counts distinct moves across all groups.version_group(such asscarlet-violet) implies move inclusion and selects that group's recorded methods and levels. A known group with no moves returns an empty list and a notice; an unknown group returnsinvalid_version_group. If default-summary chronology metadata is unavailable, a notice identifies the fallback to each move and method's last group in source order.game_versionselects English flavor text independently of moves, by PokéAPI version name or in-game title (omega-ruby,Fire Red,Let's Go, Pikachu!); a blank value counts as omitted.flavorTextVersionnames its source. A missing match, including an unknown version, keeps the successful dossier and reports the fallback to the last English entry in PokéAPI source order. Both text fields are null when no English entry exists. A soft hyphen before a line break rejoins its word.
pokeapi_get_type_matchups tool
- Requires exactly one of
typeorpokemon(name or PokéAPI Pokémon-record ID); unknown entries returnnot_found, and an unknown part of a two-typetypeis named in the error. typeis one string naming one type or two, separated by whitespace,/,,, or+(water/ground,Fire, Flying); a repeated type collapses to one, and three or more returninvalid_input. Two types compose their defense as a dual-type Pokémon does, andqueryTypestaystype.- Species names resolve to their default variety (
deoxysusesdeoxys-normal);resolvedPokemonandresolvedFromSpeciesreport the match and are null for direct type queries. - Returns
offensiveByType(each resolved type's attacking relations, keyed by type, present for single types too),offensiveRelations(the same relations for one type, null for two), anddefensiveMatchups, with dual-type defenses composed and immunity taking precedence. composedMultiplierscarries 0, 0.25, 0.5, 1, 2, or 4 per attacking type; absent types also deal 1×.generation(a name such asgeneration-v, an in-game name such asGeneration V, or a number, the grammar ofpokeapi_find_pokemon) answers as of that generation: type relations, and a Pokémon's typing from itspastTypes, as they stood then, without types introduced later. Thegenerationoutput echoes the canonical name and is null for current data. An unknown value returnsinvalid_generation; a type or Pokémon form introduced after the generation returnsnot_in_generationnaming its generation. PokéAPI records no damage relations for stellar, shadow, or unknown, so those types come back empty.
pokeapi_get_move tool
- Accepts a move name (such as
King’s Shield) or numeric ID; an unknown entry returnsnot_found. - Returns type, damage class, power, accuracy, PP, priority, target, stat changes, and secondary-effect chance, plus full and short English effect text.
powerandaccuracyare null when the move has none, including where PokéAPI lists a placeholder 0. - When PokéAPI has no English effect description,
effectTextfalls back to the latest English in-game text, named byeffectTextVersionGroup(null for PokéAPI's own description or when there is no text);shortEffectTextis then null. statChangeslists the stage changes PokéAPI records; it does not say whether they land on the user or the target, or under what condition, so readeffectTextfor both.machineslists the TM, TR, or HM that teaches the move per version group, in upstream order, as{ versionGroup, item }.version_group(such asscarlet-violet) limits the rows to one group; an unknown group returnsinvalid_version_group, and a known group with no row returns an empty list and a notice. A row whose machine record failed, ran late, or was skipped while PokéAPI rate-limits requests has a nullitemand a notice innotices.include_learners(defaultfalse) adds the list of Pokémon that can learn the move.learnersIncludeddistinguishes an unrequested list from a requested list with no known learners.
pokeapi_get_ability tool
- Accepts an ability name or numeric ID
- Returns full and short English effect text, the generation introduced, and every Pokémon that has the ability, with its hidden-ability flag and slot
not_foundwhen the identifier resolves to no ability
pokeapi_get_item tool
- Accepts an item name (such as
Poké Ball) or numeric ID - Returns category, fling power, attributes (holdable, consumable, etc.), sprite URL, effect text, and Pokémon that commonly hold it
- When PokéAPI has no English effect description,
effectTextfalls back to the latest English in-game text, named byeffectTextVersionGroup. Placeholder text (N/A, rows of dashes, unfilled game-text variables) is skipped, so those items keep no effect text. machineslists the move a TM, TR, or HM teaches per version group as{ versionGroup, move }, in upstream order; it is empty for other items.version_grouplimits the rows to one group and behaves as onpokeapi_get_move. A machine's effect text is one description for every version group and can name a different move than a given row, so read the rows for a particular game.priceslists every version/currency row (versionGroup,currency,purchasePrice,sellPrice); null means not purchasable/sellable there, and an empty list means no price records.costis the legacy Pokédollar cost, or null.not_foundwhen the identifier resolves to no item
pokeapi_get_nature tool
identifier(name or ID 1–25) is optional — omit it to return all 25 natures at once (isListAll: true)- Each entry carries the boosted stat, reduced stat, and liked/disliked berry flavor — all null for the 5 neutral natures
not_foundwhen a provided identifier resolves to no nature
pokeapi_find_pokemon tool
- Requires at least one of
generation,type,pokedex, andegg_group, combined with AND logic;query(at most 100 characters) adds per-token name matching within them. Aninvalid_filtererror names the failed filter and lists its accepted names when the catalog is available. - Egg groups accept in-game names such as
Field,Water 1, andAmorphous;appliedFiltersreports their canonical PokéAPI names. Regions with multiple dexes need a specificpokedex, such asoriginal-sinnohorextended-sinnoh. - Returns
idandnameentries for follow-uppokeapi_get_pokemoncalls, withtotalCountbefore paging. Type-only searches include forms; generation, pokédex, and egg-group filters return species. Apokedexfilter also returns each species' regionalentryNumberand sorts by that number before paging, including mixed-filter searches. Searches without a dex retain PokéAPI ID order. appliedFiltersechoes the filters, query tokens,limit, andoffsetthat were applied. A call with no category returns no entries and a notice saying one is required.limit(default 50) andoffset(default 0) paginate the filtered set. A page past the last match keepstotalCountand advisesoffset: 0; zero matches advise relaxing the filters.
pokeapi://pokemon/{identifier} resource
- Same payload as
pokeapi_get_pokemonwithinclude_movesfixed tofalse, includingpastTypes,pastAbilities, andpastStats identifieris a name or PokéAPI Pokémon-record ID, including form IDs; a species name resolves to its default variety. URI variables are percent-decoded once:pokeapi://pokemon/mr%2Dmimeresolves to Mr. Mime. Malformed escapes return a validation error; double-encoded values remain missesnot_foundwhen the identifier matches no Pokémon record and no species
pokeapi://type/{typeName} resource
- Returns the raw offensive and defensive damage-relation multiplier table for one type
typeNameis a PokéAPI type name; URI variables are percent-decoded once, sopokeapi://type/f%69reresolves to Firenot_foundwhen the type name doesn't exist in PokéAPI
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
PokéAPI-specific:
- Keyless and read-only — no API key, no auth, no configuration required to run
- Graph-walk consolidation —
pokeapi_get_pokemonfans out across/pokemon,/pokemon-species,/evolution-chain, and N/abilityendpoints in two parallel tiers, returning one object - Aggressive caching — PokéAPI data is static game data; responses are cached with a configurable TTL (default 6 h) to respect PokéAPI's fair-use policy
- Input normalization — folds display names by lowercasing, removing diacritics, apostrophes, periods, and colons, mapping
♀/♂to-f/-m, and hyphenating whitespace. The result must contain only lettersa–z, digits, or hyphens and fit within 100 characters. Invalid identifiers returnnot_foundwithout a record request; an invalid search filter returnsinvalid_filterand may fetch its separate vocabulary for recovery - English-first —
effect_entriesandflavor_text_entriesare always filtered tolanguage.name === 'en'; absent entries surface asnullrather than a foreign-language string
Agent-friendly output:
- Dual-type composition —
pokeapi_get_type_matchupscomputes the effective matchup matrix from raw damage relations, so agents get a direct answer rather than raw tables to multiply - Variant surface —
pokeapi_get_pokemonlists all form variants so agents can identify and re-call with specific forms (Alolan, Galarian, Mega, Gigantamax) - Nullable details — missing descriptions, sprites, holders, and learners are stated explicitly in text and structured results rather than omitted
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http pokeapi-mcp-server https://pokeapi.caseyjhand.com/mcp
Or run it locally:
claude mcp add pokeapi-mcp-server -- npx -y @cyanheads/pokeapi-mcp-server
For other clients, add this to the MCP config file:
{
"mcpServers": {
"pokeapi-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/pokeapi-mcp-server"]
}
}
}
No API key is required. For Docker or a source build, see Running the server.
Configuration
| Variable | Description | Default |
|---|---|---|
POKEAPI_BASE_URL | PokéAPI base URL — override for local mirrors or proxies. | https://pokeapi.co/api/v2 |
POKEAPI_CACHE_TTL_SECONDS | How long to cache PokéAPI responses (seconds). | 21600 (6 h) |
POKEAPI_REQUEST_TIMEOUT_MS | Per-request timeout in milliseconds. | 10000 |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_SESSION_MODE | HTTP session mode: auto, stateful, or stateless. | stateless |
MCP_HTTP_PORT | Port for HTTP server. | 3010 |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
LOG_TOOL_FAILURE_PAYLOADS | Log failed-call input and result, redacted by key name and capped at LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES (default 16384). Secrets inside free-form values are not redacted. | false |
OTEL_ENABLED | Enable OpenTelemetry instrumentation. | false |
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT | OTLP log export endpoint. | Unset |
See .env.example for the full list of optional overrides.
Self-hosting for high-volume use
PokéAPI's Fair Use Policy asks consumers to cache aggressively and points high-volume deployments toward running a local instance. This server already caches responses for 6 hours by default (POKEAPI_CACHE_TTL_SECONDS), which covers most workloads. For hosted or batch-heavy deployments, run the official PokéAPI Docker image locally and point POKEAPI_BASE_URL at it — the server switches transparently.
Running the server
Local development
Requires Bun v1.4.4 or higher (or Node.js v24+).
git clone https://github.com/cyanheads/pokeapi-mcp-server.git
cd pokeapi-mcp-server && bun install
cp .env.example .env # optional overrides; no API key required
-
Build and run:
bun run rebuild bun run start:stdio # or bun run start:http -
Run checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Offline Vitest suite with deterministic fetch fixtures bun run lint:mcp # Validate MCP definitions against spec
Docker
docker run --rm -p 3010:3010 ghcr.io/cyanheads/pokeapi-mcp-server:latest
The image defaults to HTTP transport, stateless session mode, and logs to /var/log/pokeapi-mcp-server. For stdio, run docker run -i --rm -e MCP_TRANSPORT_TYPE=stdio ghcr.io/cyanheads/pokeapi-mcp-server:latest. To build locally, run docker build -t pokeapi-mcp-server .; add --build-arg OTEL_ENABLED=false to omit OpenTelemetry peer dependencies.
Project structure
| Path | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools, resources, prompts, and inits services. |
src/config/ | Server-specific env var parsing with Zod (server-config.ts). |
src/mcp-server/tools/ | Tool definitions (*.tool.ts). |
src/mcp-server/resources/ | Resource definitions (*.resource.ts). |
src/mcp-server/prompts/ | Pure prompt templates (*.prompt.ts). |
src/services/pokeapi/ | PokeApiService — typed fetch methods, caching, retry, timeout. |
tests/ | Vitest test suite mirroring src/. |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — catch typed upstream errors only to map a declared
errors[]contract withctx.fail(...) - Use
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storage (and caching) - Register new tools, resources, and prompts in the
createApp()arrays insrc/index.ts - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
License
Apache-2.0 — see LICENSE for details.
Frequently asked questions
What is pokeapi-mcp-server MCP Server?
Look up Pokémon, moves, abilities, items, natures, and type matchups from PokéAPI v2.
How do I install pokeapi-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. pokeapi-mcp-server MCP Server runs locally from the npm package @cyanheads/pokeapi-mcp-server with the command npx -y @cyanheads/pokeapi-mcp-server@0.3.2.
Is pokeapi-mcp-server MCP Server free and open source?
Yes. pokeapi-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does pokeapi-mcp-server MCP Server support remote (HTTP) connections?
Yes. pokeapi-mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does pokeapi-mcp-server MCP Server provide?
pokeapi-mcp-server MCP Server provides 9 tools, including ctx.log, not_found, pokeapi_find_pokemon, and pokeapi_get_ability. See the full tool list for descriptions and parameters.
How is pokeapi-mcp-server MCP Server's trust score calculated?
pokeapi-mcp-server MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.