Skip to main content
Glama
sprout-mcp

sprout-mcp

by shauryasa0

sprout-mcp

Read-only MCP server over the Sprout Social public API. Exposes profile and post analytics as tools, returning the API's own JSON unmodified so downstream inject skills do the shaping.

No write tools. Nothing here can create, schedule, edit, or delete a post.

Tools

Tool

Method

Endpoint

get_customer_id

GET

/v1/metadata/client

list_profiles

GET

/v1/{customer_id}/metadata/customer

get_profile_metrics

POST

/v1/{customer_id}/analytics/profiles

get_post_performance

POST

/v1/{customer_id}/analytics/posts

list_metrics

—

local catalog, no API call

list_profiles is the entry point: every analytics call is scoped by customer_profile_id, and that is the only place those IDs come from.

list_metrics was added beyond the original build list because Sprout's metric keys are network-specific and not guessable (impressions on Instagram is labelled "Views"; TikTok profile counters are *_total; a handful require Premium Analytics). It serves a catalog generated from the published docs so calls don't fail on invented key names. Drop it if you'd rather keep the surface at four tools.

Related MCP server: instagram-mcp

Setup

python -m venv .venv && .venv/Scripts/python.exe -m pip install -e .

Set two environment variables (see .env.example):

  • SPROUT_API_TOKEN — generate in Sprout under Settings > Global Features > API

  • SPROUT_CUSTOMER_ID — optional; if unset the server calls /v1/metadata/client and infers it, which only works when the token sees exactly one customer

Claude Desktop

Copy claude_desktop_config.example.json into %APPDATA%\Claude\claude_desktop_config.json, fill in the token, and restart Claude Desktop. The command path already points at this checkout's venv.

Behavior worth knowing

Raw passthrough. Responses are returned exactly as Sprout sent them. The one structural change is pagination: with all_pages=true (default) the data arrays from each page are concatenated and paging is annotated with pages_fetched, pages_available, and truncated. Individual records are never touched. Set all_pages=false for a single page.

Rates are not returned by the API. Sprout's engagement rate, engagements, and similar figures are calculated metrics — the API returns only the raw counts they're derived from. list_metrics includes the formulas Sprout uses under calculated_profile_metrics / calculated_post_metrics. Compute them downstream; don't expect them in a response.

Rate limits. Sprout allows 60 requests/minute and 250,000/month. The client holds itself under 60/min with a sliding window, so long paginated pulls throttle rather than 429. On a 429 or 5xx it retries up to 5 times with exponential backoff, honoring Retry-After. 4xx responses are not retried — they're returned as ERROR: ... including the status code and Sprout's own response body, so a bad metric key tells you which key.

Documented request caps, enforced client-side before a call is spent: max 100 profiles per request; max 1-year reporting_period for profile analytics. Profile analytics pages at 1000 records, post analytics at 50.

Date formats differ by endpoint and are validated: get_profile_metrics takes YYYY-MM-DD (end exclusive); get_post_performance takes YYYY-MM-DDTHH:MM:SS (both inclusive).

Tests

.venv/Scripts/python.exe test_server.py

41 offline checks — tool registration, request-body and filter-syntax construction, input validation, pagination merging and capping, 429 retry, 4xx error surfacing, customer-ID discovery, and metric-catalog integrity. httpx is stubbed with MockTransport, so no live API calls and no token needed.

.venv/Scripts/python.exe stdio_check.py

Launches the server as a real MCP stdio subprocess and lists its tools.

Regenerating the metric catalog

sprout_mcp/metrics.json was scraped from the docs on the date in its _retrieved field. Sprout deprecates metrics periodically (Meta dropped several Facebook impression metrics in 2025–2026), so re-scrape if keys start failing. The catalog is reference data only — it never gates a request, so an out-of-date entry can't block a valid call.

Available Tools

5 tools
get_customer_idA

List the Sprout customer IDs this API token can access.

Use when SPROUT_CUSTOMER_ID is unknown or you need to confirm which Sprout account the token points at. Returns customer_id and name for each.

Inputs: no named parameters. Returns: result

get_post_performanceA

Pull post-level analytics for posts created in a datetime range.

