Pil logo

Pil

Search and query Instagram saved posts from a local, read-only knowledge base through MCP.

Install Pil

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pil": {
      "command": "uvx",
      "args": [
        "personal-instagram-library"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx personal-instagram-library

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The pil MCP server exposes a local SQLite library of Instagram saved posts to compatible AI assistants. It provides read-only search, post retrieval, folder and tag browsing, and library statistics through stdio. PIL first ingests saved posts, then uses vision-AI extraction and tagging to make captions and post content searchable. Reach for it when you want AI-assisted access to an up-to-date personal Instagram archive without uploading the database.

Use cases

  • Search saved posts by caption, topic, folder, or tag
  • Retrieve summaries and instructions from a specific post
  • Browse saved collections and tag usage
  • Ask an AI assistant about a current local Instagram archive

Key features

  • Read-only stdio MCP server
  • Full-text search with folder and tag filters
  • Post summaries, key points, how-to content, and links
  • Folder and tag listing
  • Library totals and deep-read coverage statistics
  • Local SQLite storage

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 43d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · personal-instagram-library (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Pil works

What pil does

PIL turns an Instagram saved-post collection into a searchable local knowledge base. The application stores the library in SQLite and can enrich posts with summaries, key points, how-to instructions, discussed links, and tags. A read-only MCP server makes that indexed information available to AI tools without requiring screenshots, repeated uploads, or manual copying.

The pil MCP server is suited to developers who want an assistant to answer questions about their own saved posts. It can search across captions and extracted knowledge, retrieve an individual post, show saved collections and tags, and report coverage statistics. The server does not change the library.

How the pil MCP server works

A typical workflow begins with instagram-cli, which must already have the Instagram account linked. PIL ingests collections and saved posts into a local SQLite database. Separate processing steps perform vision-AI content extraction, apply programmatic tags, and generate exports such as searchable HTML or static JSON.

The MCP process runs with stdio and opens the SQLite database using read-only mode. Each request is handled through SELECT-only operations. The live connection reads the current database, so new posts become available after the ingestion and processing steps are run again. Static JSON is also available, but it represents a point-in-time snapshot rather than a live library.

Setup and configuration

Manual setup requires Python 3.11 or newer, a linked instagram-cli account, and the MCP package dependency mcp<2. The Python package can be installed from PyPI with pip install personal-instagram-library, or the repository can be cloned directly. The package supplies commands for ingestion, extraction, tagging, and several export formats.

Configuration is stored in ~/.config/pil/pil.config.json, copied from the example configuration. Set account_id to the user_fbid reported by instagram-cli accounts. By default, application data is kept under ~/.local/share/pil; the configured data directory contains the SQLite database and generated exports.

After setup, run the ingestion, extraction, and tagging scripts as needed. Start the MCP endpoint with python3 bin/mcp_server.py, or invoke the installed equivalent from the package. The server command is a stdio process and remains active until stopped.

Tools and capabilities

The pil MCP server exposes these read-only tools:

  • search_posts: searches captions and deep-read content, with optional folder and tag filters.
  • get_post: returns a post’s summary, key points, how-to content, links, folders, and tags.
  • list_folders: lists saved collections and their indexed counts.
  • list_tags: lists tags with usage information.
  • library_stats: reports totals and deep-read coverage by field.

The repository documents connections for Claude Code, Claude Desktop, and Cursor. Other MCP-compatible clients can use the stdio endpoint. The database can also be opened directly with SQLite in read-only mode when an MCP connection is not needed.

Limitations and notes

This is a read-only interface: it cannot edit, delete, or add records to the library. Ingestion must be rerun when new Instagram posts are saved, and extraction only processes posts that have not already been handled. JSON exports must be regenerated to reflect later changes.

The SQLite database, captions, account details, and exports contain personal data. Keep them on the local machine and share files only with tools you trust. The repository’s .gitignore is intended to prevent local databases, configuration, and exports from being committed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pil

pil is an MCP server that connects AI assistants to a local SQLite library of Instagram saved posts. Its main tools search posts, retrieve full post records, list folders and tags, and report library statistics. It is read-only and serves data over stdio, so the assistant queries the current local database.

Install it with `pip install personal-instagram-library`, then install `mcp<2`, configure the account ID, build the library, and start the stdio server. You need Python 3.11 or newer and an Instagram account linked through `instagram-cli`.

Yes, pil works with Cursor through its stdio MCP server. The repository includes Cursor connection instructions, and the server can also be used by other MCP-compatible clients.

The pil MCP server provides `search_posts`, `get_post`, `list_folders`, `list_tags`, and `library_stats`. These tools search indexed post content, retrieve post details, browse collections and tags, and show library totals and deep-read coverage.

Yes, the pil MCP server is read-only. It opens the SQLite database in read-only mode and exposes SELECT-only operations, so its tools cannot modify the library.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPil AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pil?style=directory)](https://allmcps.com/mcp/pil)
HTML Embed
<a href="https://allmcps.com/mcp/pil"><img src="https://allmcps.com/api/badge/pil?style=directory" alt="Pil on AllMCPs" /></a>