KosmoKrator

marketing

Sprout Social MCP Integration for LangChain

Connect Sprout Social to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Manual OAuth token auth

Connect Sprout Social to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Sprout Social MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-sproutsocial": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=sproutsocial",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=sproutsocial --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Sprout Social instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Sprout Social Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Sprout Social integration catalog.

MCP toolSource functionTypeDescription
integration__sproutsocial__sproutsocial_list_profiles sproutsocial.sproutsocial_list_profiles Read List all social media profiles connected to the Sprout Social account. Returns profile IDs, service types (e.g., Twitter, Facebook, LinkedIn), and display names.
integration__sproutsocial__sproutsocial_get_profile sproutsocial.sproutsocial_get_profile Read Get details of a specific social media profile in Sprout Social by its ID. Returns profile service type, display name, and account metadata.
integration__sproutsocial__sproutsocial_list_posts sproutsocial.sproutsocial_list_posts Read List posts across social profiles in Sprout Social. Optionally filter by status (sent, scheduled, draft) and paginate results.
integration__sproutsocial__sproutsocial_create_post sproutsocial.sproutsocial_create_post Write Create and schedule a new social media post in Sprout Social. Provide the text content, target profile IDs, and optionally a scheduled time or media attachments.
integration__sproutsocial__sproutsocial_list_messages sproutsocial.sproutsocial_list_messages Read List inbox messages and conversations in Sprout Social. Returns message IDs, sender info, and content snippets with pagination support.
integration__sproutsocial__sproutsocial_get_message sproutsocial.sproutsocial_get_message Read Get details of a specific message in Sprout Social by its ID. Returns sender info, message content, attachments, and conversation metadata.
integration__sproutsocial__sproutsocial_get_current_user sproutsocial.sproutsocial_get_current_user Read Get the currently authenticated Sprout Social user profile. Returns the user name, email, and account info.

Related Sprout Social Pages