# poe2brain [Health: Active]

**Category:** 🎮 Gaming  
**Repository:** https://github.com/lifan-builds/poe2brain  
**GitHub Stars:** 153  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/poe2brain

## Description
Agent-native Path of Exile 2 (0.5.5) intelligence engine & live web workbench (poe2brain.clifan.com): headless LuaJIT PoB2 dewatering, 353 sleeper builds, Trade2 buyouts, crafting EV & 2AM filters (44 CLI+MCP tools, GPL-3.0)

## Tools
Capabilities this server exposes over MCP:

- **poe2_init** — Save the player's choice of 国服 (cn) or 国际服 (international) for CLI and MCP.
- **poe2_status** — Verify PoE2 0.5.5 patch, default league, SQLite DB, headless PoB2, and update freshness.
- **poe2_search_knowledge** — FTS5 + exact search across PoE2 0.5.5 mechanics, keywords, gems, uniques, and bases.
- **poe2_explain_mechanic** — Return Patch 0.5.5 MechanicFact (poe1_trap, poe2_live_rule, formula) and GGG keywords.
- **poe2_inspect_gem** — Inspect PoE2 active, Spirit, Meta, Tiered Support (I/II/III), and Lineage Support gems.
- **poe2_inspect_base** — Inspect PoE2 base stats, implicits, T1 (display_tier=1) affixes, and PoE1/'Expert' traps.
- **poe2_inspect_unique** — Inspect PoE2 unique item base type, implicits, explicits, and is_chanceable status.
- **poe2_inspect_augment** — Inspect PoE2 Runes, Soul Cores, Idols, Shaman Bonded bonuses, and Runeforge recipes.
- **poe2_inspect_ascendancy** — List 23 PoE2 0.5.5 Ascendancies or inspect notables, prereqs, choices, and patch diffs.
- **poe2_meta_ladder** — Get live PoE2 SC/HC/SSF/HCSSF ladder shares, Ascendancy tier rankings, and chase demand.
- **poe2_waystone_regex** — Compile general <=50-char PoE2 Stash, Vendor, Crafting, Tablet, Relic & Waystone regexes.
- **poe2_tablet_plan** — Plan, inspect, or compile <=50-char stash regexes for PoE2 0.5.5 Precursor Tablets.
- **poe2_relic_plan** — Plan, exact-pack (2D altar grid), or inspect Trial of the Sekhemas Relics + <=50c regex.
- **poe2_pob_load** — Load a PoB code, converted 国服 page, share URL, XML or .build.

    Use skill_group from skill_groups when the player identifies their main skill.
    
- **poe2_pob_stats** — Extract FullDPS, TotalEHP, Life/ES/Mana, Spirit, resists, Block, Deflection, and Armour.
- **poe2_pob_audit** — Dewatering audit: strip PoB-warrior config inflation vs sustainable Pinnacle stats.
- **poe2_pob_eval_item** — Evaluate a candidate item non-destructively via PoB2 GetMiscCalculator().
- **poe2_pob_stat_weights** — Compute marginal PoB2 stat weights for an equipment slot and build a trade2 filter.
- **poe2_pob_suggest_nodes** — Rank reachable notables, anoints, Megalomaniac combos, or search/path the passive tree.
- **poe2_pob_optimize_runes** — Solve Resist Tetris & optimal Armour/Weapon Rune and Soul Core sockets in PoB2.
- **poe2_pob_compare** — Compare two loaded PoB2 slots across DPS/EHP, gear, skills, passives, and Gold respec.
- **poe2_pob_hc_audit** — Audit Hardcore Pinnacle Boss one-shot Max Hits, Bleed/Poison ES bypass, & Gold respecs.
- **poe2_pob_calc_breakdown** — Explain exact PoB2 calculation formulas & modifier provenance (BASE/INC/MORE/FLAG).
- **poe2_pob_supports** — Rank compatible PoE2 0.5.5 Support Gems (Tier I-III + Lineage) with Mana/Spirit checks.
- **poe2_pob_radius_jewels** — Rank Passive Tree Jewel Sockets & rings for Controlled Metamorphosis / Against Darkness.
- **poe2_pob_what_if** — Run compound PoB2 what-if simulations (multi-slot, mod edits, nodes, ref borrowing).
- **poe2_pob_import_local** — Discover or load saved local Path of Building (PoE2) .xml builds without OAuth.
- **poe2_pob_import_character** — Import a converted 国服 character page, PoB Code, or GGG account character.
- **poe2_pob_export** — Export a PoB2 build slot as an eN... share code, raw XML, or GGG .build JSON.
- **poe2_pob_fix_gaps** — Solve resistance & attribute gaps via quest rewards, runes, catalysts, and nearby nodes.
- **poe2_pob_spirit** — Audit Weapon Set 1/2 Spirit pools and solve exact 0/1 knapsack Spirit reservations.
- **poe2_pob_tree** — Rank passive wheels, prune lowest-value leaf nodes, or analyze WS1/WS2 tree splits.
- **poe2_currency_price** — Get live PoE2 CurrencyQuote in {exalted, chaos, divine} (Exalted=1.0) with trend & volume.
- **poe2_market_scan** — Scan high-liquidity PoE2 exchange movers, cross-source spreads, and chanceable Uniques.
- **poe2_boss_ev** — Compare live PoE2 0.5.5 Pinnacle Boss & Trial entry costs vs chase unique drops.
- **poe2_farming_strategy** — Rank Patch 0.5.5 league-start & endgame Atlas farming loops with live prices,
    Atlas Masters, Tablet/Waystone setups, and optional PoB2 build-fit scoring.
    
- **poe2_scan_arbitrage** — Scan PoE2 0.5.5 arbitrage plays or build a Gold ladder (unified budget '500'/'5d' + gold).
- **poe2_parse_item** — Parse PoE2 Ctrl+C / Ctrl+Alt+C clipboard text into ParsedItem plus PoB2-ready item text.
- **poe2_price_check** — Price-check a PoE2 item across live exchange and trade2 listings with fixer warnings.
- **poe2_find_upgrades** — Find live trade2 slot upgrades and rank via headless PoB2 GetMiscCalculator().
- **poe2_plan_upgrades** — Plan gear in PoB2 per Exalted budget using supplied offers or live international buyouts.
- **poe2_triage_dump** — Batch price-check & classify multi-item PoE2 Ctrl+C dump into sell/craft/unveil/salvage.
- **poe2_craft_odds** — Compute exact PoE2 0.5.5 conditional mod-pool hit odds and step cost (CraftActionEval).
- **poe2_craft_plan** — Solve optimal PoE2 0.5.5 crafting policy, Monte Carlo p50/p80/p95 cost, and buy-vs-craft.
- **poe2_scan_craft_profit** — Scan & rank profitable PoE2 0.5.5 crafts with live costs, p50/p80, exit prices, and ROI.
- **poe2_craft_next** — Recommend the optimal next orb/omen and stop-loss verdict for a half-crafted PoE2 item.
- **poe2_craft_sweetspot** — Find the optimal item level (ilvl) unlocking target mods with minimal pool dilution.
- **poe2_ninja_snapshots** — Query live poe.ninja PoE2 build-index-state & snapshot-versions across SC/HC/SSF/HCSSF.
- **poe2_ninja_search** — Search PoE2 Forbidden Rites builds with presets, !negation, and pre-audited PoB2 metrics.
- **poe2_ninja_character** — Import a live poe.ninja character, probe time-machine timeline, or load/audit in PoB2.
- **poe2_filter_presets** — List PoE2 0.5.5 visual theme presets, strictnesses, soundpack styles, and filter folder.
- **poe2_filter_generate** — Generate a native filter from scratch on request. Usually recommend poe2_filter_restyle.
- **poe2_filter_restyle** — Recommended for creating filters. Branch from a local .filter or NeverSink 'semi_strict'.

    Start with base_only=True to keep the base's priorities, colors and sounds. Pass a look to
    customize its style. International economy and PoB2 rules are available with base_only=False.
    
- **poe2_filter_validate** — Validate a PoE2 0.5.5 .filter file or text against live BaseTypes, Classes, and grammar.
- **poe2_filter_heal** — Doctor & auto-heal broken PoE1 / PoE2 0.1 .filter files or text to 0 Patch 0.5.5 errors.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "poe2brain": {
    "command": "uvx",
    "args": ["--from","poe2brain","poe2brain-mcp"]
  }
}
```

## Documentation

## What poe2brain does

poe2brain provides an agent-facing toolkit for Path of Exile 2 version 0.5.5. Its domain core combines a read-only SQLite and FTS5 knowledge index, headless PathOfBuilding-PoE2 calculations, official trade2 pricing, crafting probability analysis, a daily-synced build index, and loot-filter validation.

The knowledge layer covers official keyword popups, patch rules and formulas, gems, uniques, item bases, socketable augments, crafting levers, runeforge recipes, classes, ascendancies, and bilingual aliases. The build and economy features are designed around concrete PoE2 data rather than PoE1 assumptions, including distinctions such as Instant Buyout versus Whisper listings and support for Exalted and Divine budget notation.

## How it works

AI clients connect to `poe2brain-mcp` over stdio. The MCP interface mirrors the command-line interface, so the same capabilities are available through JSON-first `poe2 ... --json` commands. Both interfaces use the typed Python core.

Path of Building calculations run through a persistent native LuaJIT and PathOfBuilding-PoE2 JSON-RPC process. Builds can use multiple slots, including `main`, `ref`, and `candidate`. Audit workflows can inspect inflated or unsustainable results, identify upgrade bottlenecks, and account for factors such as mobility and chaos-immunity configuration.

The local data store supplies patch-specific knowledge and search. Other features combine local calculations with external data sources: build indexes are synchronized daily, while trade functions use trade2 pricing. Crafting analysis uses conditional mod-pool calculations with MDP and Monte Carlo methods, producing percentile estimates such as p50, p80, and p95.

## Setup and configuration

The project requires Python 3.12 or newer and supports Windows, macOS, and Linux. A typical command uses `uv run`, for example `uv run poe2 ninja search --preset sleeper --limit 5` or `uv run poe2 pob audit --slot main`. The MCP entry point is `poe2brain-mcp`.

PoB2 initialization is part of the setup flow, and the Windows workflow is designed to avoid requiring a C compiler. Local PoB2 synchronization is used instead of a POESESSID cookie. Official GGG OAuth 2.1 with PKCE is available for account-related authentication flows.

## Tools and capabilities

The MCP and CLI surfaces provide matching operations for:

- Auditing PoB2 builds and explaining calculation breakdowns.
- Searching supports, radius jewels, and build upgrade options.
- Finding sleeper builds from the daily-synchronized poe.ninja index using presets.
- Ranking trade2 upgrades by simulated PoB2 gains and separating securable buyouts from whispers.
- Scanning currency arbitrage and profitable crafting opportunities.
- Solving crafting outcomes with conditional mod pools, Monte Carlo estimates, and collateral-brick protection.
- Generating Waystone and Precursor Tablet stash regexes.
- Building, validating, and restyling PoE2 loot filters with economy tiers, crafting-base rules, and English or Chinese voice callouts.

The loot-filter workflow includes validation for seven listed 0.5.5 traps and can account for item level 82 and Exceptional crafting bases. Build search can rank combinations using damage, movement speed, and rarity rather than returning only a single top build.

## Limitations and notes

The knowledge and calculation scope is tied to Path of Exile 2 patch 0.5.5, including its data, rules, and PathOfBuilding-PoE2 tree. Results should therefore be interpreted as patch-specific. Trade and ladder-oriented features depend on their respective live or synchronized data sources, while the core knowledge database is local and read-only.

The server is licensed under GPL-3.0-only. Its MCP transport is stdio, and its documented platform targets are Windows, macOS, and Linux.

_Full upstream README: https://allmcps.com/mcp/poe2brain/readme_

