Poke-MCP

Poke-MCP

A Model Context Protocol server that provides comprehensive Pokemon data and battle simulation capabilities to AI assistants. It enables users to access detailed stats, types, and moves while simulating battles with realistic mechanics like type effectiveness and status effects.

Category
Visit Server

README

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 ๐Ÿ“

Poke-MCP/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ server.py            # Main MCP server with the tool and the resource
โ”‚   โ”œโ”€โ”€ pokemon_types.py     # Data classes for Pokemon, Moves, etc.
โ”‚   โ”œโ”€โ”€ datastore.py         # Pokemon data fetching and caching
โ”‚   โ”œโ”€โ”€ battle.py            # Battle simulation logic
โ”‚   โ”œโ”€โ”€ mechanics.py         # Battle mechanics (damage, STAB, etc.)
โ”‚   โ”œโ”€โ”€ type_chart.py        # Type effectiveness chart
โ”‚   โ””โ”€โ”€ utils.py             # Utility functions and logging
โ”œโ”€โ”€ data/                    # Cache storage (created automatically)
โ”œโ”€โ”€ .venv/                   # Virtual environment
โ”œโ”€โ”€ pyproject.toml           # Project configuration and dependencies
โ””โ”€โ”€ README.md                # This file

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

# If you have the zip file, extract it first
# Then navigate to the project directory
cd Poke-MCP

Step 2: Create Virtual Environment (Recommended)

# Windows
python -m venv .venv
.venv\Scripts\activate

# Mac/Linux
python -m venv .venv
source .venv/bin/activate

Step 3: Install Dependencies

# Using pyproject.toml (recommended)
pip install -e .

# Or using pip directly
pip install mcp[cli]>=1.2.0 httpx>=0.26.0

Running the Server ๐ŸŽฏ

Basic Server Start

# Make sure virtual environment is activated
python -m src.server

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+C to stop the server
  • Check that data/ and src/__pycache__/ folders are created

Using with Claude Desktop ๐Ÿค–

Step 1: Locate Claude Desktop Config

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

Step 2: Add Server Configuration

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "pokemon": {
      "command": "python",
      "args": ["-m", "src.server"],
      "cwd": "C:/full/path/to/your/Poke-MCP"
    }
  }
}

--------------
If the above didn't work use the following:
--------------
{
  "mcpServers": {
    "pokemon": {
      "command": "cmd",
      "args": ["/c", "cd /d C:/full/path/to/your/Poke-MCP && .venv\\Scripts\\python.exe -m src.server"]
    }
  }
}

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 Pokemon
    • pokemonB_name: Name or ID of second Pokemon
    • pokemonA_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 Pokemon
    • pokemonB_moves: Optional list of moves for second Pokemon
    • seed: Optional seed for reproducible battles
    • max_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:

pip install mcp[cli]>=1.2.0

Port already in use (when using inspector)

# Find and kill the process
netstat -ano | findstr :6277
taskkill /PID [PID_NUMBER] /F

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.json to 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.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured