Skip to main content
Glama
@sourcevine/mcp

@sourcevine/mcp

Official
by Sourcevine

@sourcevine/mcp

An MCP server for the Sourcevine public social data APIs. Gives an assistant one tool per named API — TikTok, Instagram, YouTube, X and Facebook stats, profiles, recent posts, comments and YouTube transcripts.

Read-only. Nothing here posts, follows, messages or changes anything on any platform, and every tool is annotated readOnlyHint so a client can skip a confirmation it would otherwise be right to show.

Install

You need a key from app.sourcevine.io/keys.

Claude Code:

claude mcp add sourcevine --env SOURCEVINE_API_KEY=sv_live_... -- npx -y @sourcevine/mcp

Anything that reads a JSON config:

{
  "mcpServers": {
    "sourcevine": {
      "command": "npx",
      "args": ["-y", "@sourcevine/mcp"],
      "env": { "SOURCEVINE_API_KEY": "sv_live_..." }
    }
  }
}

This runs as a local process. Your key sits in your own environment and is sent to api.sourcevine.io when a tool is called.

Related MCP server: Social Media Scraper

Hosted endpoint

If you would rather not run anything, https://mcp.sourcevine.io/mcp speaks the same protocol over Streamable HTTP:

{
  "mcpServers": {
    "sourcevine": {
      "url": "https://mcp.sourcevine.io/mcp",
      "headers": { "Authorization": "Bearer sv_live_..." }
    }
  }
}

It is stateless and stores nothing: your key arrives on the request, is forwarded to the API, and goes out of scope with the response.

Pick whichever suits you. The key is a Sourcevine key and reaches Sourcevine either way — hosted just adds one hop through our own front door — so this is a question of whether you want to run a process, not a security trade. Revoke a key from the dashboard and both routes stop working immediately.

Tools

Tool

Credits

tiktok_stats, tiktok_profile, tiktok_posts, tiktok_comments

1

youtube_stats, youtube_channel, youtube_videos, youtube_comments

1

youtube_transcript

2

x_stats, x_profile, x_posts, x_comments

1

instagram_stats, instagram_profile

2

instagram_posts

4

instagram_comments

8

facebook_profile, facebook_stats

1

A deleted, private or empty result is charged like any lookup. Retrieval failures cost 0, and every result reports what it actually cost as creditsCharged.

The tool list is generated from the API catalog the backend exports, so a tool cannot exist without a route behind it.

Things worth knowing

Unavailable is not an error. A private or deleted resource comes back as a normal result with available: false, so an agent does not sit in a retry loop on a post that no longer exists. It is charged like any lookup; a retrieval failure is not.

Use a separate key. Give the server its own key on its own project. Then you can see what the assistant spent and revoke it without touching anything else. An assistant deciding to check two hundred profiles is a normal thing for an assistant to do.

No contact data. No bios, emails, phone numbers, postal addresses or private-account data or restricted content — enforced server-side by an allowlist, not by this package. A platform sign-in prompt alone does not make public content private.

Agent skills

The free Sourcevine agent skills provide three focused workflows: Campaign Report, Competitor Content Brief, and Audience Questions & Objections. Each sets a scope and credit budget and keeps source evidence in reusable files. Install the skills in a client that supports local skills after connecting MCP. Skill installation is free; Sourcevine API usage consumes credits. Setup guide.

Development

npm install
npm run build
npm test

src/catalog.json is generated. Regenerate it from the backend rather than editing it:

cd ../sourcevine-backend
manage.py export_catalog --out ../sourcevine-mcp/src/catalog.json

What is in here

src/index.ts is the local stdio server this package installs. src/http.ts and src/serve.ts are the hosted endpoint at mcp.sourcevine.io. Both share the tool definitions in src/server.ts and the API client in src/client.ts, which is why they live together.

How the hosted endpoint is deployed is not in this repo.

Available Tools

10 tools
instagram_postsInstagram Channel Posts APIA
Read-only

A page of recent public posts for an Instagram account, with a cursor. Returns a page of items plus nextCursor. Fields use this platform's own names. Cost: 3 credits on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache, limit, cursor.

instagram_profileInstagram Profile APIA
Read-only

Follower and post counts for a public Instagram account. Returns one object. Fields use this platform's own names. Cost: 2 credits on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache.

instagram_statsInstagram Post Stats APIA
Read-only

Likes, comments and views for a public Instagram post or reel. Returns one object. Fields use this platform's own names. Cost: 2 credits on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache.

tiktok_postsTikTok Channel Videos APIA
Read-only

A page of recent public videos for a TikTok account, with a cursor. Returns a page of items plus nextCursor. Fields use this platform's own names. Cost: 2 credits on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache, limit, cursor.

tiktok_profileTikTok Profile APIA
Read-only

Follower, video and heart counts for a public TikTok account. Returns one object. Fields use this platform's own names. Cost: 1 credit on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache.

tiktok_statsTikTok Video Stats APIA
Read-only

Views, likes, comments, shares and collects for a public TikTok video. Returns one object. Fields use this platform's own names. Cost: 1 credit on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache.

youtube_channelYouTube Channel APIA
Read-only

Subscriber and video counts for a public YouTube channel. Returns one object. Fields use this platform's own names. Cost: 1 credit on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache.

youtube_statsYouTube Video Stats APIA
Read-only

Views, likes and comment counts for a public YouTube video or Short. Returns one object. Fields use this platform's own names. Cost: 1 credit on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache.

youtube_transcriptYouTube Transcript APIA
Read-only

The full spoken transcript of a public YouTube video, with timed segments. Returns one object. Fields use this platform's own names. Cost: 2 credits on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache.

youtube_videosYouTube Channel Videos APIA
Read-only

A page of recent public videos for a YouTube channel, with a cursor. Returns a page of items plus nextCursor. Fields use this platform's own names. Cost: 2 credits on a live read, 0 on a cache hit. Public data only: no bios, contact details or login-walled data. Read-only.

Inputs: url (required), cache, limit, cursor.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool is cleanly separated by platform and resource type: stats for individual content, profile/channel for account totals, and posts/videos for listing content. YouTube transcript is uniquely distinct. There is no realistic confusion between tool purposes.

    Naming Consistency5/5

    Tool names follow a consistent and predictable pattern: platform prefix plus resource type (e.g., tiktok_stats, youtube_channel, instagram_posts). The naming convention is uniform across all ten tools, making the set easy to navigate.

    Tool Count5/5

    Ten tools is well-scoped for a multi-platform social media data server: three platforms, each with stats, profile, and posts tools, plus an extra YouTube transcript tool. Each tool serves a clear purpose without redundancy or bloat.

    Completeness5/5

    The server covers the core read-only needs for public social media data: individual content metrics, account summaries, and recent content lists across all three platforms. Being explicitly read-only, no create/update/delete operations are expected, and the only notable extra capability—YouTube transcripts—is a valuable addition.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to fetch public profile and company data from LinkedIn, Facebook, and Instagram and to run Google web searches, exposing each capability as a callable tool that returns structured JSON results.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI tools to read publicly visible social media posts, comments, profiles, and trends from 18 platforms such as TikTok, Instagram, X, Reddit, YouTube, Xiaohongshu, and Weibo, on a prepaid pay-per-call basis where failed calls are free. Ships tools for search, trending, detail, comments, user profiles and posts, plus higher-level workflows like brand buzz, comment analysis, account watching, creator discovery, bulk link data, and viral finding.
      MIT