Destiny 2 MCP Server
Provides full read/write access to the Bungie API for Destiny 2 accounts, enabling inventory management, equipment swapping, loadout configuration, vendor and milestone checks, and more.
Click on "Install 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., "@Destiny 2 MCP ServerWhat does Xur have today?"
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.
Destiny 2 MCP Server
An MCP (Model Context Protocol) server giving full read/write access to the Bungie API for your Destiny 2 account — usable from ChatGPT web, Claude Code, Claude Desktop, or any MCP client. Ask an AI to find god rolls in your vault, build loadouts, move gear between characters, configure your subclass, check Xur's stock, or pull raid stats. Runs entirely on your machine; your Bungie credentials never leave it.
Prerequisites
Node.js ≥ 20
A Bungie.net account (with cross-save/platform Destiny 2 characters)
Related MCP server: EVE ESI Tool
Bungie app registration
Go to https://www.bungie.net/en/Application and sign in.
Click Create New App.
Fill in:
Application Name: anything (e.g.
My D2 MCP)Website: anything (e.g.
https://localhost)OAuth Client Type:
ConfidentialRedirect URL:
https://localhost:7778/callbackScope: check Read your Destiny 2 information, Move or equip Destiny gear, and the other read scopes (basic profile, groups/clans, vendors and advisors).
Origin Header: leave blank.
Agree to the terms and save.
Copy the API Key, OAuth client_id, and OAuth client_secret — you need all three next.
Setup
cp .env.example .env # paste in your API key, client_id, client_secret
npm install
npm run setup # generates the self-signed cert for the local OAuth server
npm startOn first boot the server downloads the Destiny manifest (~200 MB) — give it a minute.
Then open https://localhost:7778/auth in a browser, click through the self-signed-certificate warning (Advanced → Proceed), and sign in with Bungie. That's a one-time step; tokens are saved and refreshed automatically.
The MCP endpoint is now live at http://localhost:7777/mcp.
Verify
npm run smokeRead-only live test: looks up Gjallarhorn in the manifest, fetches your account, and prints each character's power level. Ends with SMOKE OK.
Connect ChatGPT web
ChatGPT can't reach localhost directly. The supported path is OpenAI's Secure MCP Tunnel: a daemon on your machine makes an outbound connection to OpenAI, and ChatGPT talks to your server through it. No public URL, no exposed port.
Requires a ChatGPT plan with developer mode (Plus/Pro/Business) and an OpenAI platform account.
Enable developer mode: ChatGPT → Settings → Apps & Connectors → Advanced settings → Developer mode.
Create a tunnel: platform.openai.com → Settings → Tunnels → Create tunnel. Copy the
tunnel_id.Create a runtime API key: Runtime API keys, with Tunnels Read + Use permissions. This key only authenticates the tunnel — it doesn't spend model credits.
Install
tunnel-clienton the machine running this server: download the binary for your platform from openai/tunnel-client releases and put it on your PATH.Configure and run (with
npm startalready running):export CONTROL_PLANE_API_KEY="sk-..." # the runtime key tunnel-client init \ --sample sample_mcp_remote_no_auth \ --profile destiny2 \ --tunnel-id tunnel_YOUR_ID \ --mcp-server-url http://localhost:7777/mcp tunnel-client run --profile destiny2tunnel-client doctor --profile destiny2flags a failedoauth_metadatacheck — expected, this server has no OAuth layer; plain MCP servers still reach ready. Confirm withcurl http://127.0.0.1:8080/readyz→ready.Add the plugin: ChatGPT → Plugins → + → Connection: Tunnel → select your tunnel. Authentication: None. Give it a name and a capability-rich description (the model uses the description to decide when to call your tools).
Keep tunnel-client run alive alongside npm start (e.g. systemd services) — ChatGPT needs both for every call.
After changing a tool's schema, delete the connector and add it again. ChatGPT snapshots the tool list when the connector is created and does not call tools/list on later sessions — reconnecting or restarting the server reuses the stale snapshot, and calls fail with Input validation error. Confirm the refetch landed by looking for a tools/list line in data/mcp.log — per-call logging is off by default, so set MCP_LOG=1 in .env and restart first.
Alternative without an OpenAI platform account: expose the server publicly with cloudflared tunnel --url http://localhost:7777 and add the URL as a connector — but then anyone with the URL controls your Destiny inventory; protect it or rotate it regularly.
Scheduled monitoring
ChatGPT's Scheduled Tasks run a prompt on a timer (max hourly) and start every run with a fresh context — a task cannot remember what it reported last time. search_inventory sort:recent therefore re-reports the same drops forever.
get_new_items moves that memory server-side. It stores the highest item instance id it has seen per cursor in data/watermarks.json (instance ids are allocated monotonically, so "id above the mark" means "acquired since"), and returns {"new": 0} when nothing arrived — the tool description tells the model to stay silent in that case, so no push notification fires on a quiet hour.
Task prompt that works:
Every hour, call
get_new_itemswith cursor"chatgpt-hourly". Ifnewis 0, reply with nothing. Otherwise list the items with tier and power.
Notes:
The first call on a cursor only records a baseline (
initialized: true). Drops are reported from the second call on.Give each task its own
cursor. Two tasks sharing one cursor eat each other's deltas. Usepeek: trueto look without consuming.A
queryfilters what is reported but not how far the watermark moves — soquery: "is:exotic"will never re-scan the legendaries it skipped.Detects arrivals only, not dismantles or transfers.
The hourly cap does not lose anything: the watermark is id-based, not time-based, so a longer gap just means a bigger batch.
Plus/Pro developer-mode connectors are read-only —
get_new_itemsworks there; the write tools need Business/Enterprise.If the Bungie refresh token dies, calls fail with a message starting
REAUTH REQUIRED, which surfaces in the task's notification instead of failing silently.
Connect Claude
Claude Code:
claude mcp add --transport http destiny2 http://localhost:7777/mcpClaude Desktop: Settings → Connectors → Add custom connector, URL http://localhost:7777/mcp.
Tools (35)
Read (17)
Tool | Description |
| Destiny 2 account overview: characters (class, power, race, playtime), currencies like Glimmer. |
| Whether the player is online and which writes are allowed right now — equip/socket need orbit, a social space, or offline. One call instead of deducing it from the profile. |
| One character in detail: stats (Mobility etc.) and all currently equipped items with power. |
| Search ALL items across every character and the vault using DIM search syntax — |
| Items acquired since the last check — for scheduled/recurring monitoring. Keeps a watermark per |
| Full detail for up to 15 item instances in one call: perks/mods in each socket (with socket indexes for insert_plug), stats, energy. |
| List all currently available vendors (Xur, Banshee-44, Ada-1...) with refresh times. Use get_vendor_items for stock. |
| One vendor's current stock with costs. vendor_hash from get_vendors (Xur: 2190858386). |
| In-game loadout slots per character. loadout_index feeds equip_loadout / snapshot_loadout. |
| Current weekly milestones/activities across the game (public info, no character needed). |
| Recent completed activities for a character. mode: 0=all, 5=PvP, 7=PvE, 4=raid, 82=dungeon, 84=Trials, 46=GM nightfall. |
| Lifetime account stats, split PvE / PvP: kills, K/D, activities cleared, time played, and more. |
| The account's clan: name, motto, member count, online members. |
| Find any player by full Bungie name ("Guardian#1234") → their membership ids. |
| Look up any Destiny definition by name → hash. Items by default; set table for perks (DestinySandboxPerkDefinition), activities (DestinyActivityDefinition), etc. |
| Definitions by hash from the local manifest — instant, no network, up to 50 hashes per call. Trimmed to name/description/type/energy cost/perks; |
| Re-download and rebuild the DIM wish list index used by the god-roll filters. Returns roll/note/weapon counts. |
Write (9)
Tool | Description |
| Move an item between a character and the vault. Get item_instance_id + item_hash from search_inventory. To move char→char: transfer to vault first, then vault→other char. |
| Equip one item on a character. Only works in orbit/social spaces or offline (Bungie restriction). |
| Equip several items at once on a character (full loadout swap). Same location restriction as equip_item. |
| Apply a saved in-game loadout slot. Get loadout_index from get_loadouts. |
| Save the character's CURRENT equipment into an in-game loadout slot (overwrites that slot). |
| Pull an item from the postmaster to the character. Find postmaster items via search_inventory (they sit in the Lost Items bucket). |
| Lock or unlock an item (protects from dismantle in game). |
| Socket mods/aspects/fragments/free perks into one item — pass every socket in a single |
| Equip a subclass by name (e.g. "Solar", "Prismatic") and optionally configure its super/aspects/fragments in one call. For plugs: first call get_item_details on the subclass instance to see socket indexes. |
Raw (3)
Tool | Description |
| Index of all 135 Bungie Platform endpoints from Bungie's own OpenAPI spec — names only. Filter by |
| One endpoint's full signature: parameters, request body shape, OAuth scope, response type. |
| Escape hatch: call ANY Bungie.net Platform endpoint directly. path is relative to /Platform, e.g. "/Destiny2/Manifest/". Prefer the specific tools when one fits; responses here are raw JSON with unresolved hashes. |
The spec behind the first two is downloaded once (1.8MB) to data/openapi.json on first use. Delete that file to pick up Bungie's latest.
Game catalog (2)
Every item in the game, from the local manifest — for designing builds around gear the account does not own.
Tool | Description |
| The same DIM query syntax as |
| One item by name or hash: base stats, and every perk each socket column can roll with its description — plus the god rolls for it, aggregated from the DIM wish list: how many wish-listed rolls want each perk per column, the top trait combinations, and the reviewers' notes. Answers "what is the god roll for X" for a weapon the player has never seen. |
The first perk-aware query resolves every socket pool in the game (~10s, once per process); afterwards it is cached and answers in well under a second. Plain queries build a lighter catalog in ~1.5s.
Builds (3)
Community and editorial builds from Mobalytics — build ideas, not the player's inventory. No account, no API key: it is the site's own public GraphQL API. See docs/mobalytics-api.md for the reverse-engineered schema.
Tool | Description |
| Search builds by |
| Everything on one build id/slug: full loadout, armor exotic perks and set bonuses, mods per slot, fragments, stat priority, artifact perks, and the author's write-up — gameplay loop, how it works, in-depth sections, strengths/weaknesses, DIM import link, video guide. |
| Name → Mobalytics item id, for when a weapon/armor name is ambiguous. |
DIM loadout shares (1)
Tool | Description |
| Read a shared DIM loadout — |
dim.gg/<shareId>/<slug> is a redirect page whose "Open in DIM" link carries the loadout as a urlencoded JSON query param. The same document comes straight from DIM's API with no key and no auth:
GET https://api.destinyitemmanager.com/loadout_share?shareId=o3incja(The /profile endpoints of dim-api need X-API-Key plus a bearer token; loadout_share is deliberately public so shared links work for anyone.)
Everything in a share is hashes, resolved here against the local manifest:
Subclass config rides in
socketOverrideson the subclass item — split out into super, class/movement/melee/grenade abilities, aspects and fragments, each with its in-game description.Mods are one flat list with no slot attached. Each mod's
plug.plugCategoryIdentifiersays which slot it is restricted to (enhancements.v2_head,…v2_arms,…v2_general, the tuning category, …), so they come back grouped by slot with energy costs.Armor sets come from
DestinyEquipableItemSetDefinition, so a build wearing four matching legendaries reports the 2- and 4-piece bonuses and which are active — usually the whole reason those pieces are in the build.Notes are free text and often name gear or artifact columns the loadout itself does not carry. Returned verbatim, never parsed as equipment.
The tool stops there. Equipping is the model's job: the instance ids in a share belong to whoever shared it, so take the hashes into search_inventory to find the account's own copies, then transfer_item → equip_items → insert_plug (get_item_details with include_plug_options for the socket indexes of the piece actually being worn).
Mobalytics sits behind Cloudflare, which fingerprints TLS and HTTP/2 — plain fetch gets a challenge page, so these tools go through node-tls-client (a real Chrome fingerprint). It downloads a ~16MB shared library on first run. If Cloudflare ever refuses every profile, the tools say so rather than returning empty results.
DIM search syntax
search_inventory uses DIM's item search language.
The lexer and parser are ported from DIM (src/search/query-parser.ts, MIT), so a query that parses
in DIM parses here — same operators, same precedence, same quoting.
Like DIM, one profile fetch pulls everything and every filter runs locally, so a complex query costs exactly one API call. Repeat searches inside 60s hit the response cache and cost none.
Logic | space = and, |
Text |
|
Rarity |
|
Element |
|
Ammo / class |
|
Item type | any category from the manifest: |
State |
|
Location |
|
Numbers |
|
Stats |
|
God rolls |
|
Armor 3.0 renamed the six armor stats (Resilience → Health, Mobility → Weapons, and so on). Both names work — the old ones are aliases, as they are in DIM.
Not supported, because they need DIM Sync or data Bungie's API doesn't serve: tag:, notes:,
season:, source:, foundry:, basestat:. An unknown keyword comes back as an error
listing everything that is supported.
God rolls
The god-roll filters match your weapons against a DIM wish list. The default source is
voltron.txt
— a continuously updated compilation of community god rolls (26 MB, 252,163 dimwishlist: lines
covering 1,225 weapons). Set WISHLIST_URL in .env to use a different list. The file is parsed
once into data/wishlist.db (SQLite, ~24 MB — 198k rolls and 5.1k note blocks after
deduplication) and never held in memory.
The point is the notes: every roll block carries a prose explanation of why the roll is good
— what the model needs to build a loadout, not just which perks to look for. search_inventory
returns tags + source per matching item (~10 tokens a row); get_item_details returns the full
note, capped at 5 full notes per call with the rest truncated to 400 chars, so a 15-id call
cannot blow the context.
Matching is by perk name, not hash, so crafted and enhanced weapons match (300 of 301 enhanced perks share their base perk's display name).
Two match grades:
equipped(the plugged roll matches) andavailable(every perk is selectable but a swap is needed — the match reports which socket to change). This matters: on a real account 138 of 230 weapons had multi-option perk columns.The extra Bungie component this needs (310, ItemReusablePlugs) is requested only when a query uses a god-roll filter — measured 1.45 MB / 770 ms without it vs 2.39 MB / 1754 ms with it, so ordinary searches keep their speed.
On boot the index rebuilds in the background if missing or older than 24 h; the old index keeps serving and startup never blocks.
refresh_wishlistforces a rebuild.Not supported: the trash list (the source ships zero entries), armor, multiple simultaneous sources.
Known Bungie limits
Equipping only works while the character is in orbit, in a social space, or offline — the game rejects equip requests mid-activity.
Paid perk/mod swaps are blocked for all third-party apps: Bungie's
AdvancedWriteActionsonly permits free socket operations (armor mods, subclass config, crafted-weapon free swaps). Anything that costs materials must be done in game.Refresh token expires after 90 days. If API calls start failing with auth errors, re-run the one-time OAuth:
npm start, then openhttps://localhost:7778/authagain.Only weapons and armor have power. Bungie hangs a
primaryStaton plenty of things that have none — a sparrow's is Speed, and a subclass gets one of its own stat modifiers picked at random, which can read negative. Following DIM,poweris reported only when that stat is Attack, Defense or Power, so nothing else leaks intois:haspowerorsort:power. The stat is not thrown away: an item with no power getsprimaryStat: {name, value}instead, so a sparrow reports{"name": "Speed", "value": 190}. Subclasses and the artifact are the exception — their primary stat is dropped outright, because component 304 already reports all six of a subclass's real stats.Gear on a character you have not played in a long time reads power 10. That is Bungie's data (
itemLevel: 1), not a parsing bug — log the character in once and it re-derives.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA comprehensive MCP server for managing AI-assisted Dungeons & Dragons campaigns, featuring tools for character sheets, combat tracking, and world-building. It enables players and DMs to interact with 5e game mechanics and query personal PDF rulebooks using RAG capabilities.972MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates EVE Online's ESI API with AI assistants to enable natural language interaction with character data, market information, and assets. It provides 22 tools for managing skills, wallet balances, ship fittings, and more directly through AI-powered clients.2MIT
- FlicenseAqualityFmaintenanceMCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.53
- FlicenseNot gradedqualityCmaintenanceManage your Destiny 2 inventory, weapons, and loadouts through AI. Integrates with MCP clients like Claude Code.
Related MCP Connectors
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
MCP server exposing the Backtest360 engine API as tools for AI agents.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/GS-Rionnag/Destiny2MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server