Custom Model Context Protocol server providing 21 enterprise-grade tools for TrinityCore bot development with World of Warcraft 11.2 (The War Within). n## 🆕 What's New in v1.3.0
🚀 Massive API Documentation Expansion - Added 3,756 TrinityCore API documentation files covering Aura, Combat, Creature, and GameObject systems
⚙️ Enterprise Gear Optimizer - Comprehensive stat weight database with 250+ profiles for all 13 classes, 39 specs, and 6 content types based on WoW 11.2 theorycrafting
📁 Documentation Reorganization - Cleaner project structure with all docs moved to doc/ subdirectory
- Game Data Queries: Query spells, items, quests, creatures from World database
- DBC/DB2 Reading: Parse and query client-side database files
- GameTable (GT) Files: Access critical game calculation tables
- Combat ratings (crit, haste, mastery) per level
- Experience required per level
- Base mana per class and level
- Health per stamina
- Spell scaling factors
- Item level calculations
- Battle pet progression
 
- Trinity API Docs: Access TrinityCore C++ API documentation
- Opcode Information: Get packet opcode documentation and structure
- Spell System: Detailed spell data with effects, auras, and mechanics
- Item Database: Item properties, stats, and requirements
- Quest System: Quest chains, objectives, and rewards
- Talent Optimization: Recommended talent builds for all specs and purposes (leveling, raid, PvP, dungeon)
- Combat Mechanics: Melee/spell damage calculations, armor mitigation, DPS estimates
- Buff Optimization: Optimal buff and consumable recommendations based on activity and budget
- Dungeon/Raid Strategy: Boss mechanics, pull strategies, trash routes, loot priorities
- Economy/Auction House: Item pricing analysis, market trends, crafting profitability
- Reputation System: Optimal reputation grinding paths with time estimates
- Multi-Bot Coordination: Raid cooldown coordination, formation management, group synergy
- PvP Arena/BG Tactician: Arena composition analysis, battleground strategies, PvP talent builds
- Quest Route Optimizer: Optimal quest routing, leveling paths, XP/hour calculations
- Collection Manager: Pet/mount/toy tracking, farming routes, completion planning
cd C:\TrinityBots\trinitycore-mcp
npm install
npm run buildCreate .env file:
TRINITY_DB_HOST=localhost
TRINITY_DB_PORT=3306
TRINITY_DB_USER=trinity
TRINITY_DB_PASSWORD=your_password
TRINITY_ROOT=C:\TrinityBots\TrinityCore
DBC_PATH=C:\TrinityBots\Server\data\dbc
DB2_PATH=C:\TrinityBots\Server\data\db2
MCP_PORT=3000npm startFor detailed configuration instructions, see MCP_CONFIGURATION.md
Add to .claude/mcp-servers-config.json:
{
  "trinitycore": {
    "command": "node",
    "args": ["C:\\TrinityBots\\trinitycore-mcp\\dist\\index.js"],
    "env": {
      "TRINITY_DB_HOST": "localhost",
      "TRINITY_DB_USER": "trinity",
      "TRINITY_DB_PASSWORD": "${TRINITY_DB_PASSWORD}"
    }
  }
}Total: 21 MCP Tools across 3 development phases
Get detailed spell information:
{
  "spellId": 1234
}Get item data:
{
  "itemId": 5678
}Get quest information:
{
  "questId": 9012
}Query DBC file:
{
  "dbcFile": "Spell.dbc",
  "recordId": 1234
}Get TrinityCore API documentation:
{
  "className": "Player"
}Get opcode documentation:
{
  "opcode": "CMSG_CAST_SPELL"
}Get optimized talent build for a specialization:
{
  "specId": 71,
  "purpose": "raid",
  "playerLevel": 60
}Calculate expected melee damage output:
{
  "weaponDPS": 150.5,
  "attackSpeed": 2.6,
  "attackPower": 2500,
  "critRating": 1200,
  "level": 60
}Get optimal buff and consumable recommendations:
{
  "classId": 1,
  "specId": 71,
  "activity": "raid",
  "budget": "medium"
}Get comprehensive dungeon/raid strategy:
{
  "dungeonId": 36,
  "difficulty": "heroic",
  "groupComp": ["tank", "healer", "dps", "dps", "dps"]
}Analyze auction house pricing and trends:
{
  "itemId": 172230,
  "realm": "Area-52"
}Get optimal reputation grinding path:
{
  "factionId": 1134,
  "currentStanding": "friendly",
  "targetStanding": "exalted"
}Coordinate raid cooldowns across multiple bots:
{
  "bots": [
    {
      "name": "BotTank",
      "classId": 1,
      "role": "tank",
      "cooldowns": [...]
    }
  ],
  "encounterDuration": 300
}Analyze PvP arena team composition:
{
  "bracket": "3v3",
  "team": [
    {
      "classId": 4,
      "className": "Rogue",
      "specId": 259,
      "role": "melee_dps",
      "rating": 2400
    }
  ],
  "rating": 2400
}Get battleground strategy and tactics:
{
  "bgId": 2
}Get PvP-optimized talent build:
{
  "specId": 259,
  "bracket": "3v3"
}Optimize quest completion route for a zone:
{
  "zoneId": 14,
  "playerLevel": 20,
  "maxQuests": 30
}Get optimal multi-zone leveling path:
{
  "startLevel": 10,
  "targetLevel": 60,
  "faction": "alliance"
}Get collection progress status:
{
  "type": "mount",
  "accountId": 1
}Find missing collectibles by rarity:
{
  "type": "pet",
  "minRarity": "rare"
}Get optimized farming route for a collectible:
{
  "collectibleId": 32768,
  "type": "mount"
}Query a GameTable file:
{
  "tableName": "CombatRatings.txt",
  "rowId": 60,
  "maxRows": 100
}List all available GameTables:
{}Get combat rating for a level:
{
  "level": 60,
  "statName": "Crit - Melee"
}Get character stats for a level:
{
  "level": 60,
  "className": "Mage"
}trinitycore-mcp/
├── src/
│   ├── index.ts           # Main server entry point
│   ├── tools/
│   │   ├── spell.ts       # Spell-related tools
│   │   ├── item.ts        # Item-related tools
│   │   ├── quest.ts       # Quest-related tools
│   │   ├── dbc.ts         # DBC/DB2 reader
│   │   ├── api.ts         # Trinity API docs
│   │   └── opcode.ts      # Opcode documentation
│   ├── database/
│   │   ├── connection.ts  # MySQL connection
│   │   └── queries.ts     # SQL queries
│   └── utils/
│       ├── parser.ts      # DBC/DB2 parser
│       └── cache.ts       # Caching layer
├── package.json
├── tsconfig.json
└── README.md
npm run buildnpm run devnpm test// Get Fireball spell
const fireball = await tools.getSpellInfo({ spellId: 133 });
console.log(fireball.name); // "Fireball"
console.log(fireball.effects); // Array of spell effects// Read spell DBC record
const spellRecord = await tools.queryDBC({
  dbcFile: "Spell.dbc",
  recordId: 133
});// Get Player class API
const playerAPI = await tools.getTrinityAPI({
  className: "Player"
});
console.log(playerAPI.methods); // Available methodsGPL-2.0 (same as TrinityCore)
Contributions welcome! Please follow TrinityCore coding standards.
For issues or questions, create an issue in the Playerbot repository.