social-knowledge-base
Turn social-media creators' videos into a searchable, curated knowledge base — Next.js download/manage app + GPU transcription (faster-whisper) + RAG
Install / Use
claude mcp add guimatheus92 -- npx -y github:guimatheus92/social-knowledge-baseIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of social-knowledge-base
social-knowledge-base scores 78/100 on our quality scale, 798th of 961 AI & Machine Learning skills we index.
Its MCP Server is 10 KB long, well organised into 22 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 95/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
social-knowledge-base compared with similar skills
All 4 of these similar skills score higher than social-knowledge-base; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| social-knowledge-base (this skill)by guimatheus92 | 78 | 10 | 4mo ago | MCP Server |
| claude-memby thedotmack | 100 | 101.0k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 97.7k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 86.5k | 3d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 75.4k | today | CLAUDE.md |
Frequently asked questions
- How do I install social-knowledge-base?
- Run
claude mcp add guimatheus92 -- npx -y github:guimatheus92/social-knowledge-base. The install tabs above show the steps for each supported agent. - Which AI agents does social-knowledge-base work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is social-knowledge-base safe to use?
- It is MIT-licensed and scores 95/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is social-knowledge-base still maintained?
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubTurns a creator's videos (Instagram today; TikTok/YouTube in progress) into a markdown knowledge base: an LLM watches (frames + OCR) and listens (transcription) to each video and writes down what it learned — for many videos, in a resumable way. The UI is bilingual (PT/EN).
Two engines make it work. gallery-dl (with
yt-dlp+ffmpeg) does the downloading — it's the library that actually pulls every Reel, Story, and Highlight from a public profile, authenticated by your browser cookies. Then themcp-video-analyzerMCP does the reading — transcript + frames + OCR + timeline. Both are required (build them once — see Setup). The cookies are a credential — see Security & cookies.
Market check: no open-source tool does the full flow (download a whole account incl. Highlights → watch + listen → knowledge base). The existing ones only transcribe one reel's audio at a time.
🚀 Quick start (run the app)
Docker (recommended — runs anywhere, nothing to install):
mkdir -p data && cp /path/to/cookies.txt data/cookies.txt # cookies from a THROWAWAY account
docker compose up --build # → http://localhost:3000
The image bundles Node 24 + Python + gallery-dl + yt-dlp + ffmpeg; the app calls those CLIs internally. The ./data volume persists downloads/ and the SQLite manifests on the host; the cookies.txt is auto-detected by the UI. GPU (optional): uncomment gpus: all in docker-compose.yml (needs the NVIDIA Container Toolkit).
Local (needs Node 24):
cd app && npm install && npm run dev # → http://localhost:3000
In the app: point to your cookies.txt, add a profile (or paste a video link → downloads just that one) and hit Play (live progress). Toggle PT/EN at the top. The transcription/notes (the knowledge layer) run outside the UI — see below.
How it works
- Download —
scripts/download_instagram.py(gallery-dl, authenticated by a browsercookies.txt) downloads the videos todownloads/<profile>/<tab>/. (Or via the app inapp/.) - Transcription (GPU) —
scripts/transcribe_gpu.pytranscribes in bulk with faster-whispermediumon CUDA (~16–24× real time) and writes.vtt/.txt/.jsonsidecars per video. It auto-detects the GPU and falls back to CPU when there isn't one. Resumable. - Notes — Claude Code (any capable LLM; Claude Opus recommended), via
prompts/build-notes.md, processes one video at a time (reusing the transcript via.vtt+ frames/OCR through the MCP) and writesnotes/<profile>/videos/<video>.md. The note language is configurable (default English) — see Note language. - Overview + RAG —
prompts/synthesize-overview.mdgeneratesnotes/<profile>/OVERVIEW.mdby theme;scripts/index_transcripts.py+scripts/index_notes.py+scripts/query.pyprovide search (the library is searchable with the transcription alone).
Setup
# 1. Python deps (download + GPU transcription + RAG)
pip install -r requirements.txt
# GPU (CUDA 12.8+, e.g. RTX 5060): pip install nvidia-cublas-cu12 nvidia-cudnn-cu12 nvidia-cuda-nvrtc-cu12 nvidia-cuda-runtime-cu12
# 2. ffmpeg — required for DOWNLOAD (yt-dlp merges video+audio; without it videos come out muted)
winget install Gyan.FFmpeg
# 3. Build the video-reading MCP (required for the notes phase)
cd ../mcp-video-analyzer && npm run build && cd -
# 4. Export cookies.txt from a logged-in IG session (use a THROWAWAY account)
# Browser -> "Get cookies.txt LOCALLY" extension -> Export (Netscape format). Save it outside the repo.
instaloader was abandoned: its web GraphQL endpoint returns
401 "Please wait a few minutes"since ~Jan/2025, on any account/IP. gallery-dl uses the browser cookies (the mobile API route, which IG still accepts).
.mcp.json points Claude Code at the local MCP build (v0.5.0), with WHISPER_MODEL/WHISPER_PROMPT (glossary), WHISPER_BIN and MCP_WRITE_SIDECARS=1. The transcription language is auto-detected per video (set a fixed WHISPER_LANGUAGE only to force one). Bulk transcription, however, runs on the GPU via transcribe_gpu.py; the MCP reuses those .vtts and focuses on frames/OCR.
Windows:
pipinstallswhisper.exeinto Python'sScripts/folder, usually not on the PATH Claude Code inherits — so.mcp.jsonsetsWHISPER_BINto the full path. Confirm yours withpython -c "import os,sys;print(os.path.join(os.path.dirname(sys.executable),'Scripts','whisper.exe'))". The MCP doesn't need system ffmpeg (it uses the embeddedffmpeg-static); the download (gallery-dl/yt-dlp) does (Setup step 2), otherwise videos come out with no audio.
Usage (CLI)
# 1) Download all of a profile's videos (incl. Highlights)
python scripts/download_instagram.py <profile> --cookies C:\path\ig_cookies.txt
# 2) Transcribe in bulk (resumable) + index for search
python scripts/transcribe_gpu.py <profile>
python scripts/index_transcripts.py <profile>
# 3) Generate notes: open Claude Code IN THIS directory and run prompts/build-notes.md
# (one video at a time; use /loop for a batch)
# 4) Theme overview (in Claude Code): prompts/synthesize-overview.md -> notes/<profile>/OVERVIEW.md
# 5) Search / RAG
python scripts/index_notes.py
python scripts/query.py "what did I learn about <theme>?"
App (UI) — app/
A web app (Next.js 16 + TypeScript + Tailwind 4 + shadcn/ui) in app/ that gives the download a UI — a visual alternative to the CLI:
cd app && npm install && npm run dev # → http://localhost:3000
npm run test # Vitest (engine/parsers)
- Single app (no Python backend): Node calls
gallery-dl/yt-dlp/ffmpegviachild_process. Runs as a Node server (next dev/next start, node runtime). - What works: add multiple profiles; download a single video by link (the owner profile is created automatically); choose media (image/video); Play → live progress (SSE) with size/time; native Windows folder picker; auto-detected cookies; library (thumbnail grid + search/filters/sort, opens in the system player) with select-all, bulk delete, and "free up space" — delete the video but keep the note as a readable note-only item, re-downloadable on demand; per-profile categories + a category filter; note generation via Claude Code (per video + per profile, language picker, live progress); LLM reading config (Whisper model/language/detail/OCR → written to
.mcp.json); disk management; tooltips and confirmation on sensitive actions. - Bilingual UI (PT/EN) — language toggle at the top (lightweight i18n, no extra dependency).
- Multi-network: profiles are grouped under their network; a
SourceProviderabstraction (Instagram + TikTok; YouTube via yt-dlp in progress) keeps the knowledge pipeline network-agnostic. - Theme: "Media Cinematic" (dark, glassy, coral→magenta→violet accent) — see DESIGN.md.
- Manifest: per-account SQLite in
manifests/<account>.db(vianode:sqlite) + a versionless JSON exportmanifests/<account>.json. Migration:cd app && npx tsx src/server/migrate/importManifest.ts(reconciles with the disk).
Note language
The LLM-written notes have a configurable language. The default is English; the transcription itself is auto-detected per video by Whisper (e.g. pt for Portuguese audio), so a note can summarize Portuguese speech in English. Override the note default at three levels (most specific wins):
- Global default — the analysis-settings panel (gear icon).
- Per profile — the picker next to "Generate missing notes" on the profile card (remembered for that profile's batch).
- Per video — the picker next to (Re)generate in the video dialog (a one-off for that note).
Success criteria
- Every video in the account (incl. Highlights) has a
.mdnote. - Each note captures what was said (transcript) and shown (OCR/visual).
- Resumable via the SQLite manifest (records what was downloaded/read and when).
- Readable transcription in the audio's language (faster-whisper
mediumon GPU + a domain glossary); notes in the configured language. - A per-profile index and
notes/<profile>/OVERVIEW.md(theme summary) with links back. - Later querying via RAG (
query.py) with note citations.
Note template
The canonical note template + quality rules live in prompts/build-notes.md (frontmatter keys + sections). The notes phase reads it directly.
Security & cookies
The cookies.txt is a live credential — a logged-in session from a
throwaway account (highlights/stories require login). Keep it private (it's
gitignored via *cookies*.txt), never commit it, and re-export it when it
expires (downloads start redirecting to login). The app reads it server-side
and never sends cookie values to the browser. gallery-dl already spaces
requests (~10s) to avoid rate-limits/bans.
For the full threat model, hardening, and responsible use — you're downloading publicly-visible content with your own session, so respect each platform's Terms of Service and copyright — see SECURITY.md.
Contributing & license
- Contribute: see CONTRIBUTING.md (setup, checks, conventions) and the Code of Conduct.
- Security: report privately — see SECURITY.md.
- License: MIT — covers this repository's code only. The tools it drives (gallery-dl, yt-dlp, ffmpeg, the MCP, faster-whisper, …) keep their own licenses; downloaded media belongs to its creators — see SECURITY.md ("Responsible use") before downloading or redistributing.
Related Skills
claude-mem
101.0kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
97.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
86.5kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
75.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
