Audio Delivery Network
AI-manageable audio CDN: upload, transcode, normalize, stream & deliver audio, plus grounded docs.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
claude mcp add --transport http audio-delivery-network 'https://mcp.audiodelivery.net/mcp' --header 'Authorization: <Bring your own AudioDN API key as a bearer token: '\''Bearer adn_...'\''. Optional — knowledge/doc tools work with no key; live API tools activate when a key is sent.>'
{
"mcpServers": {
"audio-delivery-network": {
"type": "http",
"url": "https://mcp.audiodelivery.net/mcp",
"headers": {
"Authorization": "<Bring your own AudioDN API key as a bearer token: 'Bearer adn_...'. Optional — knowledge/doc tools work with no key; live API tools activate when a key is sent.>"
}
}
}
}
@audiodn/mcpclaude mcp add audio-delivery-network -e 'ADN_API_KEY=<your adn_api_key>' -e 'ADN_API_BASE_URL=<ADN_API_BASE_URL>' -e 'ADN_MCP_ALLOW_DELETE=<ADN_MCP_ALLOW_DELETE>' -- npx -y @audiodn/mcp@0.3.3
{
"mcpServers": {
"audio-delivery-network": {
"command": "npx",
"args": [
"-y",
"@audiodn/mcp@0.3.3"
],
"env": {
"ADN_API_KEY": "<your adn_api_key>",
"ADN_API_BASE_URL": "<ADN_API_BASE_URL>",
"ADN_MCP_ALLOW_DELETE": "<ADN_MCP_ALLOW_DELETE>"
}
}
}
}
متغيرات البيئة
ADN_API_KEYإلزامي سري AudioDN server-side API key (adn_...). Required for live API tools; knowledge/doc tools work without it.ADN_API_BASE_URLOverride the AudioDN API base URL. Defaults to https://api.audiodelivery.net.ADN_MCP_ALLOW_DELETESet to 1 to enable destructive delete tools. Off by default.
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
@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 in Cursor
One-click install (hosted endpoint, zero setup — knowledge/doc tools work immediately):
To enable the live API tools, set ADN_API_KEY (an adn_... key from the
dashboard) in your environment before launching Cursor; the hosted endpoint
picks it up from the Authorization header. Prefer a local stdio server? Use
this button instead:
Both correspond to the mcp.json shipped with this plugin. See
Cursor's MCP docs for manual setup.
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
| Variable | Required | Default | Purpose |
|---|---|---|---|
ADN_API_KEY | Yes | – | Server-side, full-access API key used for all live-API tools. |
ADN_API_BASE_URL | No | https://api.audiodelivery.net | Override the API host. |
ADN_MCP_ALLOW_DELETE | No | off | Set to 1 to expose the destructive adn_delete_* tools. |
ADN_MCP_LIVE_DOCS | No | off | Set to 1 to refresh bundled docs from the public site (falls back to the bundle offline). |
ADN_MCP_TIMEOUT_MS | No | 30000 | Per-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 withADN_MCP_ALLOW_DELETE=1. Set it once to opt in.
Hosted (remote) endpoint
Besides the local npx stdio server above, AudioDN runs the same tool set as a
hosted Streamable HTTP endpoint on Cloudflare Workers, so clients that
support remote MCP servers can connect without installing anything.
- URL:
https://mcp.audiodelivery.net/mcp— the MCP endpoint. The root/serves a human landing page in a browser (and JSON for tooling), and/healthreturns machine-readable server info. - Auth — bring your own key: the endpoint is public and stores no secrets. Knowledge/doc tools work with no key. To enable the live API tools, send your AudioDN API key on every request as either header:
Authorization: Bearer adn_...
# or
X-ADN-API-Key: adn_...
- Deletes are never exposed on the hosted endpoint, regardless of key.
Example client configuration (clients that support a remote/HTTP MCP URL):
{
"mcpServers": {
"audiodn": {
"url": "https://mcp.audiodelivery.net/mcp",
"headers": { "Authorization": "Bearer adn_..." }
}
}
}
The hosted Worker lives in worker/ and is deployed with Wrangler
(npm run deploy); it is not part of the published npm package.
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)
| Tool | Description |
|---|---|
adn_about | Server version, bundled OpenAPI version, docs source, API base. |
adn_search_docs | Keyword search over bundled docs + OpenAPI summaries. |
adn_list_operations | List all REST operations (operationId, method, path). |
adn_get_operation | Full OpenAPI definition for one operationId. |
adn_get_guide | Canonical guide (authentication, upload, processing, playback, webhooks, variant-types, security, compatibility). |
adn_list_variant_types | The seven variant types and which are API-creatable. |
Live API tools
| Tool | Description | Annotation |
|---|---|---|
adn_list_creators / adn_get_creator | Read creators | read-only |
adn_create_creator / adn_update_creator | Create/update creator | write |
adn_delete_creator | Delete creator | destructive (gated) |
adn_list_collections / adn_get_collection | Read collections | read-only |
adn_create_collection / adn_update_collection | Create/update collection | write |
adn_delete_collection | Delete collection + its tracks | destructive (gated) |
adn_list_tracks / adn_get_track | Read tracks; adn_get_track polls readiness | read-only |
adn_create_upload_session / adn_get_upload_session | Manage upload sessions | write / read-only |
adn_create_track_in_upload_session | Register a track, get track_upload.upload_url | write |
adn_create_play_session / adn_get_play_session | Mint/read play sessions (scope: collection, track) | write / read-only |
adn_list_variants | List org delivery variants | read-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 totrack_upload.upload_url. - Poll
adn_get_track({ track_id })untiltrack_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
Deploy the hosted endpoint
The Cloudflare Worker in worker/ serves the same tools over Streamable HTTP.
npx wrangler login
npm run dev:worker # local: http://localhost:8787/mcp and /health
npm run deploy # publish -> https://mcp.audiodelivery.net (custom domain)
curl https://mcp.audiodelivery.net/health
The custom domain mcp.audiodelivery.net is provisioned by Cloudflare from the
routes entry in wrangler.toml (the audiodelivery.net zone must be on the
same Cloudflare account).
To list on the official MCP registry (registry name net.audiodelivery/mcp,
which must match mcpName in package.json): verify the domain once with
mcp-publisher login dns --domain audiodelivery.net (add the printed TXT
record), confirm remotes[0].url in server.json points at the deployed URL,
then mcp-publisher publish.
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
- API docs: https://audiodeliverynetwork.com/docs/api
- OpenAPI spec: https://audiodeliverynetwork.com/openapi.json
- For-AI-agents guide: https://audiodeliverynetwork.com/for-ai-agents
الأسئلة الشائعة
ما هو Audio Delivery Network؟
AI-manageable audio CDN: upload, transcode, normalize, stream & deliver audio, plus grounded docs.
كيف أثبّت Audio Delivery Network؟
يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http audio-delivery-network 'https://mcp.audiodelivery.net/mcp' --header 'Authorization: <Bring your own AudioDN API key as a bearer token: '\''Bearer adn_...'\''. Optional — knowledge/doc tools work with no key; live API tools activate when a key is sent.>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج Audio Delivery Network إلى مفتاح API؟
نعم. يتطلب ADN_API_KEY, Authorization، وتضبطها في إعداداته.
هل Audio Delivery Network مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون Audio Delivery Network؟
ينشره audiodn. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.