Skip to main content
Glama
Sprout Social MCP Server

Sprout Social MCP Server

by kodowjam

Sprout Social MCP Server

An MCP (Model Context Protocol) server that connects Claude to the Sprout Social API for managing social media posts, profiles, analytics, and social listening.

Features

Core Workflow

  • get_customer_id — Get your Sprout Social customer ID

  • list_profiles — List all connected social profiles (LinkedIn, X/Twitter, Instagram, Facebook, etc.)

  • create_post — Create draft posts with optional scheduling, media (photos, videos, PDF documents), and tags

  • get_post — Get details and status of a specific post

Media & Metadata

  • upload_media — Upload images, videos, and PDFs via public URL or Google Drive link

  • list_tags — List available tags for organizing posts

  • list_users — List all users on the account

Analytics

  • get_profile_analytics — Aggregated analytics for social profiles over a date range

  • get_post_analytics — Per-post performance metrics over a date range

Listening

  • list_listening_topics — List Listening Topics, their themes, and data availability

  • get_topic_messages — Messages from a Topic with sentiment and engagement, newest first

  • get_topic_metrics — Aggregate Topic metrics, optionally by day, sentiment, network, etc.

Related MCP server: Sprout Social MCP Server

Prerequisites

  • A Sprout Social API token (developer docs)

  • Claude Desktop or Claude Code

  • For npx: Node.js 18+ (recommended for most users)

  • For uvx: Python 3.10+

  • For clone method: Python 3.10+ and git

  • For the Listening tools: a Sprout plan with Listening, at least one Listening Topic, and Listening API access for your token. Without these, list_listening_topics returns an empty list with a note.

Installation

Choose one of the following installation methods:

No installation required! Just add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "sprout-social": {
      "command": "npx",
      "args": ["-y", "@kodowjam/sprout-social-mcp"],
      "env": {
        "SPROUT_API_TOKEN": "your_sprout_social_api_token_here",
        "SPROUT_CUSTOMER_ID": "your_customer_id_here"
      }
    }
  }
}

For Claude Code:

claude mcp add sprout-social -- npx -y @kodowjam/sprout-social-mcp

Then set the environment variables in your shell or MCP config.

Don't know your customer ID? You can use the get_customer_id tool after connecting to find it.

Option 2: uvx / PyPI

No installation required! Add this to your Claude Desktop config:

{
  "mcpServers": {
    "sprout-social": {
      "command": "uvx",
      "args": ["sprout-social-mcp"],
      "env": {
        "SPROUT_API_TOKEN": "your_sprout_social_api_token_here",
        "SPROUT_CUSTOMER_ID": "your_customer_id_here"
      }
    }
  }
}

For Claude Code:

claude mcp add sprout-social -- uvx sprout-social-mcp

Then set the environment variables in your shell or MCP config.

Option 3: Clone & Install

For development or local customization:

  1. Clone and install:

git clone https://github.com/kodowjam/sprout-social-mcp-server.git
cd sprout-social-mcp-server
pip install .
  1. Configure environment:

cp .env.example .env

Edit .env with your credentials:

SPROUT_API_TOKEN=your_sprout_social_api_token_here
SPROUT_CUSTOMER_ID=your_customer_id_here
  1. Connect to Claude Desktop:

{
  "mcpServers": {
    "sprout-social": {
      "command": "python",
      "args": ["server.py"],
      "cwd": "/absolute/path/to/sprout-social-mcp-server"
    }
  }
}

For Claude Code:

claude mcp add sprout-social -- python /absolute/path/to/sprout-social-mcp-server/server.py

Restart Claude Desktop to load the server.

Tools Reference

Tool

Description

Key Parameters

get_customer_id

Get your Sprout customer ID

—

list_profiles

List connected social profiles with IDs, networks, and group IDs

—

create_post

Create a draft post, optionally scheduled

profile_ids, text, scheduled_at, media_ids, tag_ids

get_post

Get post details by ID

post_id

upload_media

Upload media from a public URL (expires 24hr unless attached to a post)

url

list_tags

List available tags for organizing posts

—

list_users

List all account users

—

get_profile_analytics

Aggregated profile metrics over a date range

profile_ids, start_date, end_date, metrics

get_post_analytics

Per-post metrics over a date range

profile_ids, start_date, end_date, metrics

list_listening_topics

List Listening Topics; their IDs feed the other listening tools

—

get_topic_messages

Topic messages with sentiment, auto-paginated (default 100, max 500)

topic_id, start_date, end_date, networks, text_match, sentiment, public_only, max_results

get_topic_metrics

Aggregate Topic metrics with optional dimensions

