Back to Blog
GuideApr 30, 20269 min read

AI for Customer Success: Stripe, Slack and Linear in One Agent

MP

MCP Playground

MCP Playground

๐Ÿ“– TL;DR

  • Three official MCP servers: Stripe (mcp.stripe.com), Slack (mcp.slack.com/mcp), Linear (mcp.linear.app/sse)
  • One agent that sees billing health, conversation history and open tickets simultaneously
  • Use a restricted Stripe key with read-only scopes โ€” never a full secret key for a shared agent
  • Start with the Customer Success template โ€” pre-wired, under 3 minutes to set up

Customer success work is inherently cross-tool. Understanding a customer's health means looking at their billing status in Stripe, their support history in Slack, and their open feature requests in Linear โ€” simultaneously. Most CSMs do this by switching tabs and building a mental picture from fragments.

This guide shows you how to connect all three to a single AI agent so you can ask "Give me the full picture on Acme Corp" and get billing health, recent Slack activity and open Linear tickets in one answer.

What You Can Do With This Agent

Customer health snapshot

"Give me the full picture on Acme Corp โ€” subscription, last payment, recent Slack activity, and open Linear tickets."

Churn risk identification

"Which customers had a failed payment this week and also messaged us in Slack about billing?"

Renewal preparation

"List accounts renewing in 30 days, their plan, and any open Linear issues to address before the call."

Ticket creation from Slack

"Find the Slack thread where Acme asked about the export feature and create a Linear ticket tagged as a customer request."

Billing triage

"Which customers have had more than two failed payments this month and also messaged us in Slack about it?"

Weekly CS summary

"Summarise this week: new subscriptions, churns, billing issues, top Slack support topics, and Linear customer requests."

The Three Official MCP Servers

Tool MCP Server URL Transport Token
Stripe https://mcp.stripe.com/ HTTP Restricted key (rk_live_ or rk_test_)
Slack https://mcp.slack.com/mcp HTTP Bot token (xoxb-โ€ฆ)
Linear https://mcp.linear.app/sse SSE Personal API key

โš ๏ธ Use a restricted Stripe key, not a full secret key

Create a restricted key in Stripe Dashboard โ†’ Developers โ†’ API keys โ†’ Create restricted key. Grant read access only to Customers, Subscriptions, and Invoices. Restricted keys start with rk_live_ and can be revoked instantly without rotating your full secret key.

Step 1 โ€” Get Your Three Tokens

Stripe restricted API key

  1. In Stripe go to Developers โ†’ API keys โ†’ Create restricted key
  2. Name it (e.g. "CS Agent MCP") and grant read access to: Customers, Subscriptions, Invoices, Payment intents
  3. Click Create key โ€” it starts with rk_live_ or rk_test_

Slack bot token

  1. Go to api.slack.com/apps โ†’ create a new app โ†’ OAuth & Permissions โ†’ Bot Token Scopes
  2. Add: channels:read, channels:history, groups:history, search:read, users:read
  3. Install to workspace, copy the Bot User OAuth Token (xoxb-โ€ฆ)
  4. Invite the bot to relevant channels: /invite @your-bot-name

โš ๏ธ Two Slack caveats CS teams should know:

  • groups:history is needed to read private channels (CS teams often have per-customer private channels). For DMs add im:history and mpim:history.
  • search:read requires a paid Slack plan (Pro, Business+, or Enterprise). On Free workspaces, message-search prompts will fail; channel-by-channel lookups still work.

Linear personal API key

  1. In Linear go to Settings โ†’ API โ†’ Personal API keys โ†’ Create key and copy it

โš ๏ธ Linear key note: Linear personal API keys are not scope-limited โ€” they grant full read and write access to everything that Linear user can see (all teams, all projects, all issues). Treat them like a password. For shared agents, consider creating a dedicated Linear user with restricted team membership rather than using a personal key from an admin account.

Step 2 โ€” Connect in Agent Studio

Fastest path: use the pre-built template

The Customer Success template has Stripe, Slack and Linear pre-wired with the right system prompt. Click it, paste your three tokens (one per server slot), and start chatting.

Use Customer Success Template โ†’

To set up manually in MCP Agent Studio:

  1. Click + Add Server โ†’ https://mcp.stripe.com/, select HTTP, paste Stripe restricted key
  2. Add second server โ†’ https://mcp.slack.com/mcp, select HTTP, paste Slack bot token
  3. Add third server โ†’ https://mcp.linear.app/sse, select SSE, paste Linear API key
  4. Choose a model โ€” Claude Haiku 4.5 handles most routine CS queries at lower cost; use Claude Sonnet 4.6 for complex churn analysis that spans all three tools

The Churn Signal Workflow

The highest-value use for CS teams is early churn detection. A practical weekly routine:

  1. Monday check: "Which customers had a failed payment in the last 7 days and also sent a Slack message to our support channel?" โ€” surfaces the intersection of billing trouble and active frustration.
  2. Renewal prep: "List all accounts renewing in the next 30 days with their Stripe plan, last Slack contact date, and any open Linear bugs." โ€” everything you need for a renewal call in one response.
  3. Escalation triage: "Which customers sent more than 3 Slack messages this week and have a subscription over $500/month?" โ€” catches high-value customers struggling before they file a cancellation.

Which Model to Use

  • Claude Haiku 4.5 โ€” handles most routine CS queries reliably at lower credit cost. Good for queries your team runs multiple times per day: "pull up Acme's subscription", "what did they ask about this week".
  • Claude Sonnet 4.6 โ€” worth the extra cost for complex cross-tool analysis like churn risk scoring or renewal preparation that needs to reason across all three data sources accurately.
  • DeepSeek V4 Pro โ€” strong alternative to Sonnet for structured data queries. Considerably cheaper and accurate on well-defined lookups.

Set up your Customer Success agent in under 3 minutes

Official Stripe ยท Slack ยท Linear MCP servers ยท Any AI model ยท Free credits on sign-up

Frequently Asked Questions

Is it safe to connect Stripe to an AI agent? +
Use a restricted API key with read-only permissions scoped to Customers, Subscriptions and Invoices only. Restricted keys are created in Stripe Dashboard under Developers โ†’ API keys. They can be revoked instantly without rotating your full secret key.
Can the agent see Stripe card numbers or PCI data? +
No. Stripe's API never returns full card numbers โ€” they are tokenised at the point of capture. The agent sees the same data as the Stripe Dashboard: last 4 digits, card brand, expiry, and billing status.
Can I share this agent with my whole CS team? +
Yes. Save the agent and set visibility to Team. Team members open the saved agent with pre-configured servers and model. Each member supplies their own Slack bot token; the Stripe restricted key and Linear key can be shared if your team policy allows.
What if I use Intercom or Zendesk instead of Slack? +
Replace the Slack server with your support tool's MCP server if one exists. MCP Agent Studio supports up to 4 servers per agent, so you can also add Intercom or Zendesk alongside Stripe and Linear. Check the MCP server registry for community-built connectors for those platforms.

Related Guides

MP

Written by MCP Playground

15+ years in product development. AI enthusiast building developer tools that make complex technologies accessible to everyone.

Test any MCP server with 30+ AI models โ€” free

Connect any MCP endpoint and chat with Claude, GPT-5, Gemini, DeepSeek and more. Watch every tool call live.

โœฆ Free credits on sign-up ยท no credit card needed

Try for Free โ†’