Path of Exile 2 Build Optimizer MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Path of Exile 2 Build Optimizer MCP
Community Project Disclaimer
This is an independent, fan-made community project built out of love for Path of Exile 2. It is not affiliated with, endorsed by, or officially connected to Grinding Gear Games in any way. Path of Exile is a trademark of Grinding Gear Games. All game data and assets remain the property of their respective owners.
A Model Context Protocol (MCP) server for Path of Exile 2 character analysis and optimization. Provides 32 MCP tools for AI-powered build analysis, passive tree analysis, item mod validation, support gem validation, and Path of Building integration.
What is This?
This is an MCP server - a backend service that gives AI assistants (like Claude, ChatGPT, Cursor, etc.) the ability to analyze your Path of Exile 2 characters and provide optimization recommendations.
What it does:
Fetches your character data from poe.ninja
Analyzes defensive stats, skills, gear, and passive tree
Validates support gem combinations (prevents invalid recommendations)
Inspects spell and support gem data
Imports/exports Path of Building codes
Compares your build to top ladder players
Explains PoE2 game mechanics
What you need:
An AI assistant that supports MCP (Claude Desktop, ChatGPT Desktop, Cursor, Windsurf, etc.)
Python 3.9+ installed
Your PoE2 character on poe.ninja (public profile)
Related MCP server: poe2-mcp-server
Quick Start
1. Install
Option A: PyPI (Recommended)
pip install poe2-mcpOption B: From Source
git clone https://github.com/HivemindOverlord/poe2-mcp.git
cd poe2-mcp
pip install -e .Prerequisites
Python 3.9+ - Required for running the MCP server
Node.js 16+ - Required only if using agent-browser for trade auth
npm - Comes with Node.js, needed for agent-browser installation
2. Connect to Your AI Assistant
Choose your platform below:
Claude Desktop Integration
Option A: Manual Configuration (Recommended for Development)
Edit your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add this server (replace the path with your actual installation path):
Windows:
{
"mcpServers": {
"poe2-optimizer": {
"command": "python",
"args": ["C:\\Users\\YourName\\poe2-mcp\\launch.py"],
"env": {}
}
}
}macOS/Linux:
{
"mcpServers": {
"poe2-optimizer": {
"command": "python3",
"args": ["/Users/YourName/poe2-mcp/launch.py"],
"env": {}
}
}
}Restart Claude Desktop. The server will appear in your MCP tools.
Option B: Download .mcpb Bundle (One-Click Install)
Pre-built MCP bundles are available for one-click installation in Claude Desktop:
Download
poe2-mcp-1.0.0.mcpbfrom the GitHub ReleasesIn Claude Desktop: Settings > Extensions > Install Extension
Select the downloaded
.mcpbfile
Note: The bundle is ~109MB as it includes all game data files. Python 3.9+ must be installed on your system.
Recommendation: For development or if you want automatic updates, use Option A (manual configuration) with
pip install poe2-mcp.
Other AI Platforms
MCP is an open standard supported by multiple AI platforms:
OpenAI ChatGPT Desktop
ChatGPT desktop app supports MCP servers. Configuration varies by version - check OpenAI's documentation for current setup instructions.
Cursor AI
Cursor supports MCP via SSE protocol. Add to your Cursor settings:
{
"mcp": {
"servers": {
"poe2-optimizer": {
"command": "python",
"args": ["/path/to/poe2-mcp/launch.py"]
}
}
}
}Windsurf
Windsurf has a built-in MCP Plugin Store. You can either:
Search for "poe2" in the plugin store (if published)
Manually add the server path in settings
Claude Code (CLI)
# In your project directory
claude mcp add poe2-optimizer python /path/to/poe2-mcp/launch.pyOther Compatible Clients
Zed Editor
Replit
Codeium
Sourcegraph
Microsoft Semantic Kernel
Salesforce Agentforce
Check each platform's documentation for MCP server configuration.
Available Tools (32 Registered)
Once connected, you can ask your AI assistant to use these tools:
Character Analysis
Tool | Description |
| Full character analysis (defenses, skills, gear, passives) |
| Import character from poe.ninja URL directly |
| Compare your build to ladder leaders |
| Analyze allocated passive nodes |
Validation & Inspection
Tool | Description |
| Check if support gems work together |
| Validate build against game rules |
| View complete support gem data |
| View complete spell gem data |
| List all available support gems |
| List all available spell gems |
Passive Tree Data
Tool | Description |
| List all keystones with full stats |
| Get complete keystone details by name |
| List all notable passives with stats |
| Get details for any passive node |
Base Item Data
Tool | Description |
| List all base item types |
| Get details for a specific base item |
Item Mod Data
Tool | Description |
| Get complete details for a specific mod by ID |
| List mods with filtering by type (PREFIX/SUFFIX/IMPLICIT) |
| Search for mods by keyword (e.g., "fire", "life") |
| Show all tier variations of a mod family |
| Check if mods can legally exist together on an item |
| List all mods available for a generation type |
Path of Building
Tool | Description |
| Import Path of Building code |
| Export build to PoB format |
| Get PoB code for a character |
Trade & Items
Tool | Description |
| Search local item database |
| Search official trade site (requires auth) |
| Set up trade site authentication (Playwright) |
| Set up trade auth using agent-browser CLI |
Knowledge & Utility
Tool | Description |
| Explain PoE2 game mechanics |
| Get calculation formulas |
| Check server status |
| Clear cached data |
Note: Additional tools (DPS calculator, EHP calculator, optimizers) have handlers implemented but are not yet registered. These may be enabled in future updates.
Example Usage
Once configured, just talk to your AI naturally:
"Analyze my character TomawarTheFourth from account Tomawar"
"Import this poe.ninja URL: https://poe.ninja/poe2/builds/char/..."
"Can I use Faster Projectiles and Slower Projectiles together?" (uses
validate_support_combination)
"Show me all support gems that work with projectiles" (uses
list_all_supports)
"What keystones are available for life builds?" (uses
list_all_keystones)
"Tell me about Chaos Inoculation" (uses
inspect_keystone)
"Compare my build to top Witchhunter players"
"Explain how armor works in PoE2"
"What prefixes can roll on items?" (uses
get_available_mods)
"Show me all tiers of the Strength mod" (uses
get_mod_tiers)
"Can Strength1 and Strength2 exist on the same item?" (uses
validate_item_mods)
"Search for fire resistance mods" (uses
search_mods_by_stat)
The AI will use the appropriate tools automatically.
Detailed Usage Examples
Character Analysis
Basic character analysis:
"Analyze my character ThexSeeker from account WilliamRodriguez-2650"This will fetch the character from poe.ninja and provide:
Life/Energy Shield totals
Resistance summary
Passive tree analysis (keystones, notables)
Skill gem setups with DPS estimates
Equipment overview
Compare to top players:
"Compare my Witchhunter to top ladder players"Support Gem Validation
Check if gems work together:
"Can I use Faster Projectiles and Slower Projectiles together?"The tool will detect conflicts like:
Projectile Acceleration + Deceleration (incompatible)
Concentrated Effect + Increased Area (incompatible)
Find best supports for a skill:
"What are the best support gems for Comet?"Passive Tree Analysis
List all keystones:
"Show me all keystones for life builds"Inspect a specific node:
"Tell me about Chaos Inoculation"Item Mods
Search for mods by stat:
"Search for fire resistance mods"Get mod tiers:
"Show me all tiers of the Increased Life mod"Validate mod combinations:
"Can Strength1 and Strength2 exist on the same item?"Trade API Authentication (Optional)
For search_trade_items to work, you need to authenticate with pathofexile.com.
Option 1: Playwright (Default)
pip install playwright
playwright install chromiumThen use the setup_trade_auth MCP tool to open a browser and log in.
Option 2: agent-browser CLI (Alternative)
If you prefer using agent-browser instead of Playwright:
npm install -g agent-browser
agent-browser installThen use the setup_trade_auth_browser MCP tool. This provides the same functionality
using the agent-browser CLI instead of Playwright.
Both methods save your POESESSID cookie to .env for use with trade searches.
Step-by-Step Authentication
Using Playwright:
Install:
pip install playwright && playwright install chromiumCall MCP tool:
setup_trade_authA browser window opens to pathofexile.com
Log in with your account
Wait for "SUCCESS" message (cookie captured automatically)
Restart MCP server
Using agent-browser:
Install:
npm install -g agent-browser && agent-browser installCall MCP tool:
setup_trade_auth_browserBrowser opens, log in as above
Cookie captured and saved to
.envRestart MCP server
Troubleshooting Authentication
Issue | Solution |
"POESESSID not found" | Make sure you're logged in to pathofexile.com |
"Timeout" | Complete login within 5 minutes |
"agent-browser not found" | Run |
"playwright not found" | Run |
Cookie expires quickly | Re-run auth tool to refresh |
Trade search still fails | Restart MCP server after auth |
Local Game Database
The server includes a local database with:
4,975+ passive tree nodes
335+ ascendancy nodes (99% coverage)
14,269 item modifiers (2,252 prefixes, 2,037 suffixes, 8,930 implicits)
Complete skill gem data from Path of Building
Support gem effects and interactions
Base items and unique items
Data is loaded from data/ directory on startup.
Architecture
poe2-mcp/
├── launch.py # Entry point
├── src/
│ ├── mcp_server.py # Main MCP server (32 tools registered)
│ ├── api/ # External API clients
│ │ ├── poe_ninja_api.py
│ │ ├── character_fetcher.py
│ │ └── rate_limiter.py
│ ├── analyzer/ # Analysis components
│ │ ├── character_analyzer.py
│ │ └── weakness_detector.py
│ ├── calculator/ # Numeric calculations
│ │ ├── ehp_calculator.py
│ │ ├── spirit_calculator.py
│ │ └── stun_calculator.py
│ ├── data/ # Data providers
│ │ ├── mod_data_provider.py
│ │ └── fresh_data_provider.py
│ ├── optimizer/ # Optimization engines
│ │ ├── gear_optimizer.py
│ │ └── gem_synergy_calculator.py
│ ├── parsers/ # Data parsers
│ │ ├── passive_tree_resolver.py
│ │ └── specifications/ # Datc64 format specifications
│ ├── knowledge/ # Game mechanics knowledge base
│ │ └── poe2_mechanics.py
│ └── database/ # SQLite database
│ ├── models.py
│ └── manager.py
├── data/ # Game data files
│ ├── psg_passive_nodes.json
│ ├── poe2_support_gems_database.json
│ └── poe2_mods_extracted.json
└── tests/ # Test suiteDevelopment
Running Tests
pytest tests/ -vRunning the Server Directly
# If installed via pip
poe2-mcp
# From source
python launch.pyKey Files
src/mcp_server.py- MCP server with 32 registered toolssrc/data/mod_data_provider.py- Item mod data access layersrc/calculator/ehp_calculator.py- EHP calculationssrc/optimizer/gem_synergy_calculator.py- Support gem logicdata/psg_passive_nodes.json- Passive tree databasedata/poe2_mods_extracted.json- Item modifier database (14,269 mods)
Troubleshooting
Connection Issues
"Server not found" in Claude Desktop
Check the path in config is absolute (not relative)
Ensure Python is in your PATH
Try running
python launch.pymanually to see errorsCheck Windows Defender/antivirus isn't blocking the Python process
Character fetch fails
Your character must be on poe.ninja (public profile)
Character name is case-sensitive
New characters may take 1-2 hours to appear on poe.ninja
Try the full poe.ninja URL with
import_poe_ninja_url
Data Issues
Tools return empty results
Database may need initialization:
python launch.pyhandles thisCheck
data/directory exists with JSON filesRun
health_checktool to diagnose
"Passive tree resolver failed"
Non-critical warning; analysis continues without tree resolution
Usually means passive tree data is still loading
Performance Issues
Slow character analysis
First analysis caches data; subsequent calls are faster
Check your internet connection to poe.ninja
Consider using
clear_cacheif data seems stale
Trade Issues
"No POESESSID configured"
Run
setup_trade_authorsetup_trade_auth_browserfirstRestart MCP server after authentication
Cookie may have expired; re-run auth tool
"Trade search failed"
Check you're using correct league name (e.g., "Abyss", "Standard")
Verify POESESSID is valid (re-auth if needed)
Trade site may be down; try again later
Check
data/directory exists with JSON files
Credits
Data sources:
poe.ninja - Character data and builds
Path of Building (PoE2) - Skill data
Path of Grinding - Passive tree data
MCP Protocol:
License
MIT License - See LICENSE for details.
This is a community project. Not affiliated with Grinding Gear Games.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Teamfight Tactics data & AI coaching for Claude and ChatGPT — 19 tools, built-in Riot key.
Connect any AI to your Foundry VTT world: actors, combat, dice, journals, tokens, compendiums.
Query your Twitch streams, events, supporters, raids & rankings from an AI assistant via OAuth.
Live TCG card and decklist prices for AI assistants. 22+ games, no account, ready-to-buy links.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI-powered Path of Exile 2 character optimization through natural language queries, providing intelligent build recommendations, gear upgrades, and passive tree optimization using the official PoE API and comprehensive game database.46 PyPI87MIT
- AlicenseAqualityFmaintenanceProvides real-time access to Path of Exile 2 game data including currency exchange rates, item prices, and ladder meta-build statistics. It also enables LLMs to search the community wiki and retrieve datamined game information from public APIs.285MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to load, inspect, change, and improve Path of Exile 2 builds using the real Path of Building Community calculation engine.8MIT
- FlicenseAqualityBmaintenanceEnables MCP-compatible AI assistants to read Path of Exile 2 character data and recent in-game events, and to surface advisories to the user via notifications, speech, or log files.22-