topic_id, start_date, end_date, metrics, dimensions

PDF document posts

upload_media detects PDFs (by MIME type or the %PDF file header) and returns _detected_media_type: "DOCUMENT". Pass that in create_post's media_types to create a LinkedIn document post. Sprout silently drops profiles that can't take a document, so create_post rejects the call and lists the incompatible profiles if any target isn't a LinkedIn company page or personal profile. Files must be under 50MB.

Listening notes

  • X (Twitter) data isn't available from the Listening API. Requesting X or TWITTER drops it and returns a note.

  • Reddit appears in get_topic_metrics but not at message level.

  • public_only: true excludes posts from all of your connected profiles, leaving earned and public conversation.

  • If you don't pass networks, all listening networks are queried (the API requires a network filter).

Optional configuration

Variable

Default

Used by

SPROUT_DEFAULT_TIMEZONE

America/Los_Angeles

Date filters and day/month buckets in the listening tools

Development

# Node
cd node && npm ci && npm test

# Python
pip install -e '.[test]' && pytest

Getting Your API Token

  1. Log in to Sprout Social

  2. Navigate to Settings > API (or contact your Sprout admin for API access)

  3. Generate a new API token

  4. See the Sprout Social API docs for details

License

MIT

Available Tools

12 tools
create_postA

Create a draft social media post in Sprout Social, optionally scheduled.

Args: profile_ids: List of social profile IDs to post to (from list_profiles). text: The post text content. Network-specific limits are validated by Sprout. group_id: Group ID (from list_profiles). May be required by your account. scheduled_at: ISO 8601 datetime for scheduling (e.g. "2026-03-20T14:00:00Z"). If omitted, creates an unscheduled draft. media_ids: List of media IDs from upload_media (must be used within 24hr of upload). media_types: List of media types corresponding to media_ids. Each must be "PHOTO", "VIDEO" or "DOCUMENT". If omitted, defaults to "PHOTO" for all items. Use the _detected_media_type from upload_media's response to set this. DOCUMENT (PDF) posts can only target LinkedIn company pages and personal profiles; the call is rejected if any other profile is included. tag_ids: List of tag IDs from list_tags for organizing/categorizing the post.

Note: Posts are created as drafts. Whether scheduled drafts auto-publish depends on your Sprout account's approval workflow settings.

Inputs: text (required), profile_ids (required), tag_ids, group_id, +3 more.

get_customer_idA

Get your Sprout Social customer ID. Use this during initial setup to find the customer ID needed for all other API calls.

Inputs: no named parameters.

get_postC

Get details and status of a specific post by its ID.

Args: post_id: The Sprout Social post ID.

Inputs: post_id (required).

get_post_analyticsA

Get per-post performance metrics over a date range.

Returns individual post data (text, link, author) with lifetime metrics. Automatically fetches all pages (50 posts/page) and returns combined results.

Args: profile_ids: List of profile IDs to get post analytics for. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. metrics: List of lifetime-prefixed metric names. Defaults to: lifetime.impressions, lifetime.engagements, lifetime.post_link_clicks, lifetime.post_shares_count, lifetime.likes, lifetime.comments_count. Not all metrics are available on all networks (e.g. YouTube may lack impressions).

Inputs: end_date (required), start_date (required), profile_ids (required), metrics.

get_profile_analytics

Get aggregated analytics for social profiles over a date range.

Args: profile_ids: List of profile IDs to get analytics for. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. metrics: List of metric names (e.g. ["impressions", "engagements", "followers"]).

Inputs: metrics (required), end_date (required), start_date (required), profile_ids (required).

get_topic_messagesA

Get messages (posts, comments, articles) from a Sprout Listening Topic over a date range, newest first, with sentiment and engagement.

Automatically fetches pages of 100 until max_results is reached. Responses are compact: sentiment is a top-level field and media URLs are dropped unless you request the visual_media field.

Args: topic_id: Topic ID from list_listening_topics. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format (inclusive). networks: Networks to include, e.g. ["LINKEDIN", "REDDIT", "YOUTUBE", "INSTAGRAM", "TIKTOK", "WWW", "BLUESKY", "FACEBOOK", "TUMBLR"]. Defaults to all of these. X/TWITTER is not available via the API and is dropped with a note. text_match: Text search. All terms are required; use OR for any, and quotes for phrases, e.g. '"Fireworks AI" OR fireworks.ai'. sentiment: Filter by sentiment: positive, negative, neutral, unclassified. public_only: If true, exclude posts from the account's own connected profiles so only earned/public conversation is returned. Default false. fields: Message fields to return. Defaults to guid, created_time, network, text, perma_link, from.name, from.screen_name, content_category, language, sentiment. metrics: Per-message metrics. Defaults to engagements, likes, replies, shares_count, impressions, from.followers_count. sort: Sort order. Defaults to ["created_time:desc"]. max_results: Maximum messages to return. Default 100, maximum 500. filters: Extra raw Sprout filter strings appended as-is, e.g. ["likes.gte(10)"]. timezone: IANA timezone for date filters. Defaults to SPROUT_DEFAULT_TIMEZONE (America/Los_Angeles).

