npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

content-media-center-mcp

v1.0.1

Published

MCP server for ingesting public Instagram content (posts, reels, carousels) via HikerAPI

Readme

content-media-center-mcp

Local MCP server that ingests public Instagram content (posts, reels, carousels) via HikerAPI and stores it on disk for AI-driven style analysis. Runs over stdio — one process per user, no shared backend.

What it does

  • Register your own Instagram account (is_primary) and any number of reference/competitor accounts by URL or username.
  • Sync recent posts/reels/carousels for a tracked account: fetches metadata from HikerAPI, downloads the media files, stores everything locally.
  • No AI analysis is built in. The server only downloads files to disk and exposes their paths. Claude (or any MCP client with vision) reads the downloaded images/videos directly and analyzes them in-conversation.
  • Track HikerAPI trial usage/balance without leaving the chat.

Storage

Everything lives in a data directory on the machine running the server — no cloud DB, no bucket.

  • Metadata: SQLite file (content-media.db) — accounts, posts, media asset records.
  • Media files: <data-dir>/media/<username>/<ig_media_code>/<n>.<ext>

Default data dir: ~/.content-media-center-mcp/. Override with CONTENT_MEDIA_DATA_DIR.

Setup

pnpm install
pnpm build

Copy .env.example to .env and set HIKERAPI_KEY (get one at hikerapi.com).

Connect from an MCP client (Claude Desktop, Cursor, etc.)

{
  "mcpServers": {
    "content-media-center": {
      "command": "node",
      "args": ["/absolute/path/to/content-media-center-mcp/dist/index.js"],
      "env": {
        "HIKERAPI_KEY": "your_key_here"
      }
    }
  }
}

Cursor: .cursor/mcp.json (project-only) or ~/.cursor/mcp.json (global). Claude Desktop: Settings → Connectors → Add custom connector.

After editing dist/, restart the connection from the client (toggle the server off/on) — clients cache the tool list per process and won't pick up a rebuild on their own.

Tools

| Tool | Does | |---|---| | set_primary_account | Marks an account (URL or username) as your own/primary account | | add_tracked_account | Registers a reference account to track | | list_tracked_accounts | Lists all registered accounts with last sync time | | sync_account_content | Fetches recent posts/reels for an account, stores metadata, downloads media | | list_downloaded_posts | Lists downloaded posts with local file paths — use before asking Claude to analyze images/video | | get_hikerapi_usage | Remaining free-trial requests (out of 100), rate, and paid balance |

Data model

tracked_accounts (id, username, ig_user_id, display_name, is_primary, is_active, last_synced_at)
ig_posts         (id, account_id, ig_media_code, media_type, caption, hashtags, like_count,
                   comment_count, view_count, posted_at, raw_metadata)
ig_media_assets  (id, post_id, asset_order, asset_type, source_url, storage_url, width, height)

media_type is one of image / carousel / reel. storage_url on an asset is the absolute local file path (not a remote URL).

HikerAPI response quirks (as of implementation)

Handled internally, documented here in case the upstream API changes:

  • /v1/user/medias/chunk returns a 2-element array [items, next_cursor], not { items, next_cursor }.
  • Carousel items list their sub-media under resources[], not carousel_media.
  • pk (user id) can come back as either a JSON number or a string — normalized to string, since a bare number gets serialized as "123.0" and rejected by endpoints expecting user_id.
  • Reels report view_count: 0 even when they have real plays; the actual figure is in play_count. The sync parser falls back to play_count whenever view_count is falsy.

Not in scope

No route-validation gate, no prompt-driven generation engine, no auto-publishing, no remote/multi-user server. This is ingestion only.

License

ISC