Path of Building MCP Server logo

Path of Building MCP Server

Community
ianderse

Path of Building MCP

Publisherianderse
Repositorypob-mcp
LanguageTypeScript
Forks
19
Stars
46
Available tools
0
Transport typestdio
Categories
LicenseGPL-3.0
Links
  • Connect tools to AI workflows

    Path of Building MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    46 stars and 19 forks from the linked repository.

Path of Building MCP Server

An MCP (Model Context Protocol) server that enables Claude to analyze, modify, and optimize Path of Building builds using PoB's actual calculation engine.

Works against a stock PathOfBuildingCommunity checkout — no fork, no patches. The server ships its own stdio adapter that loads PoB's HeadlessWrapper.lua as a library and drives the real calculation engine directly.

PoE 3.29 compatibility: This release targets Path of Building data and builds for the 3.29 league. Use a current PoB checkout for the matching tree, skills, and item data. Trade calls should always use get_leagues instead of hard-coding a challenge-league name.


☕ If you find this project helpful, consider buying me a coffee!


Features

Build Analysis (Always Available)

  • List & Analyze Builds: Browse builds and extract stats, skills, items, passive trees, and notes from XML
  • Compare Builds: Side-by-side build comparison
  • File Watching: Real-time detection of builds saved from PoB with automatic cache invalidation
  • Tree Analysis: Compare passive trees, find paths to nodes, discover nearby notables, what-if allocation testing

High-Fidelity Calculations (Lua Bridge)

  • Live Stats: Accurate stat calculation using PoB's own engine — identical to what PoB GUI shows
  • Build Loading & Creation: Load existing builds or create new ones from scratch by class/ascendancy
  • Passive Tree Editing: Set full tree allocation and see immediate stat recalculation
  • Tree Specs: List, switch, create, copy, rename, and delete passive tree specs
  • Node Search: Search the passive tree for nodes by name or stat text
  • Character Level: Set level and watch all stats update accordingly
  • Anointment Ranking: Simulate every anointable notable through PoB's live calculator and rank by DPS/EHP impact

Item & Skill Management (Lua Bridge)

  • Items: Add items from PoE clipboard text, view all equipped gear
  • Flasks: Toggle flasks active/inactive with immediate stat feedback
  • Skills: Full gem management — create socket groups, add/remove/level/quality gems
  • Batch Operations: setup_skill_with_gems and add_multiple_items for efficient workflows

Build Optimization (Lua Bridge)

  • Defensive Analysis: 3-layer framework (avoidance / mitigation / recovery) — evaluates EHP, spell suppression, armour/PDR, evasion, block, life regen, and leech
  • Node Suggestions: Archetype-aware suggestions by goal (damage, life, ES, defense, resist)
  • Tree Optimization: Recommend nodes within reach of the current allocation
  • Item Upgrade Analysis: Slot-by-slot upgrade recommendations based on live stats
  • Skill Link Optimization: Detect missing "more" multipliers, penetration gaps, anti-synergies
  • Budget Build Creation: Generate starter build plans with skill links, gearing strategy, and passive priorities

Build Validation

  • Comprehensive Checks: Resistances, life pool, defensive layers, mana, flask immunities, accuracy, damage scaling
  • Severity Classification: Critical / Warning / Info with actionable suggestions
  • Dual Source: Uses Lua bridge stats when available, falls back to XML parsing
  • Overall Score: 0–10 build health score

Configuration & Scenario Testing (Lua Bridge)

  • Config State: View bandit, pantheon, enemy settings
  • Toggle Conditions: Charges, buffs (Onslaught, Fortify, Leeching), boss mode
  • Enemy Tuning: Set enemy level, resistances, armour, evasion for boss DPS testing

Skill Gem Analysis

  • Archetype Detection: Classify builds (Elemental Bow Attack, Summoner, Critical Spell, etc.)
  • Support Gem Recommendations: Ranked suggestions with DPS estimates and cost context
  • Quality Validation: Identify missing quality, awakened upgrade paths, corruption targets
  • Optimal Links: Auto-generate best support gem combinations for 4/5/6-link setups
  • Budget Tiers: League-start, mid-league, and endgame recommendations

Build Export & Persistence

  • Export: Copy builds to XML files with optional notes
  • Save Tree: Write optimized passive tree back to an existing build file
  • Snapshots: Versioned build history with tags, stat metadata, and one-click rollback

