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 (28)
Read (16)
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; |
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.
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 |
|
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:, wishlists. An unknown keyword comes back as an error
listing everything that is supported.
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.
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
- AlicenseBqualityCmaintenanceA 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.Last updated972MIT
- Alicense-qualityDmaintenanceAn 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.Last updated2MIT
- 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.Last updated53
- AlicenseAqualityBmaintenanceUnofficial MCP server that provides GPT subagent tools using a ChatGPT subscription via OAuth, enabling access to GPT models for orchestrated tasks.Last updated42MIT
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