PIL (Personal Instagram Library) is an installable Muse skill whose goal is to turn Instagram saved posts into a local, private, queryable knowledge base. Its core philosophy is "code shared, data stays home": the repository contains only code, database structure, configuration examples, and documentation, and the user's saved posts, captions, and account information never leave their own computer. Ingestion, content extraction, search, and the MCP server all run locally, and .gitignore prevents the database, configuration, and export files from being committed.
In terms of main capabilities, PIL uses visual AI to deeply read each saved post, generating narrative summaries, key points, how-to steps, links discussed in the post, and automatic tags, and stores them in a SQLite database. Users can complete searches in seconds, and can also query in real time from AI programming tools. The project provides a read-only MCP server that can connect to Claude Code, Claude Desktop, Cursor, and any other MCP-compatible client, allowing other AI tools to read the current database in real time without re-uploading or exporting. The server opens the database in SQLite read-only mode and exposes only SELECT-type tools, cannot modify the knowledge base, and has been attack-tested against SQL injection, write attempts, and limit abuse.
In terms of usage, the official three-step quick start is provided: copy and paste the specified prompt into Muse; when Muse asks, link Instagram in the browser with one click; download the app file sent by Muse, unzip it, double-click Start PIL, and click Install. Mac/Linux users can also use the curl command, and Windows users can use the PowerShell command for manual installation. Manual setup requires python3 (3.11+) and instagram-cli with a linked Instagram account. Every step of building the knowledge base can be safely rerun; after saving new posts, simply rerun ingest_saved.py, and extract_content.py will only process posts it has not seen before.
Applicable scenarios include: organizing posts that are saved daily but can no longer be found into a searchable private knowledge base; letting AI tools such as Claude, Codex, and Cursor query saved content in real time through MCP; exporting the knowledge base as a web_data.json snapshot file, attaching it to any AI chat and asking questions like a document; using the Signal Deck visual dashboard (dashboard/) to generate a self-contained HTML dashboard, including a topic ring, search and comprehensive summaries, a source bar, a sticky index, and a complete archive grid, as a single file that can be used offline. Muse can also build desktop and mobile apps for users; desktop supports Windows, Mac, and Linux, and mobile supports iPhone and Android, running completely offline after installation.
Limitations and notes: PIL is free and open source (MIT), with no subscription, no account, no server, and no cloud; the AI deep-reading step runs through the user's own Instagram/AI setup. The MCP server requires the Python environment running it to have mcp<2 installed (2.x renamed the API). Extraction for large knowledge bases may be slow, but it can be safely rerun; 429 rate limits are handled by backoff inside the script. The exported web_data.json is a snapshot at the time of export, not a live connection, and must be re-exported after saving new posts. The knowledge base file contains personal Instagram data and should be kept only on your own machine, shared only with trusted tools, and not publicly published or uploaded. If account_id is not configured, copy the example configuration and set account_id to the user_fbid from instagram-cli accounts.