MCP server documentation

Last updated: December 1, 2026

Overview

Viral Manager tracks the Instagram and TikTok accounts a user chooses, several times a day, and flags the posts that outperform their account's usual reach. The MCP server lets an AI agent read those viral posts, explain why they worked, analyze any Reel or TikTok link and list trending sounds, on behalf of the signed-in user.

Endpoint

  • URL: https://viral-managers.com/api/mcp
  • Transport: Streamable HTTP (stateless). No SSE.
  • Protocol: Model Context Protocol, JSON-RPC 2.0.

Authentication

OAuth 2.1 with PKCE (interactive clients):

  • Protected resource metadata: https://viral-managers.com/.well-known/oauth-protected-resource
  • Authorization server metadata: https://viral-managers.com/.well-known/oauth-authorization-server
  • Dynamic client registration: POST https://viral-managers.com/api/oauth/register (public clients, token_endpoint_auth_method: none)
  • Authorization: https://viral-managers.com/oauth/authorize — the user signs in and approves the connection
  • Token: POST https://viral-managers.com/api/oauth/token — grants authorization_code and refresh_token
  • PKCE method: S256 (required). Scope: mcp.

API keys (scripts and server-side agents): created in Settings, sent as Authorization: Bearer vm_…. A key is shown once; only its hash is stored.

An unauthenticated request receives 401 with a WWW-Authenticate header pointing to the resource metadata.

Tools

Connectors listed in public agent directories expose the core tools below. Direct connections (API keys, Claude, ChatGPT) also get the production workflow tools: assignments, folders, tags, asset library and team.

ToolTypeWhat it does
list_viral_postsreadViral posts detected on the accounts the user tracks (Instagram Reels and TikTok). Params: limit, offset, sort (recent | score), favorites_only, since (ISO date, for polling).
get_post_analysisreadFull detail of one post, with the AI analysis when available: hook, structure, why it worked, how to adapt it. Param: post_id.
get_post_previewreadThumbnail of a post returned inline as an image, plus the video URL. Param: post_id.
analyze_post_urlwriteImports any public Instagram or TikTok URL and runs the AI analysis. Uses 1 daily AI credit unless the post was already analyzed; the analysis is asynchronous (poll get_post_analysis). Param: url.
list_watchlist_accountsreadAccounts the user tracks, with followers and last post date. Param: platform (all | instagram | tiktok).
add_watchlist_accountwriteAdds an Instagram account to the watchlist, within the plan's account limit. Param: username.
get_trending_soundsreadCurrent snapshot of rising sounds on Instagram Reels. Params: niche (optional), limit.
get_dashboard_statsreadWorkspace overview: watchlist size, viral post counts, analyses, recent activity.
add_post_notewriteAdds a note to a post, visible to the user's team in the app. Params: post_id, content.
set_post_favoritewriteMarks or unmarks posts as favorites. Params: post_ids, favorite.

Directory connectors cannot delete data. Adult (NSFW) categories and niches are never returned to them.

REST API

Every MCP tool is also an HTTP endpoint, with the same arguments, permissions and limits: POST https://viral-managers.com/api/v1/<tool> with a JSON object of arguments and Authorization: Bearer vm_…. The result comes back in data.

  • OpenAPI 3.1: https://viral-managers.com/openapi.json
  • Index of the tools: GET https://viral-managers.com/api/v1 · raw tool schemas: GET https://viral-managers.com/api/tools-schema
  • Inline images (thumbnails, frames) are left out unless you pass ?include_images=true.
  • Errors: 400 invalid arguments or business error, 401 missing key, 404 unknown tool, 429 rate limited.

Discovery files for agents

  • MCP server card: https://viral-managers.com/.well-known/mcp/server-card.json
  • AI catalog: https://viral-managers.com/.well-known/ai-catalog.json
  • This page as Markdown: https://viral-managers.com/docs/mcp.md · https://viral-managers.com/llms.txt
  • Official MCP registry: com.viral-managers/viral-manager

Agents can report a missing capability or a wrong result with the send_feedback tool; the team reads every message.

Access requirements

  • A Viral Manager account with an active subscription. Every plan starts with a 7-day free trial (card required, via Stripe Checkout; Link supported).
  • OAuth connections from a user account require the Scale plan or above (or a white label workspace).
  • Agents can subscribe without a human account: POST https://viral-managers.com/api/agent/subscribe?plan=<plan> answers 402 with a Machine Payments Protocol challenge (card through a Stripe shared payment token, e.g. Link, or USDC on Tempo). Once paid it returns an API key valid on every plan. Prepaid 30-day periods, renewed with POST /api/agent/renew.
  • Agents can try first, for free: POST https://viral-managers.com/api/agent/trial returns a 7-day key with read-only access (Discovery preview and trending sounds; one trial per network per day). POST /api/agent/renew?plan=<plan> turns it into a paid plan.
  • Agents can also pay per call: POST https://viral-managers.com/api/agent/credits?amount=10 (10, 25, 50 or 100 USD, same 402 challenge) opens a workspace with a prepaid balance, or tops up the one in X-Api-Key. Discovery and reading an analysis cost $0.01 a call, analyzing a post $0.15, trending sounds are free; calls that end in an error are refunded.
  • Available worldwide; interface in English, French and Spanish.
PlanPriceTracked accountsAI analyses / day
Solo$25/mo2510
Starter$49/mo5020
Scale$149/mo15040
Agencyfrom $300/mo250+80

Usage limits: analyze_post_url uses the plan's daily AI credits; add_watchlist_account respects the plan's tracked-account limit; dynamic client registration is limited to 20 new clients per IP per hour. Limits are returned as explicit errors, never silent truncation.

Data and privacy

  • Data comes from public Instagram and TikTok posts of the accounts the user chooses, plus the user's own workspace.
  • Each token is scoped to one workspace. Team members restricted to some categories cannot connect an agent.
  • No payment data transits through the MCP server. Workspace data is not used to train models.
  • Privacy policy · Terms of service

Support and security

Questions, integration help or security reports: support@viral-managers.com.