Skip to main content
Glama
Bungie Destiny MCP Server

Bungie Destiny MCP Server

by DevNvll

Bungie Destiny MCP Server

A Model Context Protocol (MCP) server that provides AI access to the Bungie.net Destiny 2 API. This server enables AI assistants to retrieve Destiny 2 game data including player profiles, character information, item details, and activity history.

Features

  • OAuth Authentication - Secure authentication flow with Bungie.net

  • Comprehensive API Coverage - Access to key Destiny 2 endpoints

  • Rate Limiting - Built-in rate limiting to respect API limits

  • Error Handling - Robust error handling for API responses

  • MCP Protocol - Full compliance with Model Context Protocol

Related MCP server: Destiny MCP

Available Tools

Core Player Data

  • get_destiny_profile - Get player profile information

  • get_destiny_character - Get detailed character information

  • get_destiny_item - Get item details and stats

  • search_destiny_player - Search for players by display name

  • search_destiny_player_by_bungie_name - Search using Bungie Name + discriminator

  • get_linked_profiles - Get linked profiles across platforms

Activity & Statistics

  • get_activity_history - Get character activity history

  • get_post_game_carnage_report - Get detailed PGCR with all participants and their stats

  • get_historical_stats - Historical game statistics

  • get_aggregate_activity_stats - Aggregate activity statistics

  • get_unique_weapon_history - Unique weapon usage history

  • get_leaderboards - Player leaderboard data

Game Data & Definitions

  • get_destiny_manifest - Get game manifest and definitions

  • get_destiny_entity_definition - Get specific entity definitions (weapons, armor, etc.)

  • get_public_milestones - Current weekly/daily milestones

  • get_public_milestone_content - Detailed milestone content

  • get_public_vendors - Public vendor inventories (Xur, etc.)

Clan Information

  • get_clan_weekly_reward_state - Clan weekly reward status

  • get_clan_banner_source - Available clan banner options

Note: This server uses public API endpoints that only require an API key - no user authentication needed!

Setup

  1. Register Application

  2. Configure Environment

    cp .env.example .env
    # Edit .env with your API key (only BUNGIE_API_KEY is required)
  3. Install Dependencies

    npm install
  4. Build

    npm run build

Running the Server

The server supports two modes:

Stdio Mode (Default)

For use with Claude Desktop and other MCP clients that communicate via stdin/stdout:

npm start
# or explicitly:
npm run start:stdio

WebSocket Mode (Remote Server)

For remote connections over WebSocket:

npm run start:websocket
# or with custom port:
npm run start:websocket -- --port 3001

The WebSocket server will be available at ws://localhost:3000 (or your specified port).

MCP Client Configuration

Claude Desktop (Stdio Mode)

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "bungie-destiny": {
      "command": "node",
      "args": ["/path/to/bungie-mcp/dist/index.js", "stdio"],
      "env": {
        "BUNGIE_API_KEY": "your_api_key"
      }
    }
  }
}

Remote WebSocket Connection

For remote MCP clients, connect to:

ws://localhost:3000

The server will handle multiple concurrent WebSocket connections.

Development

Run in development mode with auto-reload:

npm run dev           # stdio mode
npm run dev:websocket # websocket mode

Usage

The server provides access to public Destiny 2 data without requiring user authentication. Simply provide player membership information to retrieve:

  • Player profiles and statistics

  • Character details and equipment

  • Activity history and achievements

  • Detailed activity reports with all participants (Post-Game Carnage Reports)

  • Item information and perks

  • Cross-platform linked accounts

  • Real-time game data (milestones, vendors)

Getting Activity Participants

To get detailed information about other players in activities:

  1. Use get_activity_history to get recent activities for a player

  2. Extract the instanceId from activity entries

  3. Use get_post_game_carnage_report with the instanceId to get:

    • All participants' gamertags/display names

    • Individual player performance stats

    • Loadouts and weapon usage

    • Team assignments and scores

    • Detailed match statistics

Note: Player visibility depends on their privacy settings in Destiny 2.

Component Types

Common component types for API calls:

  • 100 - Profiles

  • 200 - Characters

  • 201 - Character Inventories

  • 300 - Item Instances

  • 301 - Item Objectives

  • 302 - Item Perks

Platform Types

  • 1 - Xbox

  • 2 - PlayStation

  • 3 - Steam

  • 4 - Blizzard

  • 5 - Stadia

  • 6 - Epic Games

  • 254 - BungieNext

Rate Limits

The server implements rate limiting (25 requests per 10 seconds) to comply with Bungie.net API limits.

Error Handling

The server provides detailed error messages for:

  • Authentication failures

  • Rate limit exceeded

  • API server errors

  • Invalid parameters

License

MIT

Available Tools

19 tools
get_activity_historyC

Get activity history for a Destiny 2 character

Inputs: characterId (required), membershipId (required), membershipType (required), mode, +2 more.

get_aggregate_activity_statsC

Get aggregate activity statistics for a character

Inputs: characterId (required), membershipId (required), membershipType (required).

get_clan_banner_sourceB

Get the dictionary of available clan banner options

Inputs: no named parameters.

get_clan_weekly_reward_stateC

Get weekly reward state for a clan

Inputs: groupId (required).

get_destiny_characterC

Get detailed information about a specific Destiny 2 character

Inputs: characterId (required), membershipId (required), membershipType (required), components.

get_destiny_entity_definitionC

Get definition data for a specific Destiny 2 entity (weapons, armor, etc.)

Inputs: entityType (required), hashIdentifier (required).

get_destiny_itemC

Get detailed information about a specific Destiny 2 item

Inputs: membershipId (required), itemInstanceId (required), membershipType (required), components.

get_destiny_manifestC

Get the Destiny 2 manifest containing game definitions and metadata

Inputs: no named parameters.

get_destiny_profileC

Get Destiny 2 profile information for a player

Inputs: membershipId (required), membershipType (required), components.

get_historical_statsC

Get historical game statistics for a character

Inputs: characterId (required), membershipId (required), membershipType (required), modes, +2 more.

get_leaderboardsC

Get leaderboard data for a player

Inputs: membershipId (required), membershipType (required), modes, maxtop, +1 more.

get_linked_profilesC

Get linked profiles for a Destiny 2 player across platforms

Inputs: membershipId (required), membershipType (required).

get_post_game_carnage_reportA

Get detailed Post-Game Carnage Report (PGCR) for a specific activity instance, including all participants, their stats, loadouts, and performance data

Inputs: activityId (required).

get_public_milestone_contentC

Get detailed content for a specific milestone

Inputs: milestoneHash (required).

get_public_milestonesB

Get current public milestones available to all players

Inputs: no named parameters.

get_public_vendorsC

Get public vendor information and their current inventories

Inputs: components.

get_unique_weapon_historyC

Get unique weapon usage history for a character

Inputs: characterId (required), membershipId (required), membershipType (required).

search_destiny_playerC

Search for a Destiny 2 player by display name

Inputs: displayName (required), membershipType (required).

search_destiny_player_by_bungie_nameC

Search for a Destiny player using their Bungie Name and discriminator

Inputs: displayName (required), membershipType (required), displayNameCode (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 19 tools

    Disambiguation4/5

    Most tools target clearly distinct resources and actions, but two overlap: search_destiny_player and search_destiny_player_by_bungie_name are near-duplicates, and get_destiny_item versus get_destiny_entity_definition could be confused by an agent unfamiliar with the manifest/instance distinction. get_public_milestones and get_public_milestone_content are related but the list/detail split is clear enough.

    Naming Consistency5/5

    Every tool uses consistent snake_case verb_noun form with get_ or search_ prefixes (get_destiny_profile, get_activity_history, search_destiny_player). No mixed conventions or camelCase outliers.

    Tool Count4/5

    19 tools is on the heavy side of the sweet spot but justified by the breadth of the Destiny 2 API (manifest, profiles, characters, items, clans, stats, PGCR). Slightly redundant player-search tools push it just past ideal scoping.

    Completeness4/5

    The read-only surface is broad: manifest/definitions, profiles, characters, items, activity history, PGCR, vendors, milestones, clans, and stats. Minor gaps remain, such as clan member/info lookup and any write or account-link operations, but agents can work around these via the exposed endpoints.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Enables AI to manage Destiny 2 gear, weapons, and loadouts through MCP clients, with tools for player profiles, inventory, builds, and activities.
      8
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server that provides full read/write access to the Bungie API for Destiny 2, enabling AI assistants to manage inventory, equipment, loadouts, subclass configuration, vendors, and account stats for a user's Destiny 2 characters. It runs locally with OAuth authentication and exposes 23 tools for comprehensive game management.
      -