Currency & Market Data (poe.ninja)

  • Exchange Rates: Real-time currency prices in Chaos Orb equivalent
  • Arbitrage Detection: Find profitable currency trading loops
  • Trade Profit Calculator: Evaluate custom trading chains

Trade API (Optional, POE_TRADE_ENABLED=true)

  • Item Search: Search trade with stat filters, price range, link count
  • Weighted BIS Search: Build-specific best-in-slot listings using PoB's native TradeQueryGenerator stat weights (requires POE_SESSION_ID)
  • Price Checking: Min/max/median/average from recent listings
  • Upgrade Finder: Identify best item upgrade candidates for your build
  • Resistance Gear: Find affordable gear to cap resistances
  • Cluster Jewels: Search and analyze cluster jewel setups
  • Shopping List: Generate a prioritized shopping list from build analysis

Installation

bash
cd pob-mcp
npm install
npm run build

Configuration

Claude Desktop Configuration

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

XML-Only (No Lua Bridge)

json
{
  "mcpServers": {
    "pob": {
      "command": "node",
      "args": ["/absolute/path/to/pob-mcp-server/build/index.js"],
      "env": {
        "POB_DIRECTORY": "/path/to/your/Path of Building/Builds"
      }
    }
  }
}

Full Configuration (With Lua Bridge)

json
{
  "mcpServers": {
    "pob": {
      "command": "node",
      "args": ["/absolute/path/to/pob-mcp-server/build/index.js"],
      "env": {
        "POB_DIRECTORY": "/path/to/your/Path of Building/Builds",
        "POB_LUA_ENABLED": "true",
        "POB_PATH": "/path/to/PathOfBuilding/src",
        "POB_CMD": "/usr/local/bin/luajit",
        "POB_TIMEOUT_MS": "10000"
      }
    }
  }
}

Environment Variables

VariableDefaultDescription
POB_DIRECTORYOS-default Builds dirPath to your PoB builds directory
POB_LUA_ENABLEDfalseSet "true" to enable Lua bridge
POB_PATH~/Projects/PathOfBuilding/srcPath to a stock PathOfBuilding checkout's src/ directory (POB_FORK_PATH is accepted as a legacy alias)
POB_CMDluajitLuaJIT binary path
POB_TIMEOUT_MS10000Lua request timeout (ms)
POB_DEBUGfalseSet "true" for verbose Lua bridge logging
POB_ARGS(none)Space-separated arguments passed to the Lua process (overrides the default adapter arguments)
POE_TRADE_ENABLEDfalseEnable Trade API tools
POE_SESSION_ID(none)Your POESESSID cookie value; required for the find_weighted_trade_items tool
POE_CACHE_TTL300Trade API response cache TTL in seconds
POE_RATE_LIMIT_PER_SECOND4Trade API requests per second

Setting Up the Lua Bridge

The Lua bridge uses PoB's actual calculation engine for accurate stats.

1. Install LuaJIT

bash
# macOS
brew install luajit

# Ubuntu/Debian
sudo apt-get install luajit

# Windows: download from https://luajit.org/ and add to PATH

2. Clone PathOfBuilding

bash
git clone https://github.com/PathOfBuildingCommunity/PathOfBuilding.git

Note the full path to the src/ directory — that's your POB_PATH.

No fork or patches are required. The server ships its own stdio adapter (lua/vanilla_stdio_bridge.lua + lua/pob_ops.lua) that loads the stock HeadlessWrapper.lua as a library and drives PoB's real calculation engine directly. Every Lua-bridge tool — stats, tree editing, gems, items, config, specs, save/export, anointments, weighted trade queries — works against an unmodified checkout. Call lua_get_capabilities at runtime for the authoritative action list.

To verify a checkout locally after building this project:

bash
POB_PATH=/path/to/PathOfBuilding/src npm run test:smoke

This runs both the adapter contract and MCP stdio transport checks: tool discovery, capabilities, build load, snapshot, stats, items, skills, reversible tree mutation, config, anointment ranking, and build info.

For the deep end-to-end workflow suite:

bash
POB_PATH=/path/to/PathOfBuilding/src npm run test:smoke:full

This verifies blank-build gem editing, build discovery and file persistence, loading, character-level mutation and restoration, tree search, build validation, configuration/snapshot save-and-restore, and defensive/boss-readiness analysis.

