Ocular Audio Mcp

io.github.RayAKaan由 GitHub 帳號 RayAKaan 發布v1.1.2更新於 Oct 24, 2026

MCP server for video transcripts, screenshots, and OCR on YouTube and web videos.

概覽

AI 產生的概覽

本機 MCP 伺服器,把 YouTube 與網頁影片轉成帶時間戳的字幕、截圖、OCR 文字與可檢索證據,供 AI 助理使用。

可以做什麼
  • 取得與檢視媒體:為網址、本機檔案與串流取得字幕、中繼資料、章節、時間軸與來源資訊
  • 檢索證據:對帶時間戳的字幕、畫面與 OCR 紀錄做詞彙、語意與混合檢索
  • 檢視畫面:擷取螢幕截圖、精確影格、連拍影格與裁切圖,建立視覺索引並檢索
  • 分析時刻:把同一時間點的語音、畫面與螢幕文字對齊
  • 批次與比較:分析多個來源、跨來源檢索並比較影片
  • 規劃並執行有界線的調查,並查看健康、稽核、快取與能力狀態
適用情境
適合需要依據影片內容回答的場合,例如講座、產品示範、競品或技術演講、訪談與介面導覽,或需要在多支影片之間比對證據時。
執行需求
透過 npm 套件以 stdio 在本機執行(需 Node.js 18+),同時還需要 Python 3.11+、FFmpeg、OpenCV 與 faster-whisper;OCR 可選用 Tesseract。存取遠端來源需要網路。未宣告 API 金鑰;受限媒體可使用維運方自備的 cookies.txt。
安裝前請注意
它會在本機下載並處理遠端媒體,CPU 與磁碟用量較高,深度模式下耗時較長。用於需登入來源的 cookies.txt 含工作階段憑證,切勿提交或外流。清理快取的工具會刪除已存字幕、清單、視覺索引與影格檔案。README 說明 npm 已發布版本 1.2.1 落後於原始碼版本 1.3.0。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ocular Audio Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

OcularAudio MCP

Universal local-first media intelligence for AI agents.

OcularAudio lets MCP-compatible AI systems watch, listen to, search, inspect, compare, and reason over media. It turns URLs, streams, and local media into reusable timestamped evidence: metadata, transcripts, frames, OCR, retrieval results, multimodal moments, and cross-video intelligence.

v1.3.0 · MIT

Product

What it does

  • Universal media intake: web URLs, direct media, local files, live/stream sources, and a broad set of social, video, audio and archive platforms.
  • Speech understanding: timestamped captions with local Whisper fallback when captions are unavailable.
  • Visual understanding: intelligent screenshots, exact frames, frame bursts, crops, visual indexing and perceptual similarity.
  • On-screen text: optional Tesseract OCR produces searchable visual text evidence.
  • Evidence search: timestamp-aware lexical, semantic and hybrid retrieval over stable, provenance-preserving canonical evidence records.
  • Multimodal analysis: aligns transcript, visual and OCR evidence around the same moments.
  • Batch intelligence: process multiple sources, search across them, and generate cross-video comparisons with failure isolation.
  • Agentic execution: turn analysis requests into bounded plans with retries, timeouts, audit records and health reporting.
  • Capability modes: Lite, Intelligence, Deep and Auto control processing depth and response richness.
  • Local caching: reuse processed evidence and manage cache state through CLI or MCP.
  • Operational awareness: capabilities, health, readiness, security state, metrics and the full protocol contract are machine-readable.
  • MCP interoperability: tools, resources and prompts over stdio or Streamable HTTP.
  • Production deployment: bearer-token protection, host/origin controls, Docker deployment, persistent cache and readiness checks.

Best use cases

Research and lecture analysis · product demonstrations · competitor analysis · interviews · technical talks · UI walkthroughs · multi-video comparison · evidence-grounded AI investigation.

Capability matrix

CapabilityUser outcome
Universal sourcesAnalyze URLs, files and streams through one interface
Transcript evidenceFind exactly when something was said
Visual evidenceInspect what was shown at a timestamp
OCRSearch text visible inside video frames
Hybrid retrievalCombine speech and visual evidence
Multimodal momentsUnderstand speech and visuals together
Batch analysisInvestigate collections of videos
Cross-video comparisonCompare evidence across sources
Agentic workflowsExecute bounded evidence investigations
Capability modesAuto-select or enforce Lite, Intelligence, and Deep execution budgets
CacheMake repeated analysis faster
MCP promptsStart common investigation workflows
MCP resourcesGive hosts operational context
HTTP deploymentRun as a protected network service

Canonical evidence architecture

All source artifacts are normalized into one local manifest per source. Evidence records have stable content-derived IDs, modality labels, timestamp bounds, content hashes, provenance pointers, and metadata. Transcript search, timelines, moment inspection, and hybrid retrieval share the same canonical IDs; OCR and visual-frame records are indexed alongside transcript evidence. Manifests are written atomically, validated on read, deduplicated by ID, and refreshed from the existing transcript and visual caches without requiring a migration or a database. Clearing a source removes its transcript, canonical manifest, visual index, and frame artifacts together. Manifest metadata intentionally stores a bounded summary rather than the source URL or credentials.

Four-level intelligence engine

Every request is resolved through one deterministic policy engine. Auto resolves to Lite, Intelligence, or Deep based on query intent, requested features, source count, media duration, and an optional time budget. The decision is returned as machine-readable metadata with explicit limits, disabled features, capability gaps, and adjustments.

ModeEvidenceVisual framesDefault samplingRuntime ceilingSourcesBehavior
Lite8830 s45 s1Transcript/metadata first; OCR, multimodal and batch are disabled
Intelligence242410 s180 s10Balanced retrieval, visual/OCR and multimodal analysis
Deep64643 s600 s32Expanded evidence and multi-step investigation
AutoPolicy-selectedPolicy-selectedPolicy-selectedPolicy-selectedPolicy-selectedResolves to one of the three execution modes

Modes enforce evidence caps, frame limits, source limits, retry counts, concurrency, sampling intervals, and runtime ceilings. Missing OpenCV, FFmpeg, or Tesseract is reported as a capability gap; optional unavailable features are disabled rather than represented as successful. Explicit source-limit violations fail with a clear error instead of silently dropping sources. Source coverage remains shared across modes.

The CLI's existing --mode flag now reaches the Python runtime. Use --budget-seconds to impose a caller-specified runtime ceiling (0.001-900 seconds). MCP planning, agentic execution, hybrid search, visual indexing, multimodal analysis, and batch analysis expose the same decision contract. Use --mode deep for comprehensive evidence or --mode lite for a fast overview.

Quick start

NPM / MCP

Release status: this repository contains source version 1.3.0, but that version is not yet published to npm. The latest published package is 1.2.1, so the npx examples below install 1.2.1 until a separate 1.3.0 release is authorized and published. To test the current checkout, clone the repository, install the Python dependencies from requirements.txt, then run node bin/cli.js from the checkout.

npx -y ocular-audio-mcp

Local MCP hosts can launch the same command. Example:

{  "mcpServers": {    "ocular-audio": {      "command": "npx",      "args": ["-y", "ocular-audio-mcp"]    }  }}

Claude Code:

claude mcp add ocular-audio -- npx -y ocular-audio-mcp

Codex CLI:

codex mcp add ocular-audio -- npx -y ocular-audio-mcp

Direct CLI

npx ocular-audio "https://www.youtube.com/watch?v=dQw4w9WgXcQ"npx ocular-audio --checknpx ocular-audio --json "URL"npx ocular-audio --visual-index --ocr "URL"npx ocular-audio --multimodal-search "pricing" "URL"npx ocular-audio --plan "Find the pricing discussion and inspect its visual evidence"npx ocular-audio --agentic "Find every pricing discussion and inspect the relevant slides"

Technical overview

MCP host / agent        |MCP tools + prompts + resources        |Universal source resolver        |Evidence: metadata + transcript + timestamps + chapters      /   |   \visual  OCR  retrieval      \   |   /   multimodal moments         |   batch intelligence         |   agentic execution         |   operations / audit / readiness

Core modules

  • media_resolver.py + universal_sources.py: source classification, platform families, streams, local media and analysis policy.
  • evidence_index.py: timestamped evidence segmentation, chapter association and deterministic retrieval.
  • evidence_store.py: canonical transcript/chapter/metadata/visual/OCR records, stable evidence IDs, provenance, integrity-checked manifests, atomic persistence and lifecycle cleanup.
  • visual_index.py: frame sampling, bursts, crops, perceptual hashes, descriptors and OCR evidence.
  • semantic_index.py: local TF-IDF/lexical/semantic and hybrid retrieval.
  • multimodal_index.py: transcript/visual/OCR timestamp alignment and ranking.
  • batch_index.py: bounded multi-source execution, persistence, search and comparison.
  • agentic_index.py: deterministic planning, retries, timeouts, audit records and execution health.
  • capability_modes.py: Lite, Intelligence, Deep and Auto policy resolution.
  • protocol_contract.py: machine-readable MCP interoperability contract.
  • deployment_security.py: controlled HTTP authentication and transport security.
  • runtime_ops.py: bounded metrics, latency observations, readiness and audit retention.

MCP surface

33 tools

Media/evidence: get_ocular_audio_transcript, get_ocular_audio_video_context, search_ocular_audio_video, get_ocular_audio_video_timeline, inspect_ocular_audio_moment, query_ocular_audio_evidence, get_ocular_audio_metadata, get_ocular_audio_chapters, inspect_ocular_audio_source, get_ocular_audio_capabilities.

Visual/OCR: get_ocular_audio_video_screenshots, index_ocular_audio_video_visuals, search_ocular_audio_visuals, get_ocular_audio_video_frame, get_ocular_audio_video_frame_burst, crop_ocular_audio_video_frame.

Retrieval/multimodal: search_ocular_audio_hybrid, analyze_ocular_audio_multimodal, inspect_ocular_audio_multimodal_moment, search_ocular_audio_cache.

Batch: analyze_ocular_audio_batch, search_ocular_audio_videos, compare_ocular_audio_videos, get_ocular_audio_batch, list_ocular_audio_batches.

Agentic/operations: plan_ocular_audio_analysis, run_ocular_audio_analysis, get_ocular_audio_health, get_ocular_audio_audit, get_ocular_audio_contract, get_ocular_audio_identity.

Cache: list_ocular_audio_cache, clear_ocular_audio_cache.

7 resources

  • ocularaudio://capabilities
  • ocularaudio://modes
  • ocularaudio://health
  • ocularaudio://contract
  • ocularaudio://security
  • ocularaudio://readiness
  • ocularaudio://metrics

4 prompts

  • inspect_video
  • search_video_evidence
  • review_visual_evidence
  • compare_videos

Deployment

Local stdio

stdio is the default local MCP transport and requires no HTTP authentication.

Streamable HTTP

npx ocular-audio --transport streamable-http --host 127.0.0.1 --port 8000

The MCP endpoint is /mcp. For network exposure, configure authentication, real issuer/resource URLs, allowed hosts and allowed origins. Do not expose an unauthenticated instance to an untrusted network.

Docker

cp .env.example .envdocker compose -f docker/docker-compose.yml up --build -d

The supplied deployment uses Python 3.11, FFmpeg, a persistent cache volume, a read-only container filesystem, dropped capabilities, no-new-privileges, restart policy and a healthcheck.

For internet-facing deployments, use TLS and an organization identity provider. The built-in static bearer verifier is intended for controlled deployments and can be replaced by JWT validation or RFC 7662 introspection.

Runtime requirements

  • Python 3.11+ recommended for the release environment.
  • Node.js 18+ for the NPM CLI.
  • FFmpeg for media processing.
  • OpenCV for visual processing.
  • faster-whisper for local transcription fallback.
  • Tesseract is optional for OCR.
  • Network access is required for remote sources.

The NPM package does not hide native Python/system prerequisites; OcularAudio is a local media-processing server rather than a hosted API.

Cookies and restricted media

Operator-supplied cookies.txt can be used for sources that require an authenticated browser session. Never commit cookies, access tokens or credentials.

Release v1.3.0

npm installnpm run checknpm pack

This creates ocular-audio-mcp-1.3.0.tgz. Inspect it before publishing:

npm publish ocular-audio-mcp-1.3.0.tgz --access public

See RELEASE_v1.3.0.md. A manual GitHub Actions workflow can also build and upload the exact tarball as an artifact.

Validation

python -m unittest discover -s tests -vnode --check bin/cli.jsnpm run check

CI additionally validates the MCP SDK surface, tool/resource/prompt registration, Streamable HTTP authorization behavior, compilation, CLI syntax and package metadata.

Design principles

  • Local-first: no mandatory cloud inference API.
  • Evidence-first: preserve timestamps and source evidence.
  • Composable: each analysis layer builds on the previous evidence layer.
  • Bounded: steps, retries, concurrency, metrics cardinality and audit retention have explicit limits.
  • MCP-native: tools, resources and prompts are protocol primitives.
  • Deterministic infrastructure: OcularAudio provides execution/evidence primitives while the host remains responsible for model-level reasoning.

License

MIT. See LICENSE.

來源:README.md,提交 b856c6d

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分