شعار Path of Exile 2 Build Optimizer MCP

Path of Exile 2 Build Optimizer MCP

المجتمع
HivemindOverlord

This is a locally-run MCP attempt to make AI like Claude for Desktop or others better understand questions about Path of Exile 2. Good luck to me I guess? -- If you like what you see and would like to see continuing development, please support me with your donations here: https://buymeacoffee.com/tomawar40 -- I will never go paid, and never charge.

الناشرHivemindOverlord
المستودعpoe2-mcp
اللغةPython
التفريعات
30
النجوم
84
الأدوات المتاحة
0
نوع نقل البياناتstdio
الفئات
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Path of Exile 2 Build Optimizer MCP إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 84، والنسخ المتفرعة: 30 في المستودع المرتبط.

Path of Exile 2 Build Optimizer MCP

PyPI version Python 3.9+ License: MIT

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 38 MCP tools for AI-powered build analysis, passive tree analysis, item mod validation, support gem validation, and Path of Building integration (including a live bridge to a running PoB instance).

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)

Quick Start

1. Install

Option A: PyPI (Recommended)

bash
pip install poe2-mcp

Option B: From Source

bash
git clone https://github.com/HivemindOverlord/poe2-mcp.git
cd poe2-mcp
pip install -e .

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.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

The right config depends on how you installed. Pick one.

A1. If you ran pip install poe2-mcp (Recommended)

Use the poe2-mcp console script. It's on your PATH after pip install and works on every platform — no absolute path needed:

json
{
  "mcpServers": {
    "poe2-optimizer": {
      "command": "poe2-mcp",
      "env": {}
    }
  }
}

If Claude Desktop reports it can't find poe2-mcp, your pip install directory isn't on Claude Desktop's PATH. Either run which poe2-mcp (where poe2-mcp on Windows) and use the absolute path, or fall back to python -m:

json
{
  "mcpServers": {
    "poe2-optimizer": {
      "command": "python",
      "args": ["-m", "src.mcp_server"],
      "env": {}
    }
  }
}

A2. If you cloned + pip install -e . from source

Point at launch.py directly. It does some Windows-specific UTF-8 setup that the bare console script skips:

Windows:

json
{
  "mcpServers": {
    "poe2-optimizer": {
      "command": "python",
      "args": ["C:\\Users\\YourName\\poe2-mcp\\launch.py"],
      "env": {}
    }
  }
}

macOS/Linux:

json
{
  "mcpServers": {
    "poe2-optimizer": {
      "command": "python3",
      "args": ["/Users/YourName/poe2-mcp/launch.py"],
      "env": {}
    }
  }
}

Restart Claude Desktop after editing the config. 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:

  1. Download poe2-mcp-1.0.0.mcpb from the GitHub Releases
  2. In Claude Desktop: Settings > Extensions > Install Extension
  3. Select the downloaded .mcpb file

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:

json
{
  "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)

bash
# In your project directory
claude mcp add poe2-optimizer python /path/to/poe2-mcp/launch.py

Other Compatible Clients

  • Zed Editor
  • Replit
  • Codeium
  • Sourcegraph
  • Microsoft Semantic Kernel
  • Salesforce Agentforce

Check each platform's documentation for MCP server configuration.


Available Tools (38 Registered)

Once connected, you can ask your AI assistant to use these tools. The authoritative list is _register_tools() in src/mcp_server.py — verify the live count with:

bash
python -c "import re; print(len(re.findall(r'types\.Tool\(\s*name=', open('src/mcp_server.py').read())))"

Character Analysis

ToolDescription
analyze_characterFull character analysis (defenses, skills, gear, passives); exposes raw passive_node_ids
import_poe_ninja_urlImport character from a poe.ninja profile URL (league-segment aware)
compare_to_top_playersCompare your build to ladder leaders (protobuf builds API)
analyze_passive_treeAnalyze allocated passive nodes with pathfinding
calculate_character_dpsServer-side spell DPS, including the optional DoT layer (ignite/poison/bleed + skill DoT)
get_live_game_stateRead the running PoE2 client's Client.txt (character, area, deaths) — local, no network
get_game_configRead local game config INI (gateway, input mode, renderer)

Validation & Inspection

ToolDescription
validate_support_combinationCheck if support gems work together (hard + semantic conflicts)
validate_build_constraintsValidate build against game rules (flat/nested/legacy resistance schemas, null-tolerant)
reconcile_defensive_statsDiff local EHP/defense calcs against poe.ninja's computed stats
inspect_support_gemView complete support gem data (incl. spirit reservation)
inspect_spell_gemView complete spell gem data (per-level costs/reservation)
list_all_supportsList all available support gems
list_all_spellsList all available spell gems

Passive Tree Data

ToolDescription
list_all_keystonesList all keystones with full stats
inspect_keystoneGet complete keystone details by name
list_all_notablesList all notable passives with stats
inspect_passive_nodeGet details for any passive node
check_tree_freshnessReport passive-tree data revision vs poe.ninja

Base Item Data

ToolDescription
list_all_base_itemsList all base item types
inspect_base_itemGet details for a specific base item

Item Mod Data

ToolDescription
inspect_modGet complete details for a specific mod by ID
list_all_modsList mods with filtering by type (PREFIX/SUFFIX/IMPLICIT)
search_mods_by_statSearch for mods by keyword (e.g., "fire", "life")
get_mod_tiersShow all tier variations of a mod family
validate_item_modsCheck if mods can legally exist together on an item
get_available_modsList all mods available for a generation type

Knowledge & Discovery

ToolDescription
explain_mechanicExplain PoE2 mechanics / stat ids; tiered exact → substring → BM25 lexical; cluster: true dumps a mechanic's full stat-id + source web
find_stat_sourcesReverse lookup: which skills / passives / ascendancy nodes / mods grant a stat
get_formulaGet calculation formulas

Path of Building (file-based)

ToolDescription
import_pobImport a PoB build — from pob_file_path, raw pob_xml, or inline pob_code
export_pobExport build to PoB format
get_pob_codeGet a character's PoB export via the poe.ninja profile API

Trade & Items

ToolDescription
search_itemsSearch local item database
search_trade_itemsSearch official trade site (requires auth)
setup_trade_authSet up trade site authentication

Utility

ToolDescription
health_checkCheck server status
clear_cacheClear cached data

Live Path of Building bridge: src/pob/client.py + the pob_addon/ Lua addon implement a TCP bridge (127.0.0.1:49085) to a running PoB instance. The bridge client exists but its pob_* operations are not currently registered as MCP tools — they are used internally / via the integration test suite. They are not in the 38 above.

Not registered: DPS/EHP standalone calculators, optimizers, and the live pob_* bridge ops have handlers/clients but no tool registration yet.


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.


Trade API Authentication (Optional)

For search_trade_items to work, you need to authenticate with pathofexile.com:

bash
pip install playwright
playwright install chromium
python scripts/setup_trade_auth.py

This opens a browser for you to log in, then saves your session cookie.


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.

Centralized Game-Data Distribution (new in 1.0.2)

You no longer need to extract .datc64 files from your own PoE2 install. The MCP automatically downloads the maintained game-data bundle from this repo's GitHub Releases on first run and after each patch (resolves #53).

How it works:

  1. launch.py calls src/data/data_distributor.ensure_data_current() during startup
  2. It compares data/version.json (local) against the latest release tagged data-v*
  3. If newer data is available, it downloads poe2-data.zip and unzips into data/
  4. The MCP starts with current data

Opt out (run your own local extraction instead):

bash
export POE2_MCP_NO_DATA_FETCH=1   # macOS/Linux
$env:POE2_MCP_NO_DATA_FETCH=1     # PowerShell

Then extract via scripts/extract_poe2_data.py against your own licensed PoE2 install.

Manual refresh:

bash
python -m src.data.data_distributor

Data policy: The bundle is extracted exclusively from the maintainer's licensed PoE2 install via the in-repo extraction scripts. No third-party wiki / scraped data is bundled. See CLAUDE.md "Data Source Policy" for details.

Data currency & drift protection: The shipped datasets are extracted from the full Patch 0.5 table set (1,019 canonical .datc64 balance tables via scripts/extract_balance_tables_v1.py), versioned in data/game/version.json (data-v0.5.0-r12). data/game/schema_fingerprints.json records every table's row-count/row-size/hash; re-extraction diffs against it so a future patch that adds, moves, or resizes columns fails loudly instead of serving silently-wrong data. See docs/GAME_DATA_RESEARCH.md for the reverse-engineered file format and extraction methodology.


Architecture

poe2-mcp/
├── launch.py              # Entry point
├── src/
│   ├── mcp_server.py      # Main MCP server (38 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 suite

Development

Running Tests

bash
pytest tests/ -v

Running the Server Directly

bash
# If installed via pip
poe2-mcp

# From source
python launch.py

Key Files

  • src/mcp_server.py - MCP server with 38 registered tools
  • src/data/mod_data_provider.py - Item mod data access layer
  • src/calculator/ehp_calculator.py - EHP calculations
  • src/optimizer/gem_synergy_calculator.py - Support gem logic
  • data/psg_passive_nodes.json - Passive tree database
  • data/poe2_mods_extracted.json - Item modifier database (14,269 mods)

Troubleshooting

"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.py manually to see errors

"No character found"

  • Your character must be on poe.ninja (public ladder)
  • Character name is case-sensitive
  • Try the full poe.ninja URL with import_poe_ninja_url

Tools return empty results

  • Database may need initialization: python launch.py handles this
  • Check data/ directory exists with JSON files

Credits

Data sources:

MCP Protocol:


License

MIT License - See LICENSE for details.

This is a community project. Not affiliated with Grinding Gear Games.


Report Issues

التثبيت

TypingMind
{
  "mcpServers": {
    "poe2-mcp": {
      "command": "python",
      "args": [
        "path/to/your/poe2-mcp/launch.py"
      ]
    }
  }
}

استخدم MCP الخاص بـ Path of Exile 2 Build Optimizer MCP مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Path of Exile 2 Build Optimizer MCP، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Path of Exile 2 Build Optimizer MCP كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Path of Exile 2 Build Optimizer MCP.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "poe2-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Path of Exile 2 Build Optimizer MCP، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Path of Exile 2 Build Optimizer MCP.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Path of Exile 2 Build Optimizer MCP لمساعدتي في هذه المهمة؟
Path of Exile 2 Build Optimizer MCP
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Path of Exile 2 Build Optimizer MCP.

الأسئلة الشائعة

ما استخدامات خادم MCP Path of Exile 2 Build Optimizer MCP؟

Path of Exile 2 Build Optimizer MCP هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Path of Exile 2 Build Optimizer MCP مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Path of Exile 2 Build Optimizer MCP مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Path of Exile 2 Build Optimizer MCP مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Path of Exile 2 Build Optimizer MCP، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Path of Exile 2 Build Optimizer MCP بـ TypingMind؟

يعمل Path of Exile 2 Build Optimizer MCP عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP Path of Exile 2 Build Optimizer MCP في TypingMind؟

يتيح Path of Exile 2 Build Optimizer MCP إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Path of Exile 2 Build Optimizer MCP؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Path of Exile 2 Build Optimizer MCP يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