From c24023ac84daed8e631621e2845bc48438c78d4b Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 04:52:03 +0000 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f42d21d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config +FROM node:20-bullseye-slim + +# Install yt-dlp +RUN apt-get update \ + && apt-get install -y python3-pip python3 \ + && pip3 install yt-dlp \ + && rm -rf /var/lib/apt/lists/* + +# Create app directory and downloads dir +WORKDIR /app +RUN mkdir -p /root/Downloads + +# Copy package and source +COPY package.json package-lock.json tsconfig.json ./ +COPY src ./src + +# Install dependencies and build +RUN npm ci --ignore-scripts \ + && npm run prepare \ + && npm prune --production + +# Default command +ENTRYPOINT ["node", "lib/index.mjs"] From bd735fd451e74e8198dfe8a77c6de39d8de13c77 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 04:52:04 +0000 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..35b1990 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,12 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config + +startCommand: + type: stdio + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ command: 'node', args: ['lib/index.mjs'], env: {} }) + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + exampleConfig: {} From 5213de4232eae7b18478a59b9b50124a9b3437ae Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 04:52:05 +0000 Subject: [PATCH 3/3] Update README --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a465b20..d85a15b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # yt-dlp-mcp +[![smithery badge](https://smithery.ai/badge/@daniellopez-2/youtube-download)](https://smithery.ai/server/@daniellopez-2/youtube-download) An MCP server implementation that integrates with yt-dlp, providing video and audio content download capabilities (e.g. YouTube, Facebook, Tiktok, etc.) for LLMs. @@ -12,6 +13,14 @@ An MCP server implementation that integrates with yt-dlp, providing video and au ## Installation +### Installing via Smithery + +To install youtube-download for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@daniellopez-2/youtube-download): + +```bash +npx -y @smithery/cli install @daniellopez-2/youtube-download --client claude +``` + ### Prerequisites Install `yt-dlp` based on your operating system: @@ -120,4 +129,3 @@ MIT Dewei Yen -