Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Poke-MCPsimulate a battle between Charizard and Blastoise"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pokemon MCP Project ๐ฎ
A Model Context Protocol (MCP) server that provides Pokemon data and battle simulation capabilities to AI assistants like Claude Desktop.
Features โจ
Pokemon Data Resource: Access comprehensive Pokemon information including stats, types, abilities, and moves
Battle Simulation Tool: Simulate battles between any two Pokemon with type effectiveness and status effects
Type Effectiveness System: Accurate damage calculations based on Pokemon type matchups
Status Effects: Burn, Poison, and Paralysis effects implemented
Data Caching: Efficient caching system to minimize API calls
Project Structure ๐
Prerequisites ๐
Python 3.10 or higher
pip (Python package manager)
Internet connection (for fetching Pokemon data from PokeAPI)
Installation ๐
Step 1: Clone/Download the Project
Step 2: Create Virtual Environment (Recommended)
Step 3: Install Dependencies
Running the Server ๐ฏ
Basic Server Start
Note: The server will run silently (no output) when working correctly. This is intentional - it's waiting for MCP client connections via STDIO.
Verify Server is Running
The terminal will appear to "hang" - this means it's working!
Press
Ctrl+Cto stop the serverCheck that
data/andsrc/__pycache__/folders are created
Using with Claude Desktop ๐ค
Step 1: Locate Claude Desktop Config
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonMac:
~/Library/Application Support/Claude/claude_desktop_config.json
Step 2: Add Server Configuration
Add this to your claude_desktop_config.json:
Important: Replace C:/full/path/to/your/Poke-MCP with your actual project path including the Poke-MCP in the end of the path!
Step 3: Restart Claude Desktop
If Claude Desktop is already running close it and reopen it to load the new configuration.
Step 4: Activate Tools and Include Resources if not
Usually if Claude Desktop detectes the server it activates the tools automatically, but the resources need to be included in the chat messages (new chat -> press the + button -> click on Add from pokemon -> click on pokemon_list) and then it will be added to this only specific message.
Step 5: Test in Claude
Ask Claude:
"Can you list available Pokemon?"
"Show me details about Pikachu"
"Simulate a battle between Charizard and Blastoise"
Available MCP Resources ๐
List Pokemon
Parameters: No parameters needed. Also either way Claude Desktop dosen't accept parameters in the resources.
Returns: List of 20 Pokemons with mostly all of the information of each one of them!
Available MCP Tools ๐ ๏ธ
Battle Simulation
Parameters:
pokemonA_name: Name or ID of first PokemonpokemonB_name: Name or ID of second PokemonpokemonA_level: Level of first Pokemon (1-100, default: 50)pokemonB_level: Level of second Pokemon (1-100, default: 50)pokemonA_moves: Optional list of moves for first PokemonpokemonB_moves: Optional list of moves for second Pokemonseed: Optional seed for reproducible battlesmax_turns: Maximum battle turns (default: 200)
Returns: JSON string with these fields:
winner โ the winning Pokรฉmonโs name (or a draw indicator)
turns โ how many turns the battle took
log โ an ordered list of turn-by-turn messages
summary โ a short human-readable wrap-up
Troubleshooting ๐ง
Server appears to hang with no output
This is normal! The server runs silently when using STDIO transport. It's waiting for client connections.
ImportError: No module named 'mcp'
Install dependencies:
Port already in use (when using inspector)
KeyboardInterrupt traceback when stopping server
This is normal! It's Python's way of confirming the server stopped when you pressed Ctrl+C.
Implementation Details ๐
Battle Mechanics
Damage Formula: Uses simplified version of the official Pokemon damage formula.
Type Effectiveness: Fire > Grass, Water > Fire, etc.
STAB Bonus: 1.5x damage for moves matching Pokemon type.
Critical Hits: 6.25% chance for 1.5x damage.
Speed: Determines turn order.
Status Effects:
Burn: 1/16 HP loss per turn, halves physical damage
Poison: 1/8 HP loss per turn
Paralysis: 25% speed reduction, 25% chance to skip turn
Data Source
Pokemon data fetched from PokeAPI
Cached locally in
data/cache.jsonto reduce API calls
Project Requirements Met โ
โ MCP server implementation using FastMCP
โ Pokemon data resource with comprehensive information
โ Battle simulation tool with game mechanics
โ Type effectiveness calculations
โ Status effects (Burn, Poison, Paralysis)
โ Turn order based on Speed stats
โ Detailed battle logs
โ Evolution information
โ Move and ability data
If you encounter any issues:
Check the Troubleshooting section above
Ensure all dependencies are installed
Verify Python version is 3.10+
Check that the virtual environment is activated
Thank you.