Args: profile_ids: customer_profile_id values from list_profiles. Max 100. start_datetime: inclusive, YYYY-MM-DDTHH:MM:SS (e.g. 2026-06-01T00:00:00). end_datetime: inclusive, YYYY-MM-DDTHH:MM:SS (e.g. 2026-06-30T23:59:59). metrics: post metric keys, mostly prefixed lifetime. -- e.g. ["lifetime.impressions", "lifetime.reactions", "lifetime.comments_count"]. A few are unprefixed (e.g. video_length on Facebook and TikTok). Network-specific; call list_metrics for valid keys. fields: post attributes to include, e.g. ["created_time", "text", "perma_link", "post_type", "internal.tags.id", "internal.sent_by.email"]. timezone: ICANN tz name for bucketing, e.g. "America/Los_Angeles". sort: sort expressions, e.g. ["lifetime.impressions:desc"]. page: 1-based page to start from (50 posts per page by default). all_pages: follow pagination and concatenate the data arrays. max_pages: cap on pages fetched when all_pages is true.

Returns the API response verbatim -- one record per post, carrying whichever fields and metrics were requested. Useful for per-post label/tag analysis.

Inputs: profile_ids (required), end_datetime (required), start_datetime (required), page, +6 more. Returns: result

get_profile_metricsA

Pull profile-level analytics for a date range (daily granularity).

Args: profile_ids: customer_profile_id values from list_profiles. Max 100. start_date: inclusive start, YYYY-MM-DD. end_date: exclusive end, YYYY-MM-DD. Range must be <= 1 year. metrics: metric keys to request, e.g. ["impressions", "lifetime_snapshot.followers_count", "net_follower_growth"]. Keys are network-specific -- call list_metrics to see valid ones. Omit to let Sprout return its defaults. page: 1-based page to start from. all_pages: follow pagination and concatenate the data arrays. max_pages: cap on pages fetched when all_pages is true.

Returns the API response verbatim: each record has dimensions (reporting_period.by(day), customer_profile_id) and metrics.

Note: rates such as engagement rate are NOT returned by Sprout -- they are derived. Compute them downstream from the raw counts.

Inputs: end_date (required), start_date (required), profile_ids (required), page, +3 more. Returns: result

list_metricsA

Look up valid Sprout metric keys for a network, so calls don't guess.

Args: network: one of facebook, instagram, tiktok, linkedin, x, youtube, pinterest, threads, bluesky. Omit to list every network. scope: "profile" (for get_profile_metrics), "post" (for get_post_performance), or "all".

Each entry gives the human-readable name, the API key to send, and whether it needs Premium Analytics. Also lists Sprout's calculated metrics -- these are NOT returned by the API and must be derived from the raw counts.

This catalog was generated from the published docs; if the API rejects a key, check the live docs at https://api.sproutsocial.com/docs/.

Inputs: scope, network. Returns: result

list_profilesA

List the social profiles connected to this Sprout customer.

Start here: every analytics call is scoped by customer_profile_id, and this is the only place those IDs come from. Each profile includes customer_profile_id, network_type (facebook, instagram, tiktok, linkedin, twitter, youtube, pinterest, threads, bluesky), name, native_name and native_id.

Inputs: no named parameters. Returns: result

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 5 tools

    Disambiguation5/5

    Each tool serves a distinct purpose: customer ID discovery, profile listing, metric metadata, profile analytics, and post analytics. There is no functional overlap, and descriptions clearly differentiate them.

    Naming Consistency4/5

    Tools follow a 'verb_noun' pattern, but verbs are inconsistent: 'get_customer_id' returns a list (could be 'list'), while 'list_profiles' and 'list_metrics' use 'list'. However, the pattern is otherwise consistent and readable.

    Tool Count5/5

    Five tools cover the essential operations for a social media analytics server: account discovery, profile enumeration, metric exploration, and two data retrieval endpoints. This is well-scoped and not excessive.

    Completeness4/5

    The set covers core analytics workflows (profile metrics, post performance) and necessary metadata (customer IDs, profiles, metrics). Minor gaps exist, such as missing a tool to fetch a specific post by ID or account-level aggregation, but these are non-critical for the intended read-only analytics use case.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    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
      D
      maintenance
      MCP server for organic Instagram analytics via the Meta Graph API, providing read-only tools for profiles, media, insights, audience, and optional publishing.
      GPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Publish, schedule and read analytics across every major social network from one MCP server. 15+ tools covering publishing, scheduling, validation, media upload and normalised cross-platform analytics.
      4
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      MCP server for Brandwatch's Consumer Research, Data Upload, and Analysis APIs, exposing 55 tools for social listening, mentions, queries, alerts, and data uploads.
      -