Skip to main content
Glama
viralnote-mcp

viralnote-mcp

Official
by viralnote

@viralnote/mcp-server

ViralNote MCP server

A Model Context Protocol server for the ViralNote social media API.

Plug it into Claude Desktop, Claude Code, Cursor, or any other MCP-aware host and your agent can schedule posts, manage media, and read analytics across X, Instagram, Facebook, TikTok, LinkedIn, YouTube, Pinterest, Bluesky, Threads, and Reddit — as native MCP tool calls. No glue code.

Install

Gemini CLI

Install the extension from this repository:

gemini extensions install https://github.com/viralnote/mcp-server

Restart Gemini CLI, then run /mcp auth viralnote to sign in to your ViralNote account and authorize the connection. The extension uses the hosted HTTP server with OAuth; no API key or local server build is required. Start with a read such as "List my connected social accounts."

Cline

In Cline's MCP Servers screen, add a remote Streamable HTTP server named viralnote at https://dashboard.viralnote.app/api/mcp/mcp, then complete the OAuth sign-in. For the Cline CLI, run:

cline mcp install viralnote --transport http https://dashboard.viralnote.app/api/mcp/mcp

The wizard asks for authentication details before saving. See llms-install.md for the setup walkthrough and API-key alternative. Keep automatic approval disabled and verify the connection with a read before making changes.

Claude Desktop / Claude Code / Cursor

Add to your MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, similar on other platforms):

{
  "mcpServers": {
    "viralnote": {
      "command": "npx",
      "args": ["-y", "@viralnote/mcp-server"],
      "env": {
        "VIRALNOTE_API_KEY": "vnd_..."
      }
    }
  }
}

Restart your MCP host. The ViralNote tools will be available immediately.

This repo includes a root .mcp.json (Open Plugins standard) so tools like Cursor Directory can auto-detect the MCP server from the GitHub URL.

Cursor Marketplace

Once the plugin is published on Cursor Marketplace, you can install it directly from Cursor:

  1. Open Cursor and go to Settings → Plugins

  2. Search for "ViralNote" in the Marketplace

  3. Click Install

  4. In Plugins → Configure, set your VIRALNOTE_API_KEY

  5. Get your API key from dashboard.viralnote.app or viralnote.app/developers/auth

The ViralNote tools will be immediately available in your Cursor environment.

Local install

npm install -g @viralnote/mcp-server

Then reference viralnote-mcp directly in your MCP config:

{
  "mcpServers": {
    "viralnote": {
      "command": "viralnote-mcp",
      "env": { "VIRALNOTE_API_KEY": "vnd_..." }
    }
  }
}

Related MCP server: vibemarketing-mcp

Configuration

Env var

Required

Default

Notes

VIRALNOTE_API_KEY

yes

—

Generate at viralnote.app/developers/auth. Grant posts:read, posts:write, plus webhooks:* if your agent should manage webhooks.

VIRALNOTE_API_BASE

no

https://viralnote.app/api/v1

Override for staging/self-hosted instances.

Tools exposed

Tool

Purpose

list_posts

List posts (filter by status/platform, paginated)

get_post

Read one post including per-platform publish results

create_post

Create a draft (is_draft: true) or scheduled post

update_post

Update a draft or scheduled post

delete_post

Delete (cancels if scheduled)

publish_post

Publish a draft now

list_media

List media library items

import_media

Import by URL (200MB) or base64 data (3MB)

delete_media

Delete a media item

list_social_accounts

List connected social accounts

list_analytics

Published posts with per-platform metrics

list_post_results

Per-platform delivery results (success/error)

list_webhooks

List webhook subscriptions

create_webhook

Subscribe to events

delete_webhook

Unsubscribe

For most users, the HTTP MCP server at https://viralnote.app/api/mcp/mcp is simpler than installing this stdio package — see https://viralnote.app/developers/mcp for the HTTP config snippet. Use this stdio package when your MCP client doesn't support HTTP transport.

The underlying REST endpoints and request/response shapes are documented at viralnote.app/developers/docs.

Example agent prompts

"Show me my last 5 scheduled posts." Tool: list_posts with { status: "scheduled", limit: 5 }.

"Schedule this caption to Instagram for tomorrow at 9am, attaching the photo I uploaded yesterday." Tools: list_media → find item → create_post with { platforms: ["instagram"], caption, libraryItemId, scheduledFor, status: "scheduled" }.

"Pull this Dropbox link into my library, then publish it to X immediately." Tools: import_media → create_post (draft) → publish_post.

Development

git clone https://github.com/viralnote/mcp-server
cd mcp-server
npm install
npm run build
VIRALNOTE_API_KEY=vnd_... npm start

For local iteration without rebuilding:

VIRALNOTE_API_KEY=vnd_... npm run dev

License

MIT — see LICENSE. Pull requests welcome.

Available Tools

15 tools
create_postAInspect

Create a new post as a draft or schedule it for automatic publishing. With status='draft' (or is_draft=true) the post is saved with no publish time; with scheduledFor set it is queued and publishes automatically at that time. Returns the created post object including its id. Media must already exist in the library — call import_media or list_media first to get a media id. The user must have connected each target platform (verify with list_social_accounts if unsure). To publish an existing draft immediately, use publish_post rather than creating a new post.

Inputs: platforms (required), status, caption, is_draft, +3 more.

create_webhookAInspect

Subscribe a URL to ViralNote event notifications. ViralNote sends an HTTP POST with a JSON payload to the URL each time a subscribed event fires — for example post.published when a post goes live, or post.failed when delivery errors. Returns the created subscription including its id. The URL must be an HTTPS endpoint you control and that is publicly reachable. Check list_webhooks first to avoid duplicating an existing subscription.

Inputs: url (required), events (required).

delete_mediaAInspect

Permanently delete a media library item by id. The file cannot be recovered — confirm with the user before deleting. Use list_media to find the item's id and verify it is the right file (check name and type) first.

Inputs: mediaId (required).

delete_postAInspect

Permanently delete a post by id. If the post is scheduled, this cancels the pending publish. This does not retract content already delivered to social platforms — it only removes the ViralNote record. Irreversible: confirm with the user before deleting. Use update_post instead if the goal is to fix or reschedule a post.

Inputs: postId (required).

delete_webhookAInspect

Delete a webhook subscription by id. The target URL immediately stops receiving event notifications. Irreversible, but a subscription can be recreated with create_webhook. Use list_webhooks to find the id and confirm which URL/events it covers before deleting.

Inputs: webhookId (required).

get_postAInspect

Fetch a single post by id, including its full per-platform publish results (success or error per platform). Use after list_posts to inspect one post in detail, or after publish_post to check how delivery went. Returns an error if the id does not exist or belongs to another account.

Inputs: postId (required).

import_mediaAInspect

Import a file into the media library so it can be attached to posts. Two modes: (1) URL mode — pass url with an HTTPS direct-download link (up to 200MB; Dropbox and Canva share links supported via the matching source); (2) inline mode — pass data with base64-encoded bytes (3MB max before encoding) plus mimeType, with source='direct'. Exactly one of url or data must be provided. Returns the created library item including the id to use in create_post. For files over 3MB, always use URL mode.

Inputs: name (required), source (required), url, data, +2 more.

list_analyticsAInspect

List published posts with their latest per-platform metrics: views, likes, comments, shares, and engagement. Metrics are collected periodically by ViralNote, so values are the most recent snapshot rather than real-time. Use to report on content performance or find top-performing posts; use list_post_results instead when the question is whether delivery succeeded. Paginated via cursor.

Inputs: limit, cursor, platform.

list_mediaAInspect

List items in the user's media library. Returns each item's id, name, type, and folder, plus a cursor field when more pages exist. Use this to find a media id to attach to a post via create_post or update_post, or to check whether a file was already imported before calling import_media.

