← All articles
Corsair Team

Claude Code for marketing and sales: run your GTM with one MCP

How Corsair runs its own marketing and sales from Claude Code: one MCP connection to LinkedIn, X, Gmail, Slack and PostHog, five scheduled jobs with their prompts, and a Slack approval loop where every edit to a draft becomes a rule the next draft follows.

Card of Corsair's GTM stack on 2 Dec 2026: 11 apps with 869 operations, 439 read, 301 write and 129 destructive, of which the outbound engine uses 28, 10 of them sends or changes.
Card of Corsair's GTM stack on 2 Dec 2026: 11 apps with 869 operations, 439 read, 301 write and 129 destructive, of which the outbound engine uses 28, 10 of them sends or changes.

Claude Code can do marketing and sales work once two things are true: it can reach the apps the work lives in, and a person checks anything sent outside the team. Corsair runs its own go-to-market this way. Claude Code runs on an always-on Linux box, one MCP connection gives it LinkedIn, X, Gmail, Slack and PostHog, and every outbound message waits in a Slack thread for a ✅.

This post covers the setup, five jobs it runs on a schedule with the prompts we use, and the part we'd copy first if we started again. Every edit or rejection of a draft becomes a written rule that the next draft follows.

Why Claude Code works for GTM

Most GTM work is reading across apps, writing something, and following rules about what not to say. Claude Code already does that in a code repo. It searches files, runs commands, and takes standing instructions from markdown files like CLAUDE.md and skills. Give it a folder of GTM instructions instead of source code and the same loop works.

It also runs with nobody at the keyboard. claude -p answers one prompt and exits, which suits a schedule. --resume continues an earlier session, so a Slack thread can stay one conversation for days.

What it lacks out of the box is a signed-in LinkedIn, X, Gmail or PostHog. MCP fills that gap.

How Corsair Ops runs

Corsair Ops is our Slack bot. Each Slack thread is one Claude Code session in the team's workspace folder, with the repos, a shell and a browser. Anyone on the team tags it in a channel or a DM, and it answers in the thread. A thread keeps its context and two threads don't mix. The bridge talks to Slack over Socket Mode, so the box needs no public URL. Every turn goes into a log file, and when someone says "like we did last week", it searches that log.

It also starts work on its own. Each job is a markdown file with a cron schedule in its front matter. The bridge rereads the folder every 20 seconds, so a new job needs no restart. A run with nothing worth saying replies NOTHING_TO_REPORT and the bridge deletes its Slack message, so quiet days stay quiet.

jobs/warm-replies.md
---
title: Warm replies waiting
schedule: 0 11,14,17,20 * * 1-5
channel: C0123456789
---
Find people who replied to our outbound on LinkedIn or X in the last 3 days
and still have no answer from us. For each, oldest first, tag the account's
owner, say in one line what they said and how long they've waited, and give
a reply ready to paste. You don't send anything. Reply NOTHING_TO_REPORT
when nobody is waiting.

A charter file sets the limits. Corsair Ops may read anything the team can, analyse, draft, post in the team's Slack, edit its own jobs, and open up to three pull requests a day on its own initiative. It asks first, in Slack, before anything public or sent outside the team, spending money, merging a pull request, writing to a production database or deleting anything. Every change it makes to itself goes in a changelog.

Set up one MCP for every GTM app

You could add one MCP server per app, but for GTM that means a separate sign-in, a separate set of tool definitions in every request, and a separate idea of what needs approval for LinkedIn, X, Gmail, Slack and the rest. We use one connection, Corsair's.

  1. Sign up at hub.corsair.dev and connect your apps. You can also skip this step and let the agent ask, and it hands you a sign-in link for each app it needs.
  2. Add Corsair to Claude Code for every project with the command below.
  3. Run /mcp in Claude Code, sign in to Corsair and pick a link. A link is a set of connected apps plus a mode that decides what the agent may do without asking.
bash
claude mcp add --scope user --transport http corsair https://mcp.corsair.dev/mcp

Scopes, OAuth and permission rules are in our Claude Code MCP guide.

Corsair's server keeps the same small set of tools however many apps sit behind it. list_operations finds an action, read_data reads with a short script, and run_script makes changes. Scripts run in a sandbox that can only call your connected apps, and the agent never sees the apps' credentials. Tool definitions take context on every request, and we measured how much in Claude usage limits. One server keeps that cost flat as you add apps.

