creatorloop

v0.3.0
io.github.pandich93/creatorloop Checked 4 days ago Published 1 month ago

Instagram content studio for Claude: analytics, competitors, Reels, publishing queue.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_my_profile

Own profile: username, bio, followers, following, posts count. Also saves a daily follower snapshot.

ParameterTypeDescription
refreshboolean

get_my_media

Latest own posts/Reels (newest first) with public counters: likes, comments, type, permalink, timestamp.

ParameterTypeDescription
limitinteger
refreshboolean

get_media_insights

Private insights for ONE own post/Reel/Story: reach, views, saved, shares, profile visits, follows, Reels average watch time (ms). Metrics the API refuses are listed in `unavailable`.

ParameterTypeDescription
media_id *string

get_my_content_report

Full content report for own account: best/worst posts with hooks, format comparison (Reels vs carousel vs image), weighted engagement rate, follows/profile visits per 1k reach, Reels watch time, posting frequency, best weekday/hour, most used hashtags, posts still growing (<72h). Makes 1 insights request per post (cached), so large max_posts is slower.

ParameterTypeDescription
daysintegerAnalyse posts published in the last N days
max_postsinteger
rank_bystring

get_caption_insights

What in captions works: language (uz/ru/en), question in the hook, call-to-action, caption length; best and worst hooks (first line). Own account is scored by reach, competitors by likes+comments.

ParameterTypeDescription
daysinteger
max_postsinteger
usernameEmpty = own account (by reach); else a competitor

get_account_insights

Account-level totals for the period: reach, views, accounts engaged, interactions, likes, comments, saves, shares, link taps, follows/unfollows, plus daily reach. Meta data can lag up to 48h.

ParameterTypeDescription
daysintegerPeriod length in days, ending yesterday

get_audience_demographics

Audience demographics (top 45 rows). Requires 100+ followers (or 100+ engagements for engaged=True).

ParameterTypeDescription
breakdownstring
engagedbooleanTrue = engaged audience, False = all followers
timeframestring

get_competitor

Public analysis of another PROFESSIONAL (business/creator) account via Business Discovery: profile, ER by followers, formats, posting frequency, best times, hashtags, top/worst posts. Saves a daily follower snapshot so growth can be tracked with get_follower_history.

ParameterTypeDescription
username *stringInstagram username, with or without @
media_limitinteger
refreshboolean

compare_accounts

Side-by-side comparison of up to 10 professional accounts (optionally including own account, measured the same public way): followers, posts/week, avg likes/comments/Reels views, ER by followers, main format.

ParameterTypeDescription
usernames *array
include_meboolean
media_limitinteger

get_follower_history

Follower growth from local daily snapshots (own account or any competitor fetched before). History starts from the first time the account was fetched through this server.

ParameterTypeDescription
daysinteger
usernameUsername; empty = own account

track_competitor

Add an account to the tracked list (validated with one Business Discovery request). Tracked accounts are refreshed together by update_tracked_competitors.

ParameterTypeDescription
username *stringProfessional account username, with or without @
noteWhy you track it, e.g. 'AI-blog, uz'

untrack_competitor

Remove an account from the tracked list. Its history stays in the database.

ParameterTypeDescription
username *string

list_tracked_competitors

Tracked accounts with the date added and note.

update_tracked_competitors

