Pokemon VGC Damage Calculator MCP server

Provides Pokemon VGC damage calculation capabilities using the Smogon calc library, computing battle damage ranges, KO probabilities, and detailed combat scenarios for competitive Pokemon analysis and strategy optimization.
Back to servers
Setup instructions
Provider
jpbullalayao
Release date
Jun 08, 2025
Stats
1 star

The Pokémon VGC Damage Calculator MCP Server provides a standardized interface for AI agents to perform accurate Pokémon damage calculations using the @smogon/calc package. It offers comprehensive input handling for Pokémon stats, abilities, items, moves, and field conditions through a Model-Context Protocol (MCP) compliant implementation.

Prerequisites

  • Node.js 18+
  • npm

Installation

You can install the package globally using npm:

npm install -g pokemon-vgc-calc-mcp

Setting Up Your MCP Client

Using Remote npm Package

Configure your MCP client (Claude Desktop, Cursor, etc.) by adding the following to your configuration:

{
  "mcpServers": {
    "pokemon-calc": {
      "command": "npx",
      "args": ["pokemon-vgc-calc-mcp"],
      "env": {}
    }
  }
}

Local Installation

If you prefer to run the server locally:

  1. Clone the repository
  2. Install dependencies
  3. Build the project
git clone https://github.com/jpbullalayao/pokemon-vgc-calc-mcp.git
npm install
npm run build

Then configure your MCP client with:

{
  "mcpServers": {
    "pokemon-calc": {
      "command": "node",
      "args": ["path/to/pokemon-vgc-calc-mcp/dist/index.js"],
      "env": {}
    }
  }
}

Using the Damage Calculator

The server provides one primary tool: calculateDamage

Tool: calculateDamage

This tool calculates battle damage between an attacking and defending Pokémon.

Input Parameters

  • attacker: Pokémon object with species, level, stats, ability, item, etc.
  • defender: Pokémon object with species, level, stats, ability, item, etc.
  • move: Move object with name and optional critical hit flag
  • field: Field conditions including weather, terrain, and side effects

Output

  • description: Human-readable calculation result
  • damage: [min, max] damage range
  • koChance: Knock-out probability description
  • fullResult: Complete result object from smogon/calc

Example Usage

Here's an example of how to use the tool:

{
  "attacker": {
    "species": "Pikachu",
    "level": 50,
    "ability": "Static", 
    "item": "Light Ball",
    "nature": "Timid",
    "evs": { "spa": 252, "spe": 252, "hp": 4 }
  },
  "defender": {
    "species": "Charizard",
    "level": 50,
    "ability": "Blaze"
  },
  "move": {
    "name": "Thunderbolt"
  },
  "field": {
    "gameType": "Singles"
  }
}

Output:

**252 SpA Light Ball Pikachu Thunderbolt vs. 0 HP / 0 SpD Charizard: 198-234 (107 - 126.4%) -- guaranteed OHKO**

Damage: 198-234
KO Chance: guaranteed OHKO

Testing Your Setup

You can test the MCP server using the MCP Inspector:

npm run build
npx @modelcontextprotocol/inspector node path/to/pokemon-vgc-calc-mcp/dist/index.js

Sample Test Input

Try this example to verify your setup:

{
  "attacker": {
    "species": "Chien-Pao",
    "nature": "Jolly",
    "evs": {
      "atk": 252,
      "spe": 252,
      "hp": 4
    },
    "level": 50
  },
  "defender": {
    "species": "Flutter Mane",
    "nature": "Modest",
    "evs": {
      "hp": 164,
      "def": 100
    },
    "level": 50
  },
  "move": {
    "name": "Icicle Crash"
  },
  "field": {}
}

Expected Output

**252 Atk Sword of Ruin Chien-Pao Icicle Crash vs. 164 HP / 100 Def Flutter Mane: 126-148 (83.4 - 98%) -- guaranteed 2HKO**

Damage: 126-148
KO Chance: guaranteed 2HKO

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "pokemon-calc" '{"command":"npx","args":["pokemon-vgc-calc-mcp"],"env":[]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "pokemon-calc": {
            "command": "npx",
            "args": [
                "pokemon-vgc-calc-mcp"
            ],
            "env": []
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "pokemon-calc": {
            "command": "npx",
            "args": [
                "pokemon-vgc-calc-mcp"
            ],
            "env": []
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later