Here is our GTM stack and what each app can do in Corsair's catalog, which labels every operation read, write or destructive. On 2 December 2026 these 11 apps had 869 operations between them: 439 reads, 301 writes and 129 destructive ones.

  • LinkedIn through Unipile: invites, DMs and replies. 148 operations, 21 destructive.
  • X: DMs, replies and search. 259 operations, 53 destructive.
  • Gmail: 24 operations, 2 destructive.
  • Slack: the review queue and every job's output. 47 operations, 2 destructive.
  • PostHog: the signup funnel. 71 operations, 6 destructive.
  • Neon: the product's database, read only. 110 operations, 19 destructive.
  • Google Search Console and OpenSEO: clicks, positions and keyword data. 95 operations, 16 destructive.
  • GitHub: pull requests. 53 operations, none destructive.
  • Vercel: production errors. 55 operations, 9 destructive.
  • Cal.com, next, for briefs before sales calls. 7 operations, 1 destructive.

Our outbound engine uses 28 of those operations: 18 reads and 10 that change something. Corsair marks 3 of the 10 destructive: replying on X, sending an X DM and withdrawing a LinkedIn invite. Reads run without asking. Sends get checked, and the approval loop below is built around that split.

The approval loop that writes its own rules

The outbound engine drafts each LinkedIn and X message with Claude, one lead at a time, from what it found about the person. Each draft is a stripped-down claude -p call with its own system prompt, no MCP servers and no saved session, which keeps it near a thousand tokens. Every draft goes to a Slack channel before it can go out:

  • A ✅ from an approver sends it.
  • A ❌ skips it.
  • A reply in the thread changes it. The reply can be the new message itself or a note like "shorter" or "don't say what Corsair does". Claude works out which, rewrites the draft, and the new version waits for a ✅.

Answers to people who wrote back move faster. On two founders' accounts, a drafted answer goes out on its own an hour after it appears in Slack, unless someone reacts ❌ or replies in the thread. A changed answer waits for a ✅. Right before sending, the engine reads the conversation again and drops the answer if someone already replied by hand.

Every edit and ❌ is stored as an event with the draft before and after. Twice a day a job reads the new ones and asks what each teaches beyond that one lead: a word to avoid, a length, when to offer a call. A fix that only fits one lead, like a wrong company name, teaches nothing and is dropped. Each real lesson becomes one line in a markdown rules file. Every draft and every rewrite reads that file, the newest 6,000 characters of it, and when two rules disagree the later one wins.

A correction made once doesn't need making again. That is the core idea, and it's cheap to copy. We switched the rules file on in December 2026, so we can't show you a year of results yet. This is the prompt behind the job, trimmed:

text
Read the drafts people edited or rejected in #outbound since your last run.
For each, write down what it teaches beyond this one lead. Skip fixes that
only fit one lead. Add each lesson as one line under "## Rules" in
outbound-rules.md: where it applies first, like (all), (x) or (dm1), then
the rule, then whose edit taught it and the date. Sharpen an existing rule
instead of adding a near-copy. Post the new rules here, one line each.

Five jobs to give Claude Code, with prompts

These come from our job files, shortened. Each runs on a cron line and posts to Slack.

1. A morning brief with one experiment

text
Write my morning brief in under 15 lines, covering the last 24 hours.
What each outbound account sent, and who replied. The funnel step by step
against the week before: visits, signups, connected an agent, made a tool
call, came back on a second day. Name the step that leaks most. Search
clicks, and tracked keywords that moved 3 or more places. At most 3 things
that need me today. End with one experiment aimed at the leakiest step:
the change, the number it should move, and how long to run it.

It reads PostHog, the product database and Search Console.

2. Warm replies waiting

The job file above. It runs four times on weekdays, at most 6 people a run, and remembers whom it already nudged so it doesn't nag.

3. X posts from people stuck connecting their apps

text
Search X for posts from the last 12 hours by people trying to connect
Claude, ChatGPT or Cursor to Gmail, Slack, Notion or Calendar and failing.
Keep real people with a real problem we solve. For each, draft a reply that
answers their question first, in a sentence or two the way an engineer
would, and mentions Corsair in one plain line only where it solves it.
Nobody posts automatically.

It searches about 60 posts a run through Corsair's X integration, at $0.005 a post. A person reads each card and posts the reply by hand.

4. Production errors

text
Read the last 3 hours of runtime errors on our production projects. Report
only what's new or growing, and anything on sign-in, connecting an app or
the MCP endpoint. One line each: what fails, how often, since when, and the
likely cause from the logs and the code. If the fix is small and clear,
open a pull request with evidence. Never merge.

5. A note from the founder to new signups

text
Look at people who signed up since the last run and research each briefly.
For each founder or engineer who would use Corsair, at most 5 a run, write
a three-line note from Dev that mentions one specific thing about them and
asks one easy question. Tag Dev. You never send it.

Dev sends the ones he likes from his own email.

A sixth job runs at night. It reads the day's conversations, the job runs and the drafts people changed, then turns each correction into a memory note or an edit to its own job files, logged in the changelog. It's the rules-file loop again, pointed at the jobs themselves.

What to keep a human on

  • Anything public or sent to someone outside the team. Outbound waits for a ✅ or the one-hour window, and replies to strangers on X are posted by hand.
  • Spending money, credits included.
  • Merging pull requests and writing to production databases.
  • The goals and the voice. Only a person can change the charter's goals or its "ask first" list. The agent may only add to the charter's "what you learned" section.

Corsair enforces part of this outside the prompt, so a confused agent can't talk its way past it. Each link has a mode that Corsair checks on every action, whatever the client allows. Read refuses writes, Cautious asks before destructive actions such as deletes, and Strict asks before every write. An approval covers one action, once.

Where it breaks

  • LinkedIn rate-limits chat reads. When it returns a 429, the engine drafts from the copy of the thread it stored, which may miss the newest messages.
  • DMs typed in the X app are end-to-end encrypted, so the engine can't always see that someone already answered by hand.
  • Corsair scripts stop at 25 seconds. A long job, such as a crawl, returns an id the agent waits on.
  • A Claude Code session with a shell on a box that holds your repos can do a lot. Keep the list of Slack users who can drive it short.

Other teams running ops on Claude Code

Asteroid, from YC's Winter 2025 batch, open-sourced its setup as headless-ops, about 1,800 lines that "run your ops on Claude Code". It runs on one box behind a Cloudflare tunnel, starts from Slack, cron and webhooks, and reaches its CRM, Slack and web search through small command-line tools that hold the keys. The agent drafts and a person sends, and the agent can't write to the CRM itself.

Prized, also a YC company, runs itself through an agent called Hucks that sees email, Slack, the production database and revenue, and turns each approval into a rule. Their talk is We Built a Company Agent and Tried To Replace Ourselves.

All three keep a person on what goes out. The difference is how the agent reaches apps. Asteroid's headless-ops wraps each API in a script, and we put every app behind one MCP connection with a permission mode.

Try it with your own apps

Sign up at hub.corsair.dev, connect the apps your GTM runs on, and add https://mcp.corsair.dev/mcp to Claude Code. The Corsair MCP docs list every tool and mode, and the MCP gateway page explains links and approvals.

FAQs

Can marketers use Claude Code without being developers?

Yes, for the work in this post. The jobs are plain-language markdown files, and approving drafts happens in Slack. Setting up the always-on machine and the Slack bridge needs someone comfortable in a terminal, but after that, changing a job means editing a text file.

Do I need a separate MCP server for each app?

No. One Corsair connection covers every app on your link, and Corsair's catalog listed 855 apps on 2 December 2026. Claude Code sees the same small set of tools however many apps you connect, so tool definitions don't crowd the context window as the stack grows.

How do I stop Claude Code from sending something wrong?

Use two checks. Put outbound drafts through a review step where a person approves each one, and set the Corsair link's mode: Strict asks before every write, and Cautious asks before destructive actions. Corsair checks the mode on every call, whatever the client allows.

Can Claude Code run marketing tasks on a schedule?

Yes. claude -p runs one prompt and exits, so cron can start it. Our Slack bridge runs each job file on its cron line, posts the result in a channel, and deletes the post when there's nothing to report.

Is it safe to give Claude Code access to LinkedIn and Gmail?

The agent never holds the credentials. Corsair keeps them and runs the agent's scripts in a sandbox that can only call your connected apps. On a Strict link, a prompt that goes wrong still can't send anything without an approval.