Refresh all tracked accounts (fresh API data, 1-2 requests each): follower change over the stored history, new posts since the previous update and viral posts (score >= multiplier × the account's median). Run it regularly (e.g. weekly) to build history.

ParameterTypeDescription
media_limitinteger
viral_multipliernumber

find_viral_posts

Posts that outperformed their account: Reels by views, other formats by likes+comments, compared with the account's own median. Good source of proven topics and hooks.

ParameterTypeDescription
daysintegerOnly posts from the last N days
media_limitinteger
multipliernumber
usernameEmpty = all tracked accounts

get_competitor_post

Analyse ONE post of a professional account by its URL, without a browser: caption, hook, likes, comments, Reels views, format, how many times better than the account's median, and all slides downloaded to <content folder>/_refs/<username>_<code>/ (videos: cover image). With show_slides the slide previews are returned as images (up to 20, 400 px wide) so their text and design can be read directly. Pass username: the author can't be detected from the URL without Meta App Review. Comment texts are not available via the API.

ParameterTypeDescription
url *stringInstagram post/reel URL, e.g. https://www.instagram.com/p/DeCHjDpjuI8/
show_slidesbooleanReturn small previews of the slides as images
usernameAuthor's username (required in practice: oEmbed auto-detection needs Meta App Review)

get_post_history

Growth curve of one post (own or competitor) from stored snapshots: points by post age, gain per day and status growing/plateau. Snapshots are added on every fresh fetch (max 1 per hour).

ParameterTypeDescription
media_id *string

search_hashtag

Top (most popular) or recent (last 24h) public posts for a hashtag, with a trend summary: formats, avg likes/comments, related hashtags, caption length, posting times. Author usernames are NOT available from the API. Uses 1 of 30 weekly hashtag slots for a new tag.

ParameterTypeDescription
hashtag *stringHashtag with or without #
limitinteger
modestring

compare_hashtags

Compare several hashtags by their top posts: avg likes/comments, dominant format, Reels share. Each NEW hashtag uses 1 of 30 weekly slots; check get_api_status first.

ParameterTypeDescription
hashtags *array
limitinteger

plan_hashtag_research

Dry run before search_hashtag / compare_hashtags: which tags are free (queried within the last 7 days), which need a new slot out of 30 per week, and whether they all fit. Makes no API calls.

ParameterTypeDescription
hashtags *array

prepare_post

Step 1 of publishing (does NOT publish). Starts a BACKGROUND job and returns job_id immediately. Folder with ONE .mp4/.mov -> Reel: validates the video (3 s-15 min, <=300 MB, moov at front), uploads it straight to Meta (resumable upload; tunnel only as fallback), cover frame and feed sharing from optional reel.json {"cover_ms": 1667, "share_to_feed": true}; images in that folder are ignored. Processing takes 1-10 min. Otherwise 1-10 images (sorted by file name) -> photo/carousel: converts to JPEG, serves them through a temporary Cloudflare tunnel, creates containers and waits until Meta has pr…

ParameterTypeDescription
folder *stringFolder in the content folder (e.g. 'my-first-reel') or an absolute path in it
captionEmpty = caption.txt from the folder (text before a '---' line)

get_post_job

Status of a prepare_post job: running (with current stage), done (with creation_id + preview) or failed.

ParameterTypeDescription
job_id *string

publish_media

Step 2: PUBLISHES the prepared post to Instagram (public, irreversible from here). Call ONLY after the user explicitly confirmed this exact preview.

ParameterTypeDescription
creation_id *stringcreation_id returned by prepare_post

list_publications

Prepared and published posts made through this server, plus the 24h publishing quota.

ParameterTypeDescription
limitinteger

queue_post

Schedule a post/carousel/Reel to be PUBLISHED AUTOMATICALLY at a time (default slots Tue/Thu/Sun 19:00 local). Call first with confirm=false and show the preview (type, caption hook, local time) to the user. Call again with confirm=true ONLY after the user explicitly approved this post AND this time. The server fingerprints caption and media: if they change before the slot, the post is blocked. Late by more than 3 h (laptop asleep) = missed.

ParameterTypeDescription
folder *stringFolder inside the content folder (same as prepare_post)
confirmbooleanfalse = preview only; true = add to the queue (after approval)
when'next' / empty = next free slot, or 'YYYY-MM-DD HH:MM' local

list_queue

Publishing queue: scheduled posts (and with include_done=true also published/failed/missed/blocked/cancelled), local times, plus the next free default slots.

ParameterTypeDescription
include_doneboolean

cancel_queued

Remove a scheduled post from the queue (nothing is deleted on Instagram).

ParameterTypeDescription
queue_id *integer

post_reviews

Post-mortems for the daily report: own posts (last 7 days) that crossed 24 h or 72 h since the last run, with fresh insights vs the median of own mature posts of the same format (x_median), and growth 24 h -> 72 h. Each post is reported once per stage. Explain the numbers to the user and give one concrete takeaway.

ParameterTypeDescription
mark_reportedbooleanFalse = just look, do not mark posts as reported

get_new_comments

Comments under own posts that you have not answered yet, including follow-ups inside threads you already answered (new since the last call by default; they are marked as seen). For each: author, text, post, reply_to (the top-level comment to answer in that thread). Draft replies in the comment's language and show them to the user; send with reply_comment(reply_to) only after explicit approval. Needs instagram_manage_comments.

ParameterTypeDescription
daysintegerPosts published in the last N days
only_newbooleanfalse = all unanswered, including ones shown before

reply_comment

PUBLICLY replies to a comment under your post. Call ONLY after the user explicitly approved this exact text.

ParameterTypeDescription
comment_id *stringreply_to from get_new_comments (the top-level comment of the thread)
message *stringReply text exactly as the user approved it

get_api_status

Diagnostics: token validity, days until expiry (warns 14 days ahead), last rate-limit usage headers, hashtag quota for the rolling 7 days, cache location.

open_setup

Connect creatorloop to the user's Instagram account: opens a local setup page in their browser (Meta app, Facebook login, account choice). Use when settings are missing or the token expired. Never ask for an App Secret or a token in the chat. Call again to check progress: once it reports done, every tool works without restarting Claude Desktop. Does not work inside Docker: there the user runs `creatorloop-auth login` (README, Docker).

ParameterTypeDescription
againbooleantrue: connect again after a finished setup (expired or revoked token)
open_browserbooleanfalse: only return the link, e.g. when the browser is elsewhere

clear_cache

Drop cached API responses so next calls fetch fresh data. Follower history is not affected.

ParameterTypeDescription
prefixme: | media: | bd: | hashtag: ; empty = everything. Snapshots are kept.

restart_server

Restart this MCP server so updated .py code is loaded, without restarting Claude Desktop. The process exits ~1 s after replying; Claude Desktop starts it again on the next call. Use only after a code update (get_api_status shows restart_needed=true). Wait 10-20 s before the next call. Refuses when dependencies/version changed: then Claude Desktop must be restarted manually.

ParameterTypeDescription
exit_codeinteger1 = report as crash (Desktop restarts it)
forcebooleanRestart even if pyproject.toml/uv.lock changed (will likely fail)