Skip to main content
Glama
jginorio

Sprout Social MCP Server

by jginorio

Sprout Social MCP 服务器

这是一个用于 Sprout Social API模型上下文协议 (MCP) 服务器。它允许 AI 助手(如 Claude、Cursor、Devin 等)通过标准化接口访问您的 Sprout Social 数据——包括分析、发布、消息、监听等。

快速入门

前置要求

通过 npx 运行

无需安装:

SPROUT_SOCIAL_API_KEY=your-token \
SPROUT_SOCIAL_CUSTOMER_ID=your-customer-id \
npx sprout-social-mcp

使用 Claude Desktop 配置

添加到您的 claude_desktop_config.json

{
  "mcpServers": {
    "sprout-social": {
      "command": "npx",
      "args": ["-y", "sprout-social-mcp"],
      "env": {
        "SPROUT_SOCIAL_API_KEY": "your-api-token",
        "SPROUT_SOCIAL_CUSTOMER_ID": "your-customer-id"
      }
    }
  }
}

使用 Cursor 配置

添加到您的 .cursor/mcp.json

{
  "mcpServers": {
    "sprout-social": {
      "command": "npx",
      "args": ["-y", "sprout-social-mcp"],
      "env": {
        "SPROUT_SOCIAL_API_KEY": "your-api-token",
        "SPROUT_SOCIAL_CUSTOMER_ID": "your-customer-id"
      }
    }
  }
}

使用 VS Code (GitHub Copilot) 配置

添加到您的 .vscode/mcp.json

{
  "servers": {
    "sprout-social": {
      "command": "npx",
      "args": ["-y", "sprout-social-mcp"],
      "env": {
        "SPROUT_SOCIAL_API_KEY": "your-api-token",
        "SPROUT_SOCIAL_CUSTOMER_ID": "your-customer-id"
      }
    }
  }
}

使用 Devin 配置

在 Devin 的 MCP 设置中,添加一个新服务器:

  • 名称: sprout-social

  • 命令: npx -y sprout-social-mcp

  • 环境变量:

    • SPROUT_SOCIAL_API_KEY → 您的 API 令牌

    • SPROUT_SOCIAL_CUSTOMER_ID → 您的客户 ID

环境变量

变量

必需

描述

SPROUT_SOCIAL_API_KEY

您的 Sprout Social API 令牌

SPROUT_SOCIAL_CUSTOMER_ID

您的 Sprout Social 客户 ID

可用工具

客户元数据

工具

描述

get_client

获取您的 Sprout Social 客户 ID 和名称

get_profiles

列出所有已连接的社交资料

get_groups

列出所有组

get_tags

列出所有标签

get_users

列出所有用户

get_topics

列出所有监听主题

get_teams

列出所有团队

get_case_queues

列出所有案例队列

分析

工具

描述

get_profile_analytics

指定日期范围内的资料级分析(展示量、互动量等)

get_post_analytics

带有分页功能的帖子级分析。支持展示量、互动量、反应、视频观看量

消息

工具

描述

get_messages

检索收件箱消息,支持过滤和基于游标的分页

监听

工具

描述

get_listening_topic_metrics

获取监听主题的指标

get_listening_topic_messages

获取监听主题的消息

发布

工具

描述

create_publishing_post

创建一个计划在特定时间发布的新帖子

get_publishing_post

检索特定发布帖子的详细信息

媒体

工具

描述

upload_media

通过 URL 上传媒体,用于发布帖子

案例

工具

描述

get_cases

检索客户案例/咨询,支持按优先级、时间范围等进行过滤

使用技巧

帖子分析分页

Sprout Social API 对帖子分析进行分页。请务必检查响应中的 paging.total_pages 并请求所有页面:

Ask: "Get all Instagram post analytics for last week"
→ Tool calls get_post_analytics with page=1, then page=2, etc.

有效的帖子级指标

  • lifetime.impressions — 总展示量

  • lifetime.engagements — 总互动量(点赞、评论、分享、收藏)

  • lifetime.reactions — 仅反应

  • lifetime.video_views — 视频观看次数

无效指标(会导致错误):lifetime.commentslifetime.shareslifetime.reach

查找资料 ID

首先使用 get_profiles 查找您的 customer_profile_id 值,然后将其传递给分析或发布工具。

开发

git clone https://github.com/jginorio/sprout-social-mcp.git
cd sprout-social-mcp
npm install
npm run build

本地测试:

SPROUT_SOCIAL_API_KEY=your-token \
SPROUT_SOCIAL_CUSTOMER_ID=your-customer-id \
node dist/index.js

许可证

MIT

Install Server
A
license - permissive license
A
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jginorio/sprout-social-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server