2Sense
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., "@2Sense analyze this ad: https://example.com/sample-ad.mp4"
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.
ads-learnings — eyes & ears for Claude
Give Claude the ability to see and hear short-form video ads, so it can give grounded advice on (a) enhancing future content and (b) designing incrementality tests for a content/series format.
Claude is the brain. The pipeline only does perception, delivered as one MCP tool:
analyze_ad(source) ← MCP tool (CLI + Desktop app)
│ ingest → yt-dlp (URLs) → local mp4
│ ffmpeg → frames @ 3fps → Pillow contact sheets (labeled) + manifest (EYES)
│ ffmpeg → mono wav → Groq whisper-large-v3 → transcript + segments (EARS)
│ numpy → audio energy/rhythm: tempo, energy curve, onsets, dynamics (EARS+)
│ YAMNet → audio-event tags: music/speech/instruments/genre/SFX (EARS+)
▼
returns: [ text (timestamp legend + transcript), sheet image, sheet image, … ]
▼
Claude sees the sheets + reads the transcript → teardown + 2 deliverablesNo model runs on your Mac — locally it's just ffmpeg (bundled), yt-dlp, and Pillow,
managed by uv. The only hosted call is Whisper on Groq.
Where it's wired
The 2Sense MCP server exposes four tools, available in both surfaces:
analyze_ad(source, language="auto")— full eyes + ears: contact-sheet images, transcript, audio energy/rhythm profile, AND YAMNet audio-event tags.transcribe(path, language="auto")— speech transcript only (Groq Whisper).audio_profile(path)— music/energy signals (free numpy): tempo, energy curve, onsets.audio_events(path)— YAMNet tags (free, local): music/speech/instruments/genre/SFXa coarse timeline. No mood (happy/sad) — YAMNet covers events, not affect.
Surface | How | Tool namespace |
Claude Code (CLI + Code apps, any dir) | user-scope MCP in |
|
Claude Desktop app |
|
|
This repo (portable) | project | — |
Claude Code also gets the ad-learnings skill + ad-eyes sub-agent (symlinked into
~/.claude/) for the guided teardown workflow. The Desktop app uses the MCP tool directly.
Related MCP server: Video MCP Server
Setup
Prereq: uv. Then one command (idempotent — installs deps,
writes a local .mcp.json, wires the MCP into Claude Code + the Desktop app, links the
skill/agent, runs a health check):
bin/setupThen:
Paste your free Groq key into
.env→GROQ_API_KEY=...(get one)Restart Claude Code and the Claude Desktop app so
2Senseloads.Verify:
bin/ee doc --ping
Notes: the project pins Python 3.12 (TensorFlow/YAMNet). The first
audio_events/analyze_adcall downloads the ~15 MB YAMNet model once (then cached)..mcp.jsonis generated bybin/setup(gitignored — see.mcp.json.example). Disable the audio layers inconfig.toml([audio] profile,yamnet) for speech-only ears.
Use
Claude Code or Desktop: "analyze this ad: " → Claude calls
analyze_ad, sees the sheets, reads the transcript, and produces the analysis.CLI prep only (no LLM):
bin/ee prep "<path-or-url>"→data/out/<slug>/.
Output per video: frames/, sheets/, manifest.json, audio.wav, prep.json
(+ ears.json when transcribed).
Config
Edit config.toml: fps, max_frames, sheet grid (cols/rows), Whisper model,
language.
Pieces
src/eyesears/— prep CLI (ee) + 2Sense MCP (ee-ears:analyze_ad,transcribe,audio_profile)src/eyesears/audio_features.py— free numpy music/energy analysissrc/eyesears/yamnet.py— free YAMNet audio-event tagging (TensorFlow, lazy-loaded).claude/agents/ad-eyes.md— vision sub-agent (Claude Code batch optimization).claude/skills/ad-learnings/— orchestration skillbin/setup— one-time installer/wiring (generates.mcp.json, registers the MCP, links skill/agent).mcp.json.example— template;bin/setupwrites the real.mcp.json(gitignored) with local paths
License
MIT — see LICENSE.
Available Tools
4 toolsanalyze_adA
Give Claude EYES + EARS on a short-form video ad.
Runs the local prep pipeline (download if a URL, sample frames at the configured
fps, tile them into labeled contact sheets, extract audio), transcribes the audio,
and returns: a text block (timestamp legend + transcript) followed by the contact
sheet IMAGES. Look at the images and read the transcript to analyze the ad.
Args:
source: A local video path OR a TikTok / Reels / YouTube / Meta URL.
language: "auto", or an ISO code like "fr" / "en" to force transcription language.
with_audio: set false to skip transcription (eyes only).
Returns: [text, image, image, ...] — contact sheets each have per-cell timestamps
burned into the top-left as `t=SECONDS`, matching the legend in the text block.
Inputs: source (required), language, with_audio.
audio_eventsA
Tag audio events with YAMNet (free, local): Music, Speech, instruments, genres, SFX (whoosh/beep/...). Works on an audio OR video file.
Returns {top:[{label,score}], rollup:{Music,Speech,SFX}, timeline:[{start,end,label}]}.
No mood (happy/sad) — YAMNet covers events/instruments/genres, not affect.
Inputs: path (required), top_k.
audio_profileA
Analyze music/energy/rhythm of an audio OR video file (free, local, numpy-based).
Returns tempo (BPM), energy curve, onset 'hits' (useful vs. visual cuts), loudness dynamics, brightness, and a music-vs-speech estimate. No genre/mood/song-ID.
Inputs: path (required).
transcribeA
Transcribe speech from a local audio OR video file using Groq Whisper.
Args:
path: Absolute path to an audio or video file (video audio is auto-extracted).
language: "auto" to detect, or an ISO code like "fr" / "en" to force.
Returns: {text, language, duration, segments:[{start,end,text}]}.
Inputs: path (required), language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Tools have largely distinct purposes: analyze_ad combines visual and audio ad analysis, audio_events focuses on event detection, audio_profile on musical attributes, and transcribe on speech transcription. Some overlap exists (analyze_ad includes transcription), but descriptions clarify boundaries.
Naming is inconsistent: analyze_ad uses verb_noun with underscore, audio_events and audio_profile use noun_noun, and transcribe is a single verb. No consistent pattern emerges.
With 4 tools, the set is slightly lean but covers essential analysis tasks for audio/video. Each tool serves a clear purpose, though there is room for additional utilities.
The tool surface covers core ad analysis (visual frames, transcription, audio events, music profiling). Missing features like emotional analysis or speaker identification are minor gaps not critical for the primary use case.
Maintenance
Related MCP Connectors
Multimodal video analysis MCP — transcription, vision, and OCR for any video URL.
Publish and schedule videos to TikTok, YouTube Shorts, Instagram, Facebook, LinkedIn, Pinterest, Bluesky, Threads and X from Claude, Cursor or any MCP client. Upload once, post everywhere, track views in unified analytics, and retry failed posts. Official platform APIs only, free plan available. Docs: https://docs.multi-upload-tool.com/mcp
Creative intelligence for Meta, TikTok, Google Ads and Amazon DSP, in Claude and other MCP clients.
Create HD vertical videos with Claude and auto-post them to TikTok, YouTube Shorts and Reels.
Related MCP Servers
- FlicenseBqualityDmaintenanceMCP server that enables video analysis capabilities to Claude, including frame extraction, scene detection, and video metadata retrieval.8-
- FlicenseNot gradedqualityDmaintenanceBridges Claude and video content by extracting keyframes and transcribing audio, enabling Claude to analyze video files.-

Heista MCPofficial
AlicenseNot gradedqualityDmaintenanceDecode any video ad, load brand information, and generate ad scripts from inside MCP-compatible clients like Claude and ChatGPT.MIT- AlicenseAqualityCmaintenanceEnables AI agents to analyze public Reels, TikTok, and YouTube Shorts by extracting timestamped transcripts, visual understanding, and searchable video maps, then query specific moments via MCP tools.82MIT