
Pil
io.github.pjpoulose由 GitHub 账号 pjpoulose 发布v0.1.1更新于 Oct 24, 2026
PIL: local-first knowledge base for your Instagram saved posts, with a read-only MCP server.
概览
一个只读的本地 MCP 服务器,让助手搜索并阅读由你的 Instagram 收藏帖子构建的私有知识库。
- 可以做什么
- 按文本搜索收藏帖子,覆盖配文与 AI 深度阅读知识,可按收藏夹和标签筛选,并获取单条帖子的完整记录:摘要、要点、操作步骤、链接、收藏夹与标签。列出已索引的收藏夹及数量,并按使用频率列出标签。报告库的总量与各字段的深度阅读覆盖率。所有查询都针对以只读方式打开的本地 SQLite 数据库执行。
- 适用场景
- 当你已经用 Instagram 收藏帖子建好 PIL 知识库,并希望 Claude、Cursor 或其他 MCP 客户端实时回答相关问题、无需导出或重新上传文件时使用。
- 运行要求
- 以 Python 包(personal-instagram-library)形式通过 stdio 在本地运行;需要 Python 3.11+ 以及低于 2 版本的 mcp 包。需先用 ingest、extract 和 tag 脚本构建知识库,这些脚本要求已安装 instagram-cli 并关联 Instagram 账号,且在配置文件中设置 account_id。
安装
README
Your Instagram saved posts — deep-read by AI, searchable forever, on your machine.
[License: MIT] [PRs Welcome] [Stars]
[Claude Code] [Cursor] [Claude Desktop]
Get started · How it works · Other AI tools · What's inside
mcp-name: io.github.pjpoulose/pil
Get PIL in 3 steps
1. Copy-paste this into Muse:
2. When it asks, link your Instagram (one tap in your browser).
3. Download the app file it sends you → unzip → double-click Start PIL → click Install.
That's the whole thing. Your Muse does the setup, the reading, and the building. Want it on your phone too? Just ask your Muse — it handles that as well.
Prefer to do it yourself? One command sets everything up.
- Mac / Linux:
curl -fsSL https://raw.githubusercontent.com/pjpoulose/PIL/master/bootstrap.sh | bash- Windows (PowerShell):
irm https://raw.githubusercontent.com/pjpoulose/PIL/master/bootstrap.ps1 | iexThen build your library with the commands in Manual setup.
Every day you save posts you'll never find again. PIL (Personal Instagram Library) turns your Instagram saved collection into a private knowledge base on your own machine: every post deep-read by vision AI — narrative summaries, key points, how-to steps, links it discusses, automatic tags — searchable in seconds and queryable live from your AI coding tools.
Code is shared, data stays home. This repo contains only code, the database schema, config examples, and docs. Your saved posts, captions, and account details never leave your computer — ingestion, extraction, search, and the MCP server all run locally. A
.gitignoreblocks databases, configs, and exports from ever being committed.
[PIL dashboard concept — gallery of deep-read saved posts with a synthesized answer]
Concept mockup with sample data — your library looks like this, with your posts.
[图片][图片] Want your Claude, Codex, or Cursor to access this?
Connect the read-only MCP server and your other AI tools can query your library live — always current, nothing to re-upload. Your Muse can wire it up for you. How to connect →
[图片][图片] How it works
[图片][图片] Manual setup (do it yourself)
Expand — only needed if you're skipping the 3-step Muse flow at the top.
Prerequisites: python3 (3.11+) and instagram-cli with your Instagram
account linked (run instagram-cli accounts — it must list your account).
The one-line installer at the top of this page handles all of this for you.
Build your library (each step is resume-safe — re-run any time):
Ask it anything — via the live MCP server or the static export:
That's it. Re-run ingest_saved.py whenever you save new posts; extract_content.py
only processes posts it hasn't seen yet.
The app: ask your Muse to build and send it — see Your library as an app.
[图片][图片] Why not just scroll your saved tab?
[图片][图片] Ask your library from other AI tools
Live (recommended): MCP. Point any MCP-compatible assistant at the read-only server and every question reads your current database — always up to date, no exports, no re-uploads:
Wiring for Claude Code, Claude Desktop, and Cursor: references/mcp_clients.md. Any MCP-compatible client works — and your Muse can connect it for you if you'd rather not touch configs. Available tools:
The server opens the database with SQLite mode=ro and exposes SELECT-only
tools — it cannot modify your library. (Attack-tested: SQL injection, write
attempts, and limit abuse all verified blocked.)
Snapshot: file upload. Ask your Muse to send you the web_data.json file
(built with export_web.py): every post with its deep-read knowledge in one
file. Attach it to any AI chat (Claude, ChatGPT, …) and ask questions like any
document. It's frozen at export time — a snapshot, not a live connection — so
ask your Muse for a fresh copy after you save new posts.
Directly (advanced). The database is plain SQLite at <data_dir>/pil.sqlite
(schema in schema.sql). Open it read-only with any SQLite tool.
These files hold your personal Instagram data — keep them on your own machine and only share them with tools you trust.
[图片][图片] Your library as an app
Your Muse builds the app for you and sends it to you — for your computer and your phone. Just ask:
- "Send me my PIL app" — download the file it sends you, unzip, double-click Start PIL, click Install. It lives on your computer like any other app and works fully offline.
- "Put PIL on my phone" — it handles the publishing and gives you a QR code to scan. Tap Install (Android) or Share → Add to Home Screen (iPhone).
No commands, no hosting setup, no terminal — your Muse takes care of all of it.
Signal Deck — the visual dashboard (v1.2.0)
Prefer exploring over querying? The Signal Deck (dashboard/) builds a
self-contained HTML dashboard from your local PIL database: a topic-ring hero
over everything you saved, search → synthesis (The Brief), a sources rail, a
sticky index, and a full archive grid. One file, works offline, your data
never leaves your machine.
See dashboard/README.md for details, PWA notes, and the QA suite.
[图片][图片] What's inside
[图片][图片] FAQ
Do I need to know how to code? No. Copy-paste the prompt at the top of this page into Muse — it does everything with you. The only things you'll do yourself are linking Instagram (one tap in your browser) and downloading the app file it sends you.
Where does my Instagram data go? Nowhere. Code is shared, data stays home: your saved posts, captions, and account details never leave your computer. Nothing is uploaded to us — there is no "us"; there's no server, no account, no cloud.
Does it cost anything? PIL is free and open-source (MIT). There is no subscription and no account to create. The AI deep-read step runs through your own Instagram/AI setup.
Does the app work offline? Yes. Once installed, the desktop and phone apps run fully offline — search, rooms, tags, and answers all work without internet.
Which phones and computers? Windows, Mac, and Linux for the desktop app; iPhone and Android for the phone app. On Android, tap Install app in Chrome; on iPhone, use Safari's Share → Add to Home Screen.
I saved new posts — how do I add them? Just tell your Muse "I saved new posts." It fetches and deep-reads only the new ones, then refreshes your app and files.
Can I share my library with someone? Your library is files on your machine — you can copy them to someone else's computer, but they contain your personal Instagram data. Treat them like anything private: don't publish or upload them anywhere public.
Something failed — what now?
Tell your Muse what you saw — it can diagnose and fix it directly. (Running
the manual setup below? Re-run the installer — it's safe to run any number of
times — and check python3 --version is 3.11+.)
[图片][图片] Troubleshooting
Something wrong? Tell your Muse what happened — it can diagnose and fix most issues itself.
Running the manual setup yourself?
PIL account_id is not configured→ copy the example config and setaccount_idto youruser_fbidfrominstagram-cli accounts.- Extraction is slow on huge libraries — it's resume-safe; just re-run it.
429rate limits are handled with backoff inside the scripts.- The MCP server needs
mcp<2in the Python that runs it (2.x renamed the API).
[图片][图片] Contributing
PRs and issues welcome — better extraction prompts, new query clients, new export formats. Fork it, ship it, make it yours. If it saved you from the endless scroll, a star helps others find it.
[图片][图片] License
MIT. Built by Paul Poulose.
来源:README.md,提交 cc003dd
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分