To exercise the live Trade API integration (requires network access):

bash
npm run test:smoke:trade

This verifies MCP discovery plus live league, stat, item-search, price-check, resistance-gear recommendation, currency-rate, and trading-profit requests against the Standard league.

To also exercise the authenticated weighted BIS search (requires your POESESSID):

bash
POB_PATH=/path/to/PathOfBuilding/src POE_SESSION_ID=<your POESESSID> npm run test:smoke:weighted

To verify live crafting-data integration (requires network access):

bash
npm run test:smoke:crafting

This verifies that the crafting advisor obtains current currency rates and base-mod data for a known item base through MCP.

3. Verify

bash
luajit -v
ls /path/to/PathOfBuilding/src/HeadlessWrapper.lua

4. Update Claude Desktop config and restart Claude Desktop


Available Tools

With every optional integration enabled, the server registers 99 tools across 10 categories.

XML-Based Tools (Always Available)

ToolDescription
list_buildsList all .xml build files
analyze_buildFull build summary: class, stats, skills, items, tree
compare_buildsSide-by-side build comparison
get_build_statsExtract raw stats from build XML
get_build_notesGet build notes from XML
set_build_notesSet build notes in XML
start_watchingMonitor builds directory for changes
stop_watchingStop file monitoring
watch_statusShow watching status and cache info
get_recent_changesList recently modified builds
refresh_tree_dataClear passive tree data cache

Tree Analysis Tools (Always Available)

ToolDescription
compare_treesShow node differences between two builds
get_nearby_nodesFind notables/keystones reachable from current allocation
find_path_to_nodeShortest path to a target node ID
get_passive_upgradesSuggest passive tree upgrades
suggest_masteriesSuggest mastery choices for allocated clusters

Lua Bridge — Core (Require POB_LUA_ENABLED=true)

ToolDescription
lua_startStart the PoB calculation engine (stdio or TCP)
lua_stopStop the engine and free resources
lua_get_build_snapshotCompact current-state view: core stats, tree count, equipped items, and main gems
lua_new_buildCreate a blank build for a given class/ascendancy
lua_load_buildLoad a build file into the engine
lua_save_buildSave the current in-memory build to a .xml file
lua_reload_buildReload the current build from disk
lua_get_build_infoGet current build metadata (class, level, etc.)
set_character_levelSet level and recalculate all stats
lua_get_statsGet calculated stats (category: offense/defense/all)
lua_get_treeView passive tree: class, ascendancy, all allocated node IDs
lua_set_treeReplace passive tree allocation (preserves class if omitted)
update_tree_deltaAdd/remove individual nodes without replacing entire tree
search_tree_nodesSearch passive tree by name or stat text
suggest_masteriesRank effects available on allocated mastery nodes by live stat impact
list_specsList all tree specs in the current build
select_specSwitch active tree spec
create_specCreate a new tree spec, optionally copying an existing one
rename_specRename a tree spec
delete_specDelete a tree spec
list_item_setsList all item sets in the current build
select_item_setSwitch active item set
plan_levelingGenerate a leveling plan for a build

lua_set_tree class IDs: 0=Scion, 1=Marauder, 2=Ranger, 3=Witch, 4=Duelist, 5=Templar, 6=Shadow

Witch ascendancy IDs: 1=Occultist, 2=Elementalist, 3=Necromancer

lua_save_build is required before using file-based tools (validate_build, analyze_build, etc.) on an in-memory build.

Lua Bridge — Item & Skill Management

ToolDescription
add_itemAdd item from PoE clipboard text to a slot
add_multiple_itemsAdd multiple items in one operation
get_equipped_itemsList all equipped gear with name, base, and rarity
toggle_flaskActivate/deactivate flask 1–5; returns updated stats
get_skill_setupShow all socket groups with gems, levels, and quality
set_main_skillSet which group/gem is used for DPS calculations
create_socket_groupCreate a new socket group (label, slot, enabled)
add_gemAdd a gem to a socket group (name, level, quality)
set_gem_levelSet gem level by group + gem index
set_gem_qualitySet gem quality (Default/Anomalous/Divergent/Phantasmal)
remove_gemRemove a gem by group + gem index
remove_skillRemove an entire socket group
toggle_socket_groupEnable/disable an entire socket group
toggle_gemEnable/disable a single gem within a group
setup_skill_with_gemsCreate a socket group with active gem + supports in one call

Slot names: Weapon 1, Weapon 2, Helmet, Body Armour, Gloves, Boots, Amulet, Ring 1, Ring 2, Belt, Flask 1–Flask 5

Lua Bridge — Build Optimization

ToolDescription
analyze_defenses3-layer defensive audit: avoidance / mitigation / recovery
suggest_optimal_nodesArchetype-aware node suggestions by goal
optimize_treeRecommend nearby nodes to allocate for a goal
analyze_itemsSlot-by-slot item analysis with upgrade priorities
optimize_skill_linksAudit supports: "more" multipliers, penetration, anti-synergies
create_budget_buildGenerate a starter build plan for a class/skill/budget
get_build_issuesGet prioritized list of build problems and suggestions
check_boss_readinessEvaluate readiness for specific boss encounters
suggest_watchers_eyeSuggest Watcher's Eye mods for the build's auras
find_best_anointmentRank anointable notables by live DPS/EHP impact (Amulet or anointable Belt)
analyze_cluster_jewelsAnalyze a cluster jewel setup from a build file

suggest_optimal_nodes goals: damage, defense, life, es, resist, speed

Defensive layers:

  • Avoidance — evasion, spell suppression, dodge, block
  • Mitigation — armour/PDR, endurance charges
  • Recovery — life regen (≥1%/s), leech, ES recharge

A build with all 3 layers is considered exceptional.

Configuration & Enemy Settings

ToolDescription
get_configView bandit, pantheon, and enemy settings
set_configToggle charges, buffs, conditions (e.g. usePowerCharges, enemyIsBoss)
set_enemy_statsSet enemy level, resistances, armour, evasion for DPS scenarios
save_config_presetSave current config as a named preset
load_config_presetLoad a saved config preset
list_config_presetsList all saved config presets

Build Validation

ToolDescription
validate_buildCheck resistances, life, defensive layers, mana, immunities, accuracy, damage scaling

Returns critical issues, warnings, and info with actionable suggestions and an overall 0–10 health score. Uses Lua bridge stats when available; falls back to XML parsing. build_name is optional — omitting it validates the currently loaded Lua bridge build.

Skill Gem Analysis

ToolDescription
analyze_skill_linksEvaluate support gems and detect build archetype
suggest_support_gemsRanked support gem recommendations with DPS estimates
validate_gem_qualityFind gems needing quality, awakened upgrades, or corruption
compare_gem_setupsSide-by-side structural comparison of gem configurations
find_optimal_linksAuto-generate best support combo for a 4/5/6-link and budget
gem_upgrade_pathShow upgrade path for a gem (awakened, quality variants)

Budget tiers: league_start, mid_league, endgame

Build Export & Persistence

ToolDescription
export_buildCopy a build to a new XML file with optional notes
save_treeWrite passive tree back to an existing build file
snapshot_buildCreate a versioned snapshot with description and tag
list_snapshotsList all snapshots for a build
restore_snapshotRestore from a snapshot (auto-backs up current state)
export_build_summaryExport a human-readable build summary

Snapshots are stored in POB_DIRECTORY/.pob-mcp/snapshots/.

Note: export_build copies from the XML file, not from the Lua bridge. Use lua_save_build first if you want to export in-memory changes.

Currency & Market Data (poe.ninja)

ToolDescription
get_currency_ratesLive exchange rates for all currencies (Chaos Orb equivalent)
find_arbitrageDetect profitable currency trading loops
calculate_trading_profitEvaluate a specific trading chain

Rates are updated every 5 minutes from poe.ninja. Pass the exact league name (e.g., Standard, Hardcore, Settlers).

Trade API Tools (Require POE_TRADE_ENABLED=true)

ToolDescription
search_trade_itemsSearch trade with stat filters, price range, link count
find_weighted_trade_itemsBuild-specific BIS search via PoB's TradeQueryGenerator stat weights (requires POE_SESSION_ID and the Lua bridge)
get_item_pricePrice statistics (min/max/median/average) for an item
get_leaguesList available leagues
search_statsLook up Trade API stat IDs
find_item_upgradesIdentify best upgrade candidates for your build
find_resistance_gearFind affordable gear to cap specific resistances
compare_trade_itemsCompare multiple trade listings side by side
search_cluster_jewelsSearch for cluster jewels by notable
analyze_build_cluster_jewelsEvaluate cluster jewel setups for a build
generate_shopping_listGenerate a prioritized shopping list from build analysis

Typical Workflows

Analyze an existing build

1. lua_start
2. lua_load_build (build_name: "MyBuild.xml")
3. lua_get_stats (category: "defense")
4. validate_build
5. analyze_defenses (build_name: "MyBuild.xml")

Build from scratch

1. lua_start
2. lua_new_build (class_name: "Witch", ascendancy: "Necromancer")
3. setup_skill_with_gems (active_gem: "Summon Skeletons", support_gems: [...])
4. lua_set_tree (nodes: [...])
5. lua_get_stats
6. lua_save_build (build_name: "MySummoner.xml")

Optimize passive tree

1. lua_load_build (build_name: "MyBuild.xml")
2. suggest_optimal_nodes (goal: "life", points_available: 5)
3. search_tree_nodes (query: "maximum life")
4. lua_get_tree   ← copy current node list
5. lua_set_tree   ← add new nodes to the list
6. lua_get_stats  ← verify improvement
7. lua_save_build ← persist

Test DPS against Shaper

1. lua_load_build
2. set_enemy_stats (level: 84, fire_resist: 40, cold_resist: 40, lightning_resist: 40)
3. set_config (config_name: "enemyIsBoss", value: true)
4. lua_get_stats (category: "offense")

Find the best anointment and shop for upgrades

1. lua_load_build (build_name: "MyBuild.xml")
2. find_best_anointment (slot: "Amulet", focus: "both")
3. find_weighted_trade_items (league: "Standard", slot: "Amulet")   ← requires POE_TRADE_ENABLED + POE_SESSION_ID

Troubleshooting

XML Features

No builds found

  • Verify POB_DIRECTORY is correct and contains .xml files
  • Check file permissions

Parse errors

  • Open the build in PoB GUI to verify it isn't corrupted
  • Ensure PoB is up to date

Lua Bridge

luajit command not found

bash
brew install luajit          # macOS
sudo apt-get install luajit  # Ubuntu/Debian

Or set POB_CMD to the full path (e.g., /opt/homebrew/bin/luajit).

Failed to find valid ready banner POB_PATH must point to the directory containing HeadlessWrapper.lua:

bash
ls "$POB_PATH/HeadlessWrapper.lua"   # must exist
ls "$POB_PATH/Modules/"              # must exist

Timed out waiting for response

  • Increase POB_TIMEOUT_MS (try 20000)
  • Test manually: cd "$POB_PATH" && luajit HeadlessWrapper.lua

Stats don't match PoB GUI

  • Check bandit/pantheon/enemy settings with get_config
  • Ensure the correct tree spec is active in the XML
  • Make sure your PathOfBuilding checkout is up to date

Bridge becomes unresponsive

lua_stop → wait a moment → lua_start

If still unresponsive, restart Claude Desktop.

Nodes dropped after lua_set_tree Nodes must form a valid connected path from the class starting node. Disconnected nodes are silently dropped by PoB. Ensure all intermediate nodes are included.


Development

bash
npm run build   # compile TypeScript
npm run dev     # watch mode

Path of Building XML Structure

PoB builds are XML files with:

  • <Build>: Character info and stats
  • <Tree>: Passive skill tree node allocations
  • <Skills>: Socket groups and gem links
  • <Items>: Equipped items
  • <Notes>: Build notes

Contributing

Issues and pull requests are welcome!

Contributors

License

GPL-3.0

Installation

TypingMind
{
  "mcpServers": {
    "pob-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/pob-mcp-server/build/index.js"
      ],
      "env": {
        "POB_DIRECTORY": "<POB_DIRECTORY>"
      }
    }
  }
}

Use Path of Building MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Path of Building MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Path of Building MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Path of Building MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "pob-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pob-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Path of Building MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Path of Building MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Path of Building MCP Server to help me with this task?
Path of Building MCP Server
Sure. I read it.
Here is what I found using Path of Building MCP Server.

Frequently asked questions

What is the Path of Building MCP Server MCP server used for?

Path of Building MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Path of Building MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Path of Building MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Path of Building MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Path of Building MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Path of Building MCP Server MCP to TypingMind?

Path of Building MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Path of Building MCP Server MCP provide in TypingMind?

Path of Building MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Path of Building MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Path of Building MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