Skip to main content
Glama
README.md
# Insta Search

**Let Claude read Instagram reels for you: the caption, what's said, and only the frames that matter, then write checked notes you can build from.**

[![Release](https://img.shields.io/github/v/release/R-Dilipkumar/insta-search)](https://github.com/R-Dilipkumar/insta-search/releases/latest)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
![Python](https://img.shields.io/badge/python-3.12%2B-blue)
![Platform](https://img.shields.io/badge/platform-Windows-lightgrey)
![MCP](https://img.shields.io/badge/MCP-server-8A2BE2)

> **Status:** v0.1.0, an early release. Tested with a real MCP client on real reels, and used inside Claude Code to research the redesign of [my portfolio](https://r-dilipkumar.github.io/). Research and design: [research page](https://r-dilipkumar.github.io/insta-search/research.html).

## Features

- **Reads a reel from its link:** creator, date, likes, the caption, and the speech as timed text. The speech is turned into text on your own PC (Whisper), for every reel, because captions often leave things out.
- **Sees only what it needs:** one overview image of every scene change with its time, then strips of 1-16 frames from any stretch of seconds, each frame labelled with its time. Claude asks for frames only when the content needs them: a UI effect, motion, "as you can see", or no speech.
- **Writes `research/instagram-research.md`** in the project you're working on: what each reel teaches, checked on the web (confirmed, corrected or not found, with sources), how each effect behaves and looks, the effort, and a build prompt an AI can build from. An "Instagram only" mode skips the web checks.
- **Saved collections:** Claude opens the collection in a browser you're logged in to, copies the reel links, then reads each reel logged out.
- **Cached:** each reel is downloaded and transcribed once; reading it again is instant.

Planned: photo and carousel posts, finding reels on a topic, and remembering which saves were already read (v0.2); searching everything read so far (v0.3).

## Setup

Download the source from the [latest release](https://github.com/R-Dilipkumar/insta-search/releases/latest) (or clone the repo). Needs Windows, [Python 3.12 or newer](https://www.python.org/downloads/) (tested on 3.14), [uv](https://docs.astral.sh/uv/) and [ffmpeg](https://www.gyan.dev/ffmpeg/builds/) on PATH (tested on 8.1). Get the code, then in its folder:

```powershell
uv sync
```

Then connect it to Claude Code (once). Use the full path to your copy:

```powershell
claude mcp add --scope user insta-search -- C:\path\to\insta-search\.venv\Scripts\insta-search.exe serve
```

```powershell
Copy-Item -Recurse skills\instagram-research $env:USERPROFILE\.claude\skills\
```

## Use

In Claude Code, open the project you want ideas for and ask, for example:

- "Pick some UI designs from these reels and use them on my website: <links>"
- "Research my saved collection 'Web inspo' and tell me what fits my portfolio."

Claude writes `research/instagram-research.md` there, tells you what fits, and builds nothing until you say so.

Start a new session after setup so the tools load. Claude uses the skill on its own when you share reel links. To call it directly, type `/instagram-research`, or in the desktop app pick it from **+** → **Slash commands**. It's a skill, not a plugin, so it isn't listed under Plugins.

The tool also works on its own from the command line:

```powershell
.venv\Scripts\insta-search read <reel link> --overview
```

```powershell
.venv\Scripts\insta-search frames <reel link> 12 14 --count 12
```

## How it works

A small Python program runs on your PC. It fetches a public reel logged out with yt-dlp, turns the speech into timed text with faster-whisper, and cuts frames with ffmpeg. Claude talks to it through MCP (the standard way Claude apps call local tools) and gets text and images back. A Claude skill holds the routine: caption and speech first, frames only where needed, timed from the speech, then web checks, then the research file.

## Good to know

- **What leaves your PC:** the tool talks only to Instagram (to fetch the reel) and, the first time, to Hugging Face (to download the Whisper `small` model, about 460 MB). The speech never leaves your PC as sound. Claude gets the text and the images it asks for, and web checks use Claude's own web search.
- **Disk:** videos are kept in `%LOCALAPPDATA%\insta-search` (about 5 MB for a 35-second reel) until you delete the folder. There's no size limit yet.
- Only public reels from professional (creator or business) accounts can be read without logging in. Photo posts aren't read yet.
- Whisper can mishear names ("Poor scroll" for "Pour scroll"); the routine prefers the spelling shown on screen.
- Instagram limits anonymous requests, so heavy use will hit a wall. Not tested at volume yet.
- Instagram's terms forbid automated collection without permission. The tool stays logged out (for a saved collection, Claude only reads the collection page in your own browser) and is meant for personal research. Don't re-post creators' videos or frames.

## For developers

- `src/insta_search/`: the engine (`reel_source`, `speech`, `frames`, `reader`), the MCP server (`server.py`) and the command line (`cli.py`).
- `skills/instagram-research/SKILL.md`: the routine Claude follows.
- `.venv\Scripts\python tests\smoke_mcp.py <reel link>` starts the server and calls both tools the way Claude does.
- `spikes/`: the scripts the design was tested with.

## License

MIT. See [LICENSE](LICENSE).