Inputs: end_date (required), topic_id (required), start_date (required), sort, +9 more.

get_topic_metricsA

Get aggregate metrics for a Sprout Listening Topic over a date range, optionally broken down by dimensions. Returns everything in one response.

Examples: Volume by day: metrics=["messages_count"], dimensions=["created_time.by(day)"] Sentiment split: metrics=["messages_count"], dimensions=["sentiment"] Volume by network: metrics=["messages_count", "engagements"], dimensions=["network"]

Args: topic_id: Topic ID from list_listening_topics. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format (inclusive). metrics: Metrics to aggregate: messages_count, engagements, likes, replies, shares_count, quote_count, reshare_count, repost_count, impressions, authors_count, from.followers_count, positive_sentiments_count, neutral_sentiments_count, negative_sentiments_count. dimensions: Optional breakdowns: created_time.by(day), created_time.by(month), visual_media.media_type, distribution_type, network, sentiment, language, explicit_label, location.city, location.province, location.country. networks: Networks to include. Defaults to all listening networks. X/TWITTER is not available via the API and is dropped with a note. text_match: Text search; supports OR and quoted phrases. sentiment: Filter by sentiment: positive, negative, neutral, unclassified. public_only: If true, exclude the account's own connected profiles. Default false. filters: Extra raw Sprout filter strings appended as-is. timezone: IANA timezone for date filters and day/month buckets. Defaults to SPROUT_DEFAULT_TIMEZONE (America/Los_Angeles).

Inputs: metrics (required), end_date (required), topic_id (required), start_date (required), +7 more.

list_listening_topics

List the Sprout Social Listening Topics on the account, with their themes and how far back data is available.

Use the topic id from this tool as topic_id in get_topic_messages and get_topic_metrics.

Requires Listening API access. X (Twitter) data is not available from the Listening API, and Reddit is available in metrics only.

Inputs: no named parameters.

list_profilesA

List all connected social media profiles (LinkedIn, X/Twitter, Instagram, Facebook, etc.) with their IDs, network types, names, and group IDs. Use this to get profile_ids and group_id for creating posts.

Inputs: no named parameters.

list_tagsA

List all available tags/labels in Sprout Social for organizing posts. Returns tag IDs that can be passed to create_post's tag_ids parameter.

Inputs: no named parameters.

list_usersB

List all users on the Sprout Social account.

Inputs: no named parameters.

upload_media

Upload an image, video or PDF document to Sprout Social via a public URL or Google Drive link.

Supports:

  • Direct public URLs (passed through to Sprout's API)

  • Google Drive URLs (file is downloaded server-side and uploaded via multipart). Supported formats: drive.google.com/file/d/{ID}/..., drive.google.com/open?id={ID}, drive.usercontent.google.com/download?id={ID}, drive.google.com/uc?export=download&id={ID}

Args: url: URL of the media file (public URL or Google Drive share link). Must be < 50MB. Google Drive files must have "Anyone with the link" sharing enabled.

Returns a media_id and _detected_media_type (PHOTO, VIDEO or DOCUMENT for PDFs) that can be used in create_post. PDFs become LinkedIn document posts. The media_id expires 24 hours after upload.

Inputs: url (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      An MCP server that integrates the Sprout Social Public API with Claude and other MCP clients. It allows users to manage social profiles, track analytics for posts and profiles, and schedule social media content.
      11
      -
    • A
      license
      Not graded
      quality
      F
      maintenance
      Provides full Sprout Social API coverage for AI-powered social media management, enabling analytics, inbox messages, listening, publishing, media uploads, and support cases through natural language.
      34 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects Claude to Instagram through Meta's official API, enabling users to retrieve account insights, analyze professional profiles, publish photos/carousels/reels/stories, manage comments, read and respond to Direct messages, and call any Graph API endpoint.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      One AI studio for blogs, social posts, emails, ads and product listings: written in your brand's voice, fact-checked, designed and scheduled. A remote MCP server for Claude, ChatGPT, Cursor and other agents, with OAuth sign-in or an API key; every post waits for your go-ahead.
      MIT