Inputs: sort, type, limit, cursor, +1 more.

list_post_resultsAInspect

Check delivery outcomes: returns recent published or failed posts with each platform's individual result (success, or the error that occurred). Pass postId to inspect one post's delivery; omit it to scan recent posts filtered by status. Use after publish_post to verify delivery, or when the user asks why a post didn't appear on a platform. For engagement metrics rather than delivery status, use list_analytics.

Inputs: limit, postId, status.

list_postsAInspect

List the user's posts. Returns post objects with id, caption, status, target platforms, scheduled time, and attached media ids, plus a cursor field when more pages exist. Use this to find a post's id before calling get_post, update_post, delete_post, or publish_post, or to review upcoming scheduled content. For per-platform delivery outcomes or metrics, prefer list_post_results or list_analytics instead.

Inputs: limit, cursor, status, platform.

list_social_accountsAInspect

List the social accounts connected to the user's ViralNote account: platform and account identity for each. Takes no parameters. Use before create_post to confirm the intended target platforms are actually connected — posting to an unconnected platform fails. Note that connecting or disconnecting accounts happens in the ViralNote dashboard UI (OAuth); it cannot be done through this API.

Inputs: no named parameters.

list_webhooksAInspect

List all webhook subscriptions on the account: each subscription's id, target URL, and subscribed events. Takes no parameters. Use to find a webhookId before delete_webhook, or to check whether an event is already covered before calling create_webhook (avoids duplicate subscriptions).

Inputs: no named parameters.

publish_postAInspect

Publish an existing draft post to all of its target platforms immediately, skipping the schedule queue. Only valid on posts with status='draft' — returns an error for scheduled or already-published posts. Returns the post with delivery kicked off; individual platforms can still succeed or fail independently, so follow up with get_post or list_post_results to confirm the outcome.

Inputs: postId (required).

update_postAInspect

Edit a draft or scheduled post before it publishes. Send only the fields to change — omitted fields keep their current values. Returns the updated post object. Posts that are already publishing, published, or failed cannot be edited. Common uses: reschedule by passing a new scheduledFor, fix a caption, swap attached media, or convert a draft to scheduled by passing status='scheduled' together with scheduledFor.

Inputs: postId (required), status, caption, mediaIds, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 15 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose. For example, create_post, publish_post, and update_post are well-differentiated: one creates, one publishes, one edits. The list tools (posts, post_results, analytics, media, webhooks, social_accounts) each target different data, avoiding confusion.

    Naming Consistency5/5

    All 15 tools follow a consistent verb_noun pattern in snake_case: create_post, delete_media, list_analytics, etc. No mixing of conventions (e.g., camelCase or vague verbs like 'process'), making the tool surface predictable and easy to navigate.

    Tool Count5/5

    15 tools is well-scoped for a social media scheduling service. The set covers core operations on posts, media, webhooks, analytics, and social accounts without unnecessary overlap or bloat.

    Completeness4/5

    The tool surface covers the main lifecycle: create, read, update, delete for posts and media; plus publishing, analytics, and webhook management. Minor gaps exist (e.g., no single media fetch by id, no tool to retry failed posts), but agents can work around them effectively.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Schedule and manage social media posts across 10 platforms (Instagram, Facebook, TikTok, X, LinkedIn, YouTube, Threads, Pinterest, Bluesky, Telegram) from any MCP-compatible AI assistant. Supports batch posting, media uploads, analytics, and platform-specific features like Reels, Shorts, and carousels.
      11
      905 npm
      7
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables drafting, scheduling, and publishing social posts on Vibe Marketing workspace through chat in Claude Code, Claude Desktop, or Cursor.
      14
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Enables posting, scheduling, and analyzing social media content across 16+ platforms through MCP clients like Claude Desktop, Claude Code, and Cursor.
      55
      113 npm
      MIT