Pokédex MCP Server
A Model Context Protocol (MCP) server that provides comprehensive Pokémon data access through the PokeAPI. This server enables AI agents to fetch detailed Pokémon information, type effectiveness charts, encounter locations, and search capabilities.
Features
Detailed Pokémon Information: Get comprehensive data including stats, abilities, types, sprites, and artwork
Type Effectiveness: Complete damage relationship charts for all Pokémon types
Encounter Locations: Wild encounter data with locations, levels, and capture methods
Search Functionality: Find Pokémon by partial name matching
REST API Client: Full TypeScript client for PokeAPI v2 with type safety
Zod Validation: Runtime schema validation for all tool inputs
Clean Architecture: Modular design with separated concerns
Architecture
The server is built with a clean, modular architecture:
Core Components
MCP Server: Uses
@modelcontextprotocol/sdk
for protocol complianceREST API Client: Comprehensive PokeAPI v2 client with full TypeScript support
Zod Validation: Runtime type checking and schema validation
Response Formatters: Centralized formatting for consistent output
Available Tools
fetch_pokemon
Fetch detailed information about a Pokémon by name or ID.
Parameters:
name
(string): The name or ID of the Pokémon
Example Response:
get_type_effectiveness
Get type effectiveness information including strengths, weaknesses, and resistances.
Parameters:
name
(string): The name or ID of the type
Example Response:
get_pokemon_encounters
Get location encounter information for a Pokémon.
Parameters:
name
(string): The name or ID of the Pokémon
Example Response:
search_pokemon
Search for Pokémon by partial name match.
Parameters:
query
(string): Partial name to search for
Example Response:
Installation
Prerequisites
Node.js 18+
pnpm (recommended) or npm
Setup
Clone and install dependencies:
git clone <repository> cd pokedex pnpm installBuild the project:
pnpm buildRun the server:
node dist/index.js
Development
Project Structure
Available Scripts
Development Guidelines
ES Modules: Project uses
"type": "module"
for modern JavaScriptTypeScript: Strict mode enabled with ES2022 target
Code Style: Formatted with consistent patterns
Validation: All inputs validated with Zod schemas
Error Handling: Comprehensive error catching and user-friendly messages
MCP Integration
Claude Desktop Integration
Add to your Claude Desktop MCP configuration:
Other MCP Clients
The server implements the standard MCP protocol and works with any compliant client:
Transport: stdio (standard input/output)
Protocol Version: 2025-06-18
Capabilities: tools (with listChanged support)
API Coverage
This server provides access to major PokeAPI v2 endpoints:
Pokémon Data:
/pokemon/{id or name}
- Complete Pokémon informationType Information:
/type/{id or name}
- Type effectiveness and relationshipsEncounter Data:
/pokemon/{id}/encounters
- Wild encounter locationsSearch:
/pokemon
list endpoint for name-based searching
Dependencies
Runtime Dependencies
@modelcontextprotocol/sdk: MCP protocol implementation
zod: Runtime type validation and schema definition
Development Dependencies
typescript: TypeScript compiler and language support
@types/node: Node.js type definitions
Contributing
Follow existing code patterns and architecture
Maintain TypeScript strict mode compliance
Add appropriate error handling for new features
Update formatters for consistent response formatting
Test with MCP clients before submitting changes
API References
PokeAPI: https://pokeapi.co/docs/v2
MCP Protocol: https://modelcontextprotocol.io
MCP TypeScript SDK: https://github.com/modelcontextprotocol/typescript-sdk
License
This project provides educational access to Pokémon data through the public PokeAPI service. All Pokémon data is owned by The Pokémon Company.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables AI agents to access comprehensive Pokémon data through PokeAPI, including detailed Pokémon information, type effectiveness charts, encounter locations, and search capabilities. Provides a complete toolkit for retrieving stats, abilities, sprites, battle mechanics, and wild encounter data for all Pokémon.
Related MCP Servers
- -securityFlicense-qualityFetch Pokémon data from PokéAPILast updated -
- AsecurityAlicenseAqualityA Model Context Protocol server that provides Pokémon information by connecting to the PokeAPI, enabling users to query detailed Pokémon data, discover random Pokémon, and find Pokémon by region or type.Last updated -411MIT License
- -securityFlicense-qualityProvides powerful data analysis capabilities for AI systems with functions for data import/export, SQL querying, statistical analysis, and data processing.Last updated -9
- -securityFlicense-qualityAn intelligent Pokémon battle strategy assistant that provides strategic recommendations, type effectiveness analysis, and competitive insights through conversational AI powered by Algolia search.Last updated -