Nass MCP
Provides tools for transcribing YouTube videos, including extracting captions or downloading audio for local ASR, checking job status, retrieving transcripts with timestamps, searching within transcripts, exporting results, and extracting audio excerpts.
Click on "Deploy 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., "@Nass MCP transcribe this YouTube video: https://youtu.be/dQw4w9WgXcQ"
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.
نَصّ — Nass MCP
خادم MCP مجاني ومفتوح المصدر لتفريغ مقاطع YouTube، مع الرجوع إلى الصوت الفعلي إذا لم تتوفر subtitles/captions، ومن دون الاعتماد على API مدفوعة.
الحالة: نسخة أولية مكتوبة ومختبرة اختبارات وحدة محلية، وليست خدمة إنترنت منشورة أو موصولة بحساب ChatGPT. اختبارات الشبكة الحقيقية تعتمد على بيئة التشغيل والوصول إلى YouTube. لا يمكن ضمان الوصول إلى جميع المقاطع.
المتطلبات
Python 3.11+،
ffmpegوffprobe، وDeno(مفضّل) أو Node حديث لدعم تحديات JavaScript الحديثة في yt-dlp. مع Node قد يلزم ضبط yt-dlp لتفعيله صراحةً. راجع دليل EJS.حاسوب يعمل باستمرار إذا رغبت في ربطه بـChatGPT عبر شبكة؛ لا حاجة لاستضافة تجارية أو دفع مقابل نموذج Whisper.
تنزيل النموذج للمرة الأولى يحتاج إنترنت ومساحة تخزين؛ بعد ذلك يتعرف Whisper محليًا على الملفات الصوتية، ولا يرسلها إلى طرف ثالث.
Related MCP server: YouTube Transcript MCP Server
التثبيت
# Ubuntu/Debian
sudo apt-get update && sudo apt-get install -y ffmpeg
# ثبّت Deno من مصدره الرسمي (الإصدارات المدعومة مذكورة في Wiki الخاصة بـyt-dlp).
python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
pip install -e '.[all]'
nass-doctor
nass-mcp # stdio; يطلقه MCP host تلقائيًا عادةللتجربة عبر HTTP محليًا:
NASS_TRANSPORT=http nass-mcp
# http://127.0.0.1:8000/mcpتنبيه أمني: لا تفتح المنفذ للإنترنت بدون نظام توثيق حقيقي (OAuth أو reverse proxy مع ضوابط وصول). HTTP الافتراضي محلي فقط. ربط ChatGPT يتطلب وسيلة وصول HTTPS آمنة وميزات متاحة لحسابك؛ لا يكفي نشر الشيفرة.
ربط MCP محلي بعميل يدعم stdio
استدعِ البرنامج التنفيذي nass-mcp من البيئة الافتراضية، أو ضعه في إعداد الخادم:
{
"mcpServers": {
"nass": {
"command": "/absolute/path/to/nass-mcp/.venv/bin/nass-mcp",
"env": {
"NASS_WHISPER_MODEL": "small",
"NASS_DATA_DIR": "/absolute/path/to/my-nass-data"
}
}
}
}الاستخدام
nass_health: فحص المكتبات وFFmpeg وبيئة JS ومُعرّفات المحركات.nass_start_transcription(video_url, language="ar", mode="audio"): تفريغ الكلام من الصوت مباشرة. بينماmode="auto"يفضل النصوص المتاحة توفيرًا للموارد، وmode="verify"يقارن مسارين مستقلين دون الدمج الآلي المضلل.nass_job_status(job_id): الاستعلام عن الحالة ومراحل النجاح والفشل.nass_get_transcript(job_id, start_segment, count): قراءة النص مقطعًا مقطعًا مع التوقيت حتى للفيديوهات الطويلة.nass_start_audio_download(video_url): جلب الصوت فعليًا بمهمة خلفية قابلة للاستعلام، أوnass_download_original_audio(video_url)للمقاطع القصيرة. الملف الصوتي على جهاز تشغيل الخادم، وليس هاتف المستخدم.nass_audio_excerpt(job_id, start_seconds, duration_seconds): إعادة مقطع صوتي حقيقي يصل إلى 45 ثانية ككتلة صوت MCP للمراجعة السمعية؛ ويعتمد سماعه داخل الواجهة على دعم العميل لمحتوى الصوت.nass_export(job_id, output_format="srt"/"txt"/"json"): تصدير النتيجة محليًا.nass_search_transcript(job_id, query, max_matches=15): البحث داخل التفريغ عن الأقوال الموثقة زمنيًا، مع رابط فيديو يبدأ عند الموضع نفسه. البحث يتسامح مع التشكيل وبعض صيغ الألف والـ«ى»، ولا يغير النص الأصلي.nass_start_local_file(filename): تفريغ ملف صوتي وضعته أنت تحتNASS_MEDIA_DIR، عند تعذر استخراج الفيديو عبر الإنترنت.
الإضافات المستقلة من المشاريع غير المشهورة (v0.2.0)
اكتُشفت مشروعات قليلة الشهرة قابلة لإضافات مفيدة فعلًا. أضيفت ثلاث وصلات اختيارية، ويستمر الخادم في العمل دون تثبيتها:
Go
yt-transcriptللحصول على captions عبر Android/IOS InnerTube وwatch-page. التثبيت (Go 1.23+):go install github.com/rapha30/yt-youtube-transcript/cmd/yt-transcript@latestGo
youtubedrلمصدر صوت مستقل. التثبيت (تتطلب نسخته الحالية Go 1.26+):go install github.com/kkdai/youtube/v2/cmd/youtubedr@latestNode
youtubei.jsلاستخراج الصوت مع حد حجم مفعّل أثناء البث. بعد تثبيتnass-mcp:
mkdir -p "$HOME/.local/share/nass-youtubejs"
python -c 'from pathlib import Path; import nass_mcp; print(Path(nass_mcp.__file__).parent / "_node" / "youtubejs_audio.mjs")'
# انسخ ملف youtubejs_audio.mjs المشار إليه إلى المجلد أعلاه، ثم نفّذ:
cd "$HOME/.local/share/nass-youtubejs"
npm install --no-audit --no-fund youtubei.js
export NASS_YOUTUBEJS_SCRIPT="$HOME/.local/share/nass-youtubejs/youtubejs_audio.mjs"هذا التثبيت الاختياري يجب أن يتم على جهاز الخادم؛ لا يتم تحميل حزم Node تلقائيًا أثناء طلب MCP.
nass_health يعرض توافر ملفات المحولات، وباقي البرامج؛ وقد يظل فشل الاتصال بالمصدر ممكنًا بعد تثبيتها.
تفاصيل الدراسة والمشروعات التي تقرر عدم دمجها: docs/NICHE_RADAR.md.
مصادر متعددة بدون اشتراكات
المرحلة | المسار | النوع | ملاحظات |
captions |
| مجاني، لا مفتاح | قد يتعطل عند حجب IP أو توقف واجهة المصدر |
captions |
| مجاني | مصدر برمجي ثانٍ، لكن يعتمد كذلك على بيانات يوتيوب |
captions |
| مجاني اختياري | بدائل InnerTube مستقلة داخل الأداة |
audio |
| مجاني | يحتاج تحديث وإعداد EJS/بيئة JS وفقًا ليوتيوب |
audio |
| مجاني | عميل بديل، ليس ضمانًا لتجاوز جميع أنواع المنع |
audio |
| مجاني | مكتبة استخراج مستقلة برمجيًا؛ نفس الموقع مصدره |
audio |
| مجاني اختياري | JavaScript InnerTube؛ يحتاج Node وحزمة npm محلية |
audio |
| مجاني اختياري | Go؛ يختار itag 140 الصوتي إن كان موجودًا |
cache | إعادة استخدام الصوت والنص السابقين | مجاني ومحلي | يعمل حتى إذا تعطل يوتيوب بعد الحصول على نسخة صالحة |
ASR |
| مجاني ومحلي | الافتراضي small/CPU int8؛ يدعم العربية |
ASR |
| مجاني ومحلي | نسخة بديلة تتطلب binary وملف نموذج محلي |
ASR |
| اختياري بخطة مجانية محدودة | ليس مطلوبًا للتشغيل المجاني الدائم؛ يحتاج مفتاحًا وموافقة صريحة على رفع الصوت |
لا نستعين بمواقع proxy مجهولة، ولا نتجاوز إعدادات خصوصية الفيديو، ولا نستخدم بيانات دخول أو رموز جلسات أو نسخًا غير مصرح بها.
إعدادات مفيدة
export NASS_WHISPER_MODEL=small # medium/large-v3 متاحة، لكنها تحتاج قدرات أعلى
export NASS_INITIAL_PROMPT='حديث، إسناد، رواية، الصحابة، الإمام البخاري، الإمام مسلم'
export NASS_DEVICE=cpu
export NASS_COMPUTE_TYPE=int8
export NASS_WORKERS=1
export NASS_JOB_QUEUE_LIMIT=8 # حصة لكل عملية تشغيل لمنع تراكم المهام
export NASS_PROVIDER_TIMEOUT=600
export NASS_AUDIO_CACHE=1
export NASS_AUDIO_CACHE_LIMIT_BYTES=3221225472
export NASS_CAPTION_CACHE_SECONDS=86400
export NASS_MAX_DURATION_SEC=14400
export NASS_MEDIA_DIR="$HOME/nass-input"
# بديل Whisper.cpp إذا ثبتته وأنزلت نموذجه:
export NASS_WHISPER_CPP_BIN=/path/to/whisper-cli
export NASS_WHISPER_CPP_MODEL=/path/to/ggml-model.bin
# بديل سحابي مجاني *اختياري* وخاضع للحصص والخصوصية:
export NASS_ALLOW_EXTERNAL_ASR=1
export GROQ_API_KEY='YOUR_KEY'احتياطات منهجية للباحث الشرعي: تخريج الأحاديث ومناقشة الأقوال لا يجوز بناؤهما على التفريغ الآلي وحده. يجب الإبقاء على الرابط والتوقيت، والتمييز بين caption يدوي، وcaption تلقائي، وASR من الصوت، والتحقق من الألفاظ المشكلة عبر سماع المقطع.
تجربة حيّة عند توفر الإنترنت
PYTHONPATH=src python scripts/live_smoke.py 'https://youtu.be/QxC5E44QoZY' --mode audio --language arهذا الأمر لم يُختبر ضد YouTube من داخل بيئة تأليف المشروع بسبب غياب حزم الاعتماد والوصول المباشر. نجاح الاختبارات المحلية لا يُغني عن اختبار التشغيل الحيّ. تُحفظ النتيجة، بما فيها سجل إخفاق كل مزوّد، بصيغة JSON.
لدمج الخادم مع «الباحث الشرعي» انظر integration/RESEARCHER_INTEGRATION.md.
تطوير لاحق
تحميل وتشغيل واقعي على بيئة متصلة مع تقارير لروابط حقيقية متنوعة (منها فيديوهات عربية بلا captions)، وتحديث مستمر عند تغييرات YouTube.
حماية HTTP بOAuth/HTTPS ودمج رسمي مع حساب المستخدم حيث تسمح سياسات المنتج.
تخزين مؤقت مع حصص وإيقاف للمهام واختبارات تكامل، وواجهة لعرض مقارنة النصوص مع الصوت. حُدِّد عدد المهام المنتظرة في v0.2.0، لكن إلغاء المهام وإدارة التخزين عبر عمليات متعددة لم يُنفذا بعد.
اختبارات الإصدار 0.2.1
pip install -e '.[test]'
pytest -qاجتاز الإصدار 39 اختبارًا محليًا (35 اختبارًا سابقًا وأربعة اختبارات تشغيلية جديدة) تشمل إخفاق مزودَي captions ونجاح الثالث، وإخفاق أربعة مسارات صوتية ونجاح الخامس، ورفض ملف فيديو لا يحوي صوتًا. البيئة التي أُعدّ فيها هذا الإصدار لم تتمكن من استخدام DNS أو تنزيل بيانات YouTube؛ لذلك لا يُدّعى إجراء اختبار حيّ.
حدود معروفة
فيديوهات YouTube المحجوبة، أو التي تحتاج موافقات حقوق/تسجيل دخول، قد تفشل جميع طرق الصوت معها؛ استخدم حينها ملفًا تملكه أو لديك إذن باستخدامه.
الموديلات الكبيرة مكلفة حاسوبيًا وإن كانت مجانية ماليًا. أول تشغيل قد يحمّل وزن النموذج.
الفشل المتعدد في حال جميع المسارات تعتمد على منع مشترك (مثل IP) لا يُحل بمجرد زيادة عدد المكتبات.
الـMCP يعمل الآن داخل بيئة عملية واحدة؛ قاعدة المهام مخزنة ولكن المهام الجارية تحتاج إعادة إرسال بعد إعادة تشغيل الخدمة.
تقرير الاختبارات التشغيلية (20 أكتوبر 2026)
لم تنجح اختبارات YouTube الحية، ولم يبدأ خادم MCP الحقيقي، بسبب عدم توفر DNS
وغياب حزم mcp وyt-dlp وfaster-whisper في بيئة الفحص.
الاختبارات الناجحة تثبت مراحل FFmpeg/FFprobe وNode وJobStore مع مصدر صوت فعلي محلي،
لكن مصدر YouTube.js ومسار ASR في اختبارات التكامل جرى تمثيلهما بمزوّدات محلية تجريبية.
هذا لا يثبت دقة نموذج Whisper أو وصول المشروع الفعلي إلى YouTube.
أثناء المراجعة تم تصحيح مسار استيراد Audio حسب هيكلة MCP SDK v2
إلى mcp.server.mcpserver.utilities.types.
أعد الفحص بعد تثبيت جميع الاعتماديات والوصول للإنترنت بواسطة:
python scripts/operational_check.py --live \
--video 'https://youtu.be/QxC5E44QoZY' \
--output nass-operational-report.jsonالتفاصيل في docs/OPERATIONAL_TEST_2026-10-20.md والملف
docs/operational-report.json، مع نتائج محاولتي YouTube في docs/attempts-*.
Remote MCP gateway — Netlify (v0.3.0)
The repository now includes remote-netlify/ and a protected Python ASGI worker (nass_mcp.remote). This separates Netlify's lightweight, stateless HTTPS gateway from the actual multi-provider YouTube audio capture and Whisper execution on a Python host.
The gateway has no CPU-heavy ASR and cannot operate if the upstream host is offline. Source and installation notes: remote-netlify/README.md.
pip install -e '.[all,remote]'
export NASS_BACKEND_TOKEN="$(openssl rand -hex 32)" # set the same secret on Netlify
nass-backend # binds only to 127.0.0.1:8000Expose the worker via an authenticated HTTPS tunnel that preserves /mcp, then set Netlify's NASS_BACKEND_URL and NASS_BACKEND_TOKEN environment variables. A third, separate NASS_MCP_BEARER_TOKEN is the MCP client's authentication key. After deploying the Netlify code, the client connects to https://<site>.netlify.app/mcp.
Deployment status (2026-10-20): the Netlify project nass-mcp-remote was created in the linked account, but its code is not yet deployed and no permanent ASR worker has been provisioned. Do not treat the project URL as an operational MCP endpoint before deployment and real YouTube/audio testing.
Render Free backend experiment (v0.3.1)
Dockerfile and render.yaml are now present in the repository root. This is a
deployable proposal, not evidence of deployment. See
docs/RENDER_REMOTE_SETUP.md.
Render Free has 512 MiB RAM and 0.1 CPU. The preconfigured model is multilingual
Whisper tiny; larger Arabic ASR workloads can fail or run too slowly. No audio
transcription may be claimed complete until it has finished and been verified
against the source. The free worker is not durable across sleep/redeploy.
Available Tools
10 toolsnass_audio_excerptB
Return an audio Content block containing up to 45 seconds of actual spoken audio. Useful for directly checking critical quotations. Client audio support varies.
Inputs: job_id (required), start_seconds (required), duration_seconds.
nass_download_original_audioB
Obtain an actual audio media file on the MCP host, without using any captions. A synchronous download is appropriate for relatively short public videos. The returned file path is server-local and never implies user-side download.
Inputs: video_url (required).
nass_exportB
Export transcript as SRT, TXT or JSON on the server, for later sharing/analysis.
Inputs: job_id (required), output_format.
nass_get_transcriptC
Read long transcripts in reliable pages; next_segment identifies the next page.
Inputs: job_id (required), count, start_segment, with_timestamps.
nass_healthA
Inspect availability of independent caption/audio/ASR backends; never claim success from installation alone.
Inputs: no named parameters.
nass_job_statusB
Get queued/running/completed/failed status and the precise fallback attempt ledger.
Inputs: job_id (required).
nass_search_transcriptB
Search complete stored transcript; return precise quotes/timestamps and source links. Arabic diacritics and common alef variants are normalized for retrieval only.
Inputs: query (required), job_id (required), max_matches, context_segments.
nass_start_audio_downloadA
Queue an audio-only download without captions or speech recognition; poll job status. Better suited than the synchronous tool for long videos.
Inputs: video_url (required).
nass_start_local_fileC
Transcribe a media file inside configured NASS_MEDIA_DIR, bypassing YouTube completely.
Inputs: filename (required), language.
nass_start_transcriptionA
Queue a YouTube transcription. auto=prefer captions, audio=recognize original audio, captions=captions only, verify=run audio ASR independently and provide both for comparison. Always prefer 'audio' for no-captions videos or when verifying quoted speech.
Inputs: video_url (required), mode, language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools are clearly separated by action and resource: start transcription vs get/search/export transcript, YouTube source vs local file, transcript access vs audio access. The main overlap is nass_start_audio_download vs nass_download_original_audio, both audio-download paths differentiated mainly by async/sync and video length, so some misselection risk remains.
All tools use a consistent nass_ prefix and snake_case formatting. Most names follow verb_noun, but nass_export, nass_health, and nass_audio_excerpt are noun-only or objectless deviations, making the pattern slightly less uniform.
Ten tools is well within the appropriate range for a transcription/audio workflow. Each tool covers a distinct stage—job start, status polling, transcript retrieval/search/export, audio inspection/download, and backend health—without excessive surface area.
The surface covers the core lifecycle: starting YouTube or local-file transcription, checking job status, reading/searching/exporting transcripts, obtaining audio excerpts/downloads, and checking backend health. Minor gaps include no explicit job cancellation or transcript/job listing and management operations, which agents may need for longer workflows.
Related MCP Connectors
Transcripts of YouTube videos, channels, playlists and searches; AI transcription when no captions.
Transcripts of YouTube videos, playlists and channels with timestamps; SRT or WebVTT too.
Transcribe YouTube via Whisper. Summaries, chapters, semantic-search across your corpus.
Transcripts, translations, summaries, subtitles, and search for public YouTube videos.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables extraction and processing of YouTube video transcripts from individual videos, channels, and playlists. Supports transcript search, batch processing, multiple output formats (JSON, text, SRT, VTT), and bulk operations across multiple videos.1134 npm-
- AlicenseAqualityDmaintenanceEnables fetching, searching, and summarizing YouTube video transcripts with multi-language support.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables intelligent transcription of YouTube videos with automatic optimization for any video length, using local OpenAI Whisper processing and speaker diarization.-
- AlicenseNot gradedqualityCmaintenanceEnables local transcription of audio/video files and YouTube URLs, generation of SRT/VTT subtitles, and analysis of speech pacing and audience retention risk using faster-whisper.MIT