creatorloop
v0.3.0Instagram 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.
| Parameter | Type | Description |
|---|---|---|
refresh | boolean |
get_my_media
Latest own posts/Reels (newest first) with public counters: likes, comments, type, permalink, timestamp.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
refresh | boolean |
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`.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
days | integer | Analyse posts published in the last N days |
max_posts | integer | |
rank_by | string |
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.
| Parameter | Type | Description |
|---|---|---|
days | integer | |
max_posts | integer | |
username | Empty = 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.
| Parameter | Type | Description |
|---|---|---|
days | integer | Period length in days, ending yesterday |
get_audience_demographics
Audience demographics (top 45 rows). Requires 100+ followers (or 100+ engagements for engaged=True).
| Parameter | Type | Description |
|---|---|---|
breakdown | string | |
engaged | boolean | True = engaged audience, False = all followers |
timeframe | string |
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.
| Parameter | Type | Description |
|---|---|---|
username * | string | Instagram username, with or without @ |
media_limit | integer | |
refresh | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
usernames * | array | |
include_me | boolean | |
media_limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
days | integer | |
username | Username; 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.
| Parameter | Type | Description |
|---|---|---|
username * | string | Professional account username, with or without @ |
note | Why you track it, e.g. 'AI-blog, uz' |
untrack_competitor
Remove an account from the tracked list. Its history stays in the database.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
media_limit | integer | |
viral_multiplier | number |
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.
| Parameter | Type | Description |
|---|---|---|
days | integer | Only posts from the last N days |
media_limit | integer | |
multiplier | number | |
username | Empty = 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.
| Parameter | Type | Description |
|---|---|---|
url * | string | Instagram post/reel URL, e.g. https://www.instagram.com/p/DeCHjDpjuI8/ |
show_slides | boolean | Return small previews of the slides as images |
username | Author'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).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
hashtag * | string | Hashtag with or without # |
limit | integer | |
mode | string |
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.
| Parameter | Type | Description |
|---|---|---|
hashtags * | array | |
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
folder * | string | Folder in the content folder (e.g. 'my-first-reel') or an absolute path in it |
caption | Empty = 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
creation_id * | string | creation_id returned by prepare_post |
list_publications
Prepared and published posts made through this server, plus the 24h publishing quota.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Folder inside the content folder (same as prepare_post) |
confirm | boolean | false = 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.
| Parameter | Type | Description |
|---|---|---|
include_done | boolean |
cancel_queued
Remove a scheduled post from the queue (nothing is deleted on Instagram).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
mark_reported | boolean | False = 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.
| Parameter | Type | Description |
|---|---|---|
days | integer | Posts published in the last N days |
only_new | boolean | false = 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.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | reply_to from get_new_comments (the top-level comment of the thread) |
message * | string | Reply 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).
| Parameter | Type | Description |
|---|---|---|
again | boolean | true: connect again after a finished setup (expired or revoked token) |
open_browser | boolean | false: 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.
| Parameter | Type | Description |
|---|---|---|
prefix | me: | 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.
| Parameter | Type | Description |
|---|---|---|
exit_code | integer | 1 = report as crash (Desktop restarts it) |
force | boolean | Restart even if pyproject.toml/uv.lock changed (will likely fail) |