poe2-mcp
This MCP server provides a comprehensive suite of tools for analyzing Path of Exile 2 builds, exploring the passive skill tree, generating crafting advice, and retrieving game mechanics and wiki information.
Build Loading: Import builds from Path of Building export codes, pobb.in links, poe.ninja community builds, or your own characters.
Character Stats: Retrieve computed stats including life, mana, energy shield, DPS, resistances, and movement speed.
Passives & Tree: List allocated passive nodes (keystones, notables, masteries), search the full passive tree with optional class region filtering (Druid, Huntress, Mercenary, Monk, Sorceress, Warrior), find reachable unallocated nodes within a given distance, and compute shortest paths to target nodes.
Items & Skills: View equipped items with mods, rarity, and item level, plus skill socket groups, active skills, and gem links.
Crafting Advisor: Get affix pools for item bases, build-aware advice for adding stats to items, crafting method rankings by risk, and analysis of how well equipped items fit the build.
Mechanics & Wiki: Access curated explanations of core PoE2 systems (defenses, ailments, spirit, gems) with PoE1 pitfall notes, plus live wiki lookups for items, skills, and mechanics.
Vendor Regex: Generate build-aware vendor search regexes within a 50-character budget.
Meta Overview: Browse ascendancy popularity and top community builds from poe.ninja.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@poe2-mcp load my build from pobbin.in/abc123 and show me my life and resistances"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
poe2-mcp
An MCP server for Path of Exile 2 build analysis. Load a build from a Path of Building export code and interrogate it with natural language via any MCP-compatible client (Claude Desktop, Claude Code, etc.).
What it does
Decodes PoB export codes (the long base64 string from File → Share → Copy code) or
pobb.inshare linksExposes stats, passives, items, and skills as MCP tools
Searches the full PoE2 passive skill tree, including nodes not yet allocated
Filters tree searches to a specific class region using a Voronoi partition — so
search_tree("life", classes=["Monk"])returns only nodes in the Monk area rather than all 4,700 nodes in the tree
Related MCP server: pob2-mcp
Installation
Requires Python 3.11+ and uv.
git clone https://github.com/deepwa7er/poe2-mcp.git
cd poe2-mcp
uv syncClaude Desktop setup
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"poe2": {
"command": "uv",
"args": ["--directory", "/path/to/poe2-mcp", "run", "poe2-mcp"]
}
}
}Claude Code setup
claude mcp add poe2 -- uv --directory /path/to/poe2-mcp run poe2-mcpTools
Tool | Description |
| Load a PoB export code or |
| Character stats — life, mana, DPS, resistances, etc. |
| Allocated passive nodes with names and stat descriptions |
| Equipped items and their mods |
| Skill socket groups and gem links |
| Keyword search within allocated passives |
| Keyword search across the full passive tree |
| Unallocated nodes reachable within N steps from the current build |
| Inspect a single tree node and its directly connected neighbors |
| Shortest sequence of nodes to allocate to reach a target node, with point cost |
| Passive/ascendancy point usage summary for the loaded build |
| Defensive sanity checks — uncapped/negative resistances, health pool |
| The affix pool that can roll on a base — prefix/suffix, tiers, item level, spawn weight |
| Build-aware advice for adding a stat to an item — open slots, tiers, risk-rated methods |
| How well equipped items fit the build — per-mod tier & roll quality, relevance, next-item criteria |
| Durable model of a PoE2 game system (ailments, defenses, spirit, gems, …) — corrects PoE1 assumptions |
| Build-aware vendor-search regex for one slot, packed under a 50-char budget |
| Current build meta (ascendancy popularity) for a league, from poe.ninja |
| Top community builds on the poe.ninja ladder |
| Load a poe.ninja ladder build by account + character name |
| Your own characters from poe.ninja (any league) |
| Load one of your own characters by name — no PoB export needed |
| Live unique/base item lookup from the community wiki (current patch) |
| Live active-skill lookup from the community wiki |
| Live wiki page text for a mechanic — verify/refresh |
| Resolve a name to community-wiki page titles |
Class region filtering
search_tree and get_reachable_nodes accept a classes parameter that restricts results to nodes in the specified class territories. This dramatically reduces noise when exploring the tree.
Valid class names: Druid, Huntress, Mercenary, Monk, Sorceress, Warrior
search_tree("life", classes=["Monk"])
search_tree("lightning", classes=["Monk", "Sorceress"])
get_reachable_nodes(max_distance=5, classes=["Monk"])The partition is computed at startup via a simultaneous multi-source BFS from all six class starting nodes. Each node is assigned to whichever class start is fewest steps away in the tree graph.
Community builds
get_meta_overview, list_top_builds, and load_community_build surface what the
PoE2 ladder is playing, sourced from poe.ninja. A
typical flow:
get_meta_overview() → which ascendancies are popular now
list_top_builds(limit=20) → the top ladder builds + headline stats
load_community_build(account="…", name="…") → pull one in; then analyze it like any buildOnce a community build is loaded, every analysis tool (get_stats, get_passives,
analyze_defenses, path_to_node, …) works on it.
Your own characters
Skip the Path of Building export/paste entirely for your own builds:
list_my_characters() → all your characters (name, class, level, league)
load_my_character("MyChar") → load one straight in for analysisSet the POE2_ACCOUNT environment variable to your account (Name#1234) so you don't
pass it every time, e.g. in the MCP server config:
{
"mcpServers": {
"poe2": {
"command": "uv",
"args": ["--directory", "/path/to/poe2-mcp", "run", "poe2-mcp"],
"env": { "POE2_ACCOUNT": "YourName#1234" }
}
}
}Your PoE profile must be public. poe.ninja can only load characters it has indexed on the current ladder; for Standard/SSF/fresh alts it lists them but asks you to export from PoB for that one.
These tools use poe.ninja's public but undocumented API, so it may change without notice. Responses are cached briefly to stay fast and to be a polite client.
Crafting advice
The export shows an item's rolled mods but not the pool behind them. list_mods_for_base
and craft_advisor add that: which affixes can roll on a base (prefix/suffix, tiers, item
level, weight), and — for an equipped item — whether a target stat can be added, which slots
are free, and the lowest-risk way to do it. PoE2 crafting is largely additive and random, so
the open-slot question is the whole point.
list_mods_for_base("Sapphire Ring", keyword="cold resistance") → the cold-res tiers a ring can roll
craft_advisor(target="cold resistance", slot="Gloves") → can I add it to my gloves, and how?
analyze_item_fit() → score every equipped item against the buildanalyze_item_fit reads the same affix pool the other crafting tools use, but in the other
direction: it takes each item's rolled mods and places them back on their tier ladders —
which tier (T1 = best), how good the roll is within that tier, and the best tier the item's
level could already hold — then judges each mod's relevance to the build (its damage types
and delivery come from the active skills; life-vs-energy-shield and resistance gaps from the
computed stats). Weak on-build rolls become next_item_criteria for the slot. It respects
the package rule: an off-build affix is normal, never "remove mod X", and there is no single
fit score.
craft_advisor ranks methods by risk (rune-in-socket, Exalt-to-open-slot with an approximate
hit chance, essence/omen, remove-and-add, replace) and is honest about its limits — slot counts
are inferred by classifying rolled mods, and it never invents essence values that aren't in
the data. Rune/Soul Core options quote the real granted line for the item's slot (e.g. "+14% to
Cold Resistance"), tier-ranked with any conditional "Bonded" bonus. See
docs/crafting-advisor.md for details.
Mechanics knowledge
An agent reviewing a build supplies most of its mechanics reasoning from training — and that
training is contaminated with PoE1 assumptions that are wrong in PoE2 (armour blocks only
physical, chaos bypasses energy shield, evasion only dodges attacks, support gems are a scarce
shared pool, gems gain XP, auras reserve mana — all false today). explain_mechanic is the
antidote: a curated, patch-stamped model of each core system, so the agent reasons from how the
game actually behaves instead of reciting PoE1.
explain_mechanic() → the index: headline PoE1 traps + every topic
explain_mechanic("defenses") → how armour/evasion/ES/block/resists really work in PoE2
explain_mechanic("armour") → lenient matching resolves synonyms to the right topicTopics: gems, spirit, spirit-skills, ailments, defenses, resistances,
damage-conversion, crit, charges, attributes, ascendancy, support-scaling. It's
deliberately conceptual — durable rules and the PoE1 traps lead, and exact numbers (which churn
per patch) are flagged as patch-sensitive rather than asserted.
Live wiki lookups
The vendored data and explain_mechanic are durable but patch-stamped and bounded to what's
shipped. lookup_item, lookup_skill, lookup_mechanic, and wiki_search close the gap with
live, current-patch data from the community wiki (poe2wiki.net),
queried through its MediaWiki/Cargo API as structured JSON — no scraping, no extra dependencies.
lookup_item("Headhunter") → a unique's rolled stat ranges and flavour, current patch
lookup_item("Heavy Belt") → a base type's implicit and item class
lookup_skill("Spark") → a skill's base stat lines, infusions, description
lookup_mechanic("Shock") → the wiki's prose on a mechanic — verify explain_mechanic's numbers
wiki_search("energy shield") → resolve a name to wiki page titlesThese are the one part of the server that reaches the network per call (results are cached for an
hour); each returns an {"error": …} dict rather than raising if the wiki is unreachable.
lookup_mechanic is the deliberate complement to explain_mechanic: the latter gives the durable
PoE1-vs-PoE2 corrections offline, the former the live numbers to verify them against.
Vendor regex
generate_vendor_regex turns the loaded build into a short alternation regex you can paste into
a vendor's search bar. Uncapped resistances, life, slot intent (movement on boots), and the active
skill's damage-type / speed scaling drive what gets included; the result is packed under a 50-char
budget (the vendor bar limit). Capped resistances are dropped automatically — fix them in-game and
the next call's regex shrinks.
generate_vendor_regex(slot="Gloves") → {"regex": "Life|Fire Dam|tta.*Sp", ...}
generate_vendor_regex(slot="Boots") → {"regex": "Life|Move|Res", ...}
generate_vendor_regex(slot="Boots", include=["minion"]) → forces a key past the slot allowlistEach call also returns what was included, what was dropped (and why), and a per-entry reason so you can see which fragment came from which need.
Tree data
The passive tree is generated from Path of Building 2's bundled tree data (src/TreeData/<version>/tree.lua in the PoB2 repo) by scripts/build_tree_data.py — GGG publishes no official PoE2 tree JSON, and the community passive-skill-tree-json mirror is PoE1-only. Sourcing from PoB2 keeps the tree version-aligned with the gem database and the recompute engine, which track the same repo. Regenerate the bundled data/poe2_tree.json after a patch with uv run python scripts/build_tree_data.py, or point the TREE_DATA_PATH environment variable at an alternative file.
Crafting data
The affix pool and base types are sourced from the RePoE-fork PoE2 export — static JSON extracted from the client (GGG ships no PoE2 data export, and poe2db has no data API). scripts/build_craft_data.py fetches and slims it to the bundled data/poe2_crafting.json. The pool drifts between patches; regenerate with uv run python scripts/build_craft_data.py, or point CRAFT_DATA_PATH at an alternative file.
Rune and Soul Core grants (which the RePoE export omits) come from PoB2's src/Data/ModRunes.lua, where they're stored per item class already rendered to English. scripts/build_rune_data.py parses it to the bundled data/poe2_runes.json (rune → item class → granted lines, type, rank), which craft_advisor uses to quote real per-slot values. Regenerate with uv run python scripts/build_rune_data.py, or override with RUNE_DATA_PATH.
Skill & stat data
The gem database (data/poe2_skills.json) is generated from PoB2's src/Data/Skills/*.lua by scripts/build_skill_data.py — the same data PoB uses for its own calculations, so it carries skill tags, Spirit reservation, and each gem's flat/quality stat ids. Override with SKILL_DATA_PATH.
The stat-description map (data/poe2_stat_descriptions.json) turns those raw stat ids into the in-game line a player reads — base_reduce_enemy_fire_resistance_% = 30 becomes "Penetrate 30% Fire Resistance". It's generated by scripts/build_stat_data.py from PoB2's src/Data/StatDescriptions/*.lua, slimmed to the ids the gem database references and split into support/skill wording scopes. get_skill_details and recommend_supports attach the rendered text alongside the raw id/value. It renders single- and multi-stat lines (e.g. "Adds X to Y Damage") with the game's own value transforms — milliseconds→seconds, per-minute→per-second, negate ("30% less"), and the rest (see docs/plain-english-stat-text.md); quality stats render at the 20% cap ("Chain +2 times (at 20% quality)"); only a long tail of internal/no-display stats stays raw. Regenerate with uv run python scripts/build_skill_data.py && uv run python scripts/build_stat_data.py (skills first), or override with STAT_DESC_PATH.
Development
uv sync # install dependencies (including dev)
uv run pytest # run the test suiteAvailable Tools
8 toolsget_itemsA
Return all equipped items in the loaded build with their mods.
Each item includes slot, rarity, name, base type, item level, and the list of mod lines exactly as they appear in the game tooltip.
Inputs: no named parameters. Returns: result
get_passivesA
Return all allocated passive nodes in the loaded build.
By default only keystones, notables, and masteries are returned — the nodes that meaningfully define the build. Set include_small_nodes=True to also include the generic small passives (+10 str, +5 life, etc.).
If tree data is not loaded, returns the raw node IDs only.
Inputs: include_small_nodes. Returns: result
get_reachable_nodesA
Return all unallocated passive nodes reachable within max_distance steps from the current build.
Distance 1 = adjacent to an allocated node (can be taken with the next point). Distance 2 = one unallocated pathing node away, and so on.
Results are sorted by distance (closest first), then by type (keystones and notables before small nodes). Use this to find what is actually within reach before recommending passive picks.
Use classes to restrict results to one or more class regions, filtering out nodes from unrelated parts of the tree. Valid class names: Druid, Huntress, Mercenary, Monk, Sorceress, Warrior.
Requires both a loaded build and tree data.
Inputs: max_distance, include_small_nodes, classes. Returns: result
get_skillsA
Return all skill socket groups in the loaded build.
Each group shows the active skill, its support gems, the slot it occupies, and whether it is enabled.
Inputs: no named parameters. Returns: result
get_statsA
Return all computed character stats from the loaded build.
These are the values Path of Building calculates: life, mana, energy shield, resistances, DPS for each skill, movement speed, etc.
Inputs: no named parameters. Returns: result
load_buildA
Load a Path of Building export code or pobb.in share link.
Accepts:
A raw PoB export code (the long base64 string from File > Share > Copy code)
A pobb.in URL (e.g. https://pobb.in/AbCdEfGh)
Call this first before using any other tool.
Inputs: code (required). Returns: result
search_passivesA
Search the loaded build's allocated passives for nodes matching a keyword.
Searches both node names and stat descriptions (case-insensitive). Requires tree data to be loaded; returns an error message otherwise.
Examples: search_passives("life") → all life-related nodes search_passives("fire") → fire damage nodes search_passives("Acrobatics") → the Acrobatics keystone if allocated
Inputs: query (required). Returns: result
search_treeA
Search the full passive skill tree for nodes matching a keyword.
Unlike search_passives, this searches ALL nodes in the tree — not just those allocated in the loaded build. Use this to discover nodes you haven't taken yet.
Each result includes:
allocated: whether the node is already taken in the current build
ascendancy: the ascendancy class that unlocks this node, or "" for generic nodes
distance_from_build: minimum passive points needed to reach this node from the current build (null if no build is loaded or the node is unreachable)
Use classes to restrict results to one or more class regions (Voronoi partition). This eliminates nodes from the opposite side of the tree that are never reachable in practice. Valid class names: Druid, Huntress, Mercenary, Monk, Sorceress, Warrior.
A build does not need to be loaded. Tree data must be present.
Examples: search_tree("life") → all life notables across the full tree search_tree("lightning", classes=["Monk"]) → lightning nodes near the Monk start search_tree("life", classes=["Monk", "Sorceress"]) → life nodes in two regions search_tree("Invoker") → all Invoker ascendancy nodes
Inputs: query (required), include_small_nodes, classes. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: load_build is foundational, get_items/get_passives/get_skills/get_stats retrieve different build aspects, search_passives/search_tree search different scopes, and get_reachable_nodes finds nearby nodes. No overlap.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., load_build, get_items, search_tree), making them predictable and easy for an agent to understand.
8 tools is well-scoped for a build analysis server: loading, viewing items/passives/skills/stats, searching, and finding reachable nodes. Not too few or too many.
The tool set covers core build inspection needs comprehensively, but lacks write operations (e.g., modify passives, equip items). For a read-only analysis server, this is nearly complete.
Maintenance
Related MCP Connectors
An MCP server that provides agents access to the KeldynAI platform
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for Path of Exile 2: a queryable game corpus plus Path-of-Building-faithful calculations, so an LLM can import your build, answer questions, and theorycraft against real numbers (not invented ones).643MIT
- AlicenseBqualityCmaintenanceAn MCP server that enables Claude to analyze, modify, and optimize Path of Exile 2 builds using Path of Building's calculation engine.304GPL 3.0
- FlicenseNot gradedqualityBmaintenanceMCP server for Path of Building that enables querying and managing PoB builds and trade data through the Lua bridge and official APIs.-
- AlicenseBqualityCmaintenanceAn MCP server that provides LLMs with access to Path of Exile game data, including gems, unique items, passive tree nodes, item modifiers, maps, scarabs, live pricing, and Path of Building build parsing, fetched at runtime from community sources without requiring an API key.261MIT