🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@audiodn/mcp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@audiodn/mcp

Model Context Protocol server for AudioDN. Exposes the ADN REST API as MCP tools plus offline, grounded documentation tools so AI agents (Cursor, Claude Desktop, Claude Code, etc.) can configure audio hosting on a user's behalf.

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
42
-82.35%
Maintainers
1
Weekly downloads
 
Created
Source

@audiodn/mcp

Model Context Protocol server for AudioDN.

Exposes the AudioDN REST API as MCP tools so AI agents (Cursor, Claude Desktop, Claude Code, VS Code, Codex, etc.) can configure audio hosting on a user's behalf, plus offline, read-only knowledge tools grounded in the canonical AudioDN OpenAPI spec and documentation so agents look up the correct endpoints instead of guessing.

Install

npm install -g @audiodn/mcp
# or run on demand
npx @audiodn/mcp

Configure

Set a server-side AudioDN API key (mint one in the dashboard at https://account.audiodeliverynetwork.com under Settings → API Keys).

export ADN_API_KEY="adn_..."
# Optional overrides:
# export ADN_API_BASE_URL="https://api.audiodelivery.net"  # default
# export ADN_MCP_ALLOW_DELETE=1     # enable destructive delete tools (off by default)
# export ADN_MCP_LIVE_DOCS=1        # refresh bundled docs from the public site at startup
# export ADN_MCP_TIMEOUT_MS=30000   # per-request timeout

Environment variables

VariableRequiredDefaultPurpose
ADN_API_KEYYesServer-side, full-access API key used for all live-API tools.
ADN_API_BASE_URLNohttps://api.audiodelivery.netOverride the API host.
ADN_MCP_ALLOW_DELETENooffSet to 1 to expose the destructive adn_delete_* tools.
ADN_MCP_LIVE_DOCSNooffSet to 1 to refresh bundled docs from the public site (falls back to the bundle offline).
ADN_MCP_TIMEOUT_MSNo30000Per-request timeout in milliseconds.

Safety model

  • Reads and knowledge tools are annotated read-only and always available.
  • Create/update tools run with the API key but are annotated so MCP clients can prompt for approval; the client is the human-in-the-loop layer.
  • The two delete tools (adn_delete_creator, adn_delete_collection) are hidden and refuse to run unless the server is started with ADN_MCP_ALLOW_DELETE=1. Set it once to opt in.

Use with Cursor

Settings → Tools & Integrations → MCP (or edit ~/.cursor/mcp.json):

{
  "mcpServers": {
    "audiodn": {
      "command": "npx",
      "args": ["-y", "@audiodn/mcp"],
      "env": { "ADN_API_KEY": "adn_..." }
    }
  }
}

Use with Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (or the equivalent on your OS), then restart the app:

{
  "mcpServers": {
    "audiodn": {
      "command": "npx",
      "args": ["-y", "@audiodn/mcp"],
      "env": { "ADN_API_KEY": "adn_..." }
    }
  }
}

Use with Claude Code

claude mcp add audiodn --env ADN_API_KEY=adn_... -- npx -y @audiodn/mcp

Use with VS Code (Copilot) / Codex / Windsurf

Any client that speaks MCP over stdio uses the same command. For VS Code, add to .vscode/mcp.json:

{
  "servers": {
    "audiodn": {
      "command": "npx",
      "args": ["-y", "@audiodn/mcp"],
      "env": { "ADN_API_KEY": "adn_..." }
    }
  }
}

For Codex CLI (~/.codex/config.toml):

[mcp_servers.audiodn]
command = "npx"
args = ["-y", "@audiodn/mcp"]
env = { ADN_API_KEY = "adn_..." }

Tools

Knowledge tools (read-only, offline, no API key needed)

ToolDescription
adn_aboutServer version, bundled OpenAPI version, docs source, API base.
adn_search_docsKeyword search over bundled docs + OpenAPI summaries.
adn_list_operationsList all REST operations (operationId, method, path).
adn_get_operationFull OpenAPI definition for one operationId.
adn_get_guideCanonical guide (authentication, upload, processing, playback, webhooks, variant-types, security, compatibility).
adn_list_variant_typesThe seven variant types and which are API-creatable.

Live API tools

ToolDescriptionAnnotation
adn_list_creators / adn_get_creatorRead creatorsread-only
adn_create_creator / adn_update_creatorCreate/update creatorwrite
adn_delete_creatorDelete creatordestructive (gated)
adn_list_collections / adn_get_collectionRead collectionsread-only
adn_create_collection / adn_update_collectionCreate/update collectionwrite
adn_delete_collectionDelete collection + its tracksdestructive (gated)
adn_list_tracks / adn_get_trackRead tracks; adn_get_track polls readinessread-only
adn_create_upload_session / adn_get_upload_sessionManage upload sessionswrite / read-only
adn_create_track_in_upload_sessionRegister a track, get track_upload.upload_urlwrite
adn_create_play_session / adn_get_play_sessionMint/read play sessions (scope: collection, track)write / read-only
adn_list_variantsList org delivery variantsread-only

Resources

The server also exposes canonical docs as MCP resources for clients that attach context directly: audiodn://openapi.json, audiodn://llms-full.txt, and audiodn://guide/{topic} for each guide.

Example flow

An agent helping a user host a podcast might call:

  • adn_get_guide({ topic: "upload" }) — learn the canonical multi-step flow.
  • adn_create_collection({ title: "My Podcast" })
  • adn_create_upload_session({ collection_id })
  • adn_create_track_in_upload_session({ upload_session_id, file_name: "ep1.mp3" })
  • Your code PUTs the audio bytes to track_upload.upload_url.
  • Poll adn_get_track({ track_id }) until track_status_id === "ready".
  • adn_create_play_session({ scope: "track", track_id }) — returns a signed playback URL that can be embedded directly.

Build from source

npm install
npm run build
npm test           # vitest
npm run smoke      # build + spawn the real binary over stdio
node dist/index.js

Keeping docs fresh

Bundled snapshots live in assets/snapshots/. Refresh them from the public site with npm run sync; prepublishOnly verifies they are consistent before a release.

Reference

Keywords

audiodn

FAQs

Package last updated on 13 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts