How to automate LinkedIn outreach with Claude Code, step by step
To automate LinkedIn outreach with Claude Code, you connect it to a tool that can act on LinkedIn, usually through an MCP server, then ask it in plain English to load leads, check campaigns and sort replies. Claude Code plans and handles the data; the outreach tool does the sending under its own daily limits. LinkedIn's terms prohibit automated access, so the realistic goal is less manual work at a modest pace, not more volume.
This guide walks through a concrete setup: Claude Code plus approacher, an app for Windows, Mac and Linux that runs LinkedIn campaigns from your own computer and exposes a local MCP server. The same logic applies to any outreach tool with an MCP or CLI. You will see what each piece does, the exact commands, prompts that work, and where the limits are.
What does Claude Code actually do in LinkedIn outreach?
Claude Code is Anthropic's coding assistant. It runs in the terminal, in code editors and in the Claude desktop app. On its own it cannot open LinkedIn. It gains abilities through MCP (Model Context Protocol), an open standard Anthropic released on November 25, 2024, that lets an assistant call tools published by other programs. Each MCP server declares a list of tools with names and parameters, and Claude decides when to call them based on what you ask.
For LinkedIn, people wire this up in three ways:
| Approach | How it touches LinkedIn | Who controls the pace | Where your session lives |
|---|---|---|---|
| Browser control (Claude drives a browser through a Chrome extension, a skill or Playwright) | Claude clicks and types in your logged-in browser | The model, prompt by prompt | Your browser |
| Cloud outreach tool with an MCP | The vendor's servers run your account | The vendor's scheduler | The vendor's servers (often a copy of your session cookie) |
| Local outreach app with an MCP (this guide) | An app on your PC runs campaigns in its own browser window | The app's scheduler and daily caps | Your computer |
The split that matters is who decides how fast actions go out. If the model clicks the buttons, one vague prompt can fire off dozens of actions in minutes. When a scheduler with hard caps sits between Claude and LinkedIn, a bad prompt can still put the wrong people in a queue, but it cannot make anything go out faster. For a deeper comparison of server types, see LinkedIn MCP servers explained.
What you need before you start
- Claude Code, installed and logged in. It needs a Claude subscription or an Anthropic Console (API) account, billed separately by Anthropic.
- A Windows 10 or 11 computer, a Mac with an Apple chip (macOS 12 or newer) or 64-bit Linux (Ubuntu 22.04, Debian 12 or Mint 21, or newer) for approacher. There is no mobile version. The computer has to stay on with the app open (it can sit in the system tray and start with the system) and online the whole time, because the license is checked online every 3 minutes.
- A LinkedIn account you are willing to put at some risk. More on that below.
- A lead list with LinkedIn profile URLs, or a LinkedIn or Sales Navigator search the app can read.
approacher's interface is in Brazilian Portuguese today, and the price is R$ 189 per seat per month, billed in Brazilian reais, with a 7-day free trial that needs no card. The menu names below are given in Portuguese with a translation.
How do you connect Claude Code to a LinkedIn tool over MCP?
- Install the app and log in to LinkedIn inside it. approacher runs its own embedded browser with a separate profile. You type your LinkedIn credentials by hand in that window; the app never stores or types your password.
- Turn on the local API. Go to Configurações (Settings), Integrações (Integrations), card "API local e MCP", button "Ligar API local". The app generates a token that starts with
abd_. The API is off by default and listens only on127.0.0.1, port 9334. - Copy the Claude Code command from that card. It comes filled in with the right paths for your machine and looks like this:
Theclaude mcp add approacher -- "node" "C:\Users\you\...\approacher-mcp.mjs"--separates Claude Code's own options from the command that launches the server. - Pick a scope if you need one. By default Claude Code adds a server with
localscope, available only in the folder where you ran the command. Add--scope userbefore the name to use it in every project. - Check the connection. Run
claude mcp listin the terminal and look for approacher marked as connected, or type/mcpinside a session. - Send a test prompt: "What's the approacher status today?" The answer should include the app version, whether automation is running or paused, and how much of today's limits has been used.
If you get a 403 error, the API is switched off in the app. A 401 means the token is wrong, which happens right after you click "Trocar token" (rotate token): the old one stops working immediately.
What can Claude do once it's connected?
approacher's MCP exposes four tools, and it helps to know exactly what they are so you don't ask for something that isn't there:
| Tool | What it does |
|---|---|
estado (status) | App version, whether automation is on or paused, account state, and today's usage against each limit |
listar_campanhas (list campaigns) | Each campaign's id, name, status, type, and counts: contacts, active, finished, replied |
listar_conversas (list conversations) | Conversations that got a reply, newest first, with campaign and a text snippet; 1 to 500, default 50 |
adicionar_contatos (add contacts) | Saves contacts and, with a campanha_id, enrolls them in that campaign; up to 5,000 per call |
Each contact needs a perfil (profile URL) and can carry a name, company and title. Contacts without a profile URL are dropped and counted as discarded in the response.
The MCP does not create campaigns, write sequences, search LinkedIn, read profiles or send a message on the spot. You build the campaign and its messages in the app; Claude feeds it and reads the results. There is no AI inside approacher either: Claude Code is the part that interprets your request.
A realistic workflow, prompt by prompt
Here is a sequence that uses Claude for what it is good at (cleaning files, cross-checking data, summarizing) and leaves sending to the scheduler.
1. Build the campaign in the app
Create a campaign in approacher with the steps you want: for example, visit profile, connection request with a short note, and a message once the request is accepted. You can ask Claude to draft the note in the chat, then paste it into the app yourself. A free account can add a note to only a handful of connection requests a month (LinkedIn's help pages say three or five), so check the guide to LinkedIn invite limits before you plan the note step.
2. Clean the list and load a small batch
Read leads.csv in this folder. Drop duplicates, rows without a
linkedin.com/in/ URL, and anyone whose company is in customers.csv.
Show me the count and the first 10 rows. Then add only the first
25 to campaign 3 and tell me how many were added and discarded.
Starting with 25 contacts lets you watch the whole sequence run once before you queue hundreds. Adding 2,000 contacts later puts 2,000 people in the queue, not 2,000 invites in one day.
3. Check progress without opening the app
List my active campaigns and, for each, the share of finished
contacts who replied. Then tell me how much of today's invite
limit is left.
4. Sort replies, then answer them yourself
Read the last 50 conversations with replies. Group them into:
wants a call, wants more info, not interested, wrong person.
Give me a table with name, campaign and a one-line summary.
Anyone who replies on any channel is removed from the sequence in every campaign they were in, so follow-ups stop on their own. The reply itself is better written by you: a human answer to an interested person is where the conversation is won or lost.
How many actions per day is safe?
There is no officially safe number. LinkedIn's help center says there is an invitation limit, without publishing the figure, and that the restriction for reaching it typically lasts one week. People who prospect on LinkedIn have reported a ceiling near 100 invitations per week since 2021. Treat that as field observation that varies by account, not as a rule.
approacher's defaults sit below that. Out of the box it sends 15 connection requests per day and 80 per week, plus 30 messages per day. It works Monday to Friday, 9am to 6pm Brasília time, and waits 5 to 12 minutes between actions. There are three presets: Cuidadoso (careful, 10 invites a day), Equilibrado (balanced, 15 a day and 60 a week) and Acelerado (fast, 25 a day). Every limit is visible and editable, and the screen shows how much of each was used today. There is also a ramp for new accounts. It starts at 5 invites a day and adds 2 per day, but it is off by default. Turn it on for a fresh or quiet profile.
Whatever you ask Claude, these caps still apply, because the MCP only adds people to the queue.
What are the risks, honestly?
- LinkedIn's terms. The User Agreement prohibits software, bots and scripts that access the site or send messages, and LinkedIn keeps a help page on prohibited software and extensions. Using Claude does not change that; any tool acting through your session falls under it.
- Restriction. Volume, speed and many pending invites raise the odds. Slower pacing lowers them but does not remove them. approacher does not get around checkpoints, CAPTCHAs or identity checks: it stops and you resolve them in the window.
- What goes to the model. Local does not mean nothing leaves the machine. Campaign names, reply snippets and the contacts you ask Claude to add travel to Anthropic as part of the chat.
- What stays local. Contacts, campaigns, conversations and the LinkedIn session stay on your computer, sending goes out from your own internet connection with no proxy, and the API rejects requests from web pages opened in a browser. Without the token, no other program on the PC gets in.
The LinkedIn MCP server overview compares how other setups handle your session and credentials if you want to weigh alternatives before installing anything.
Frequently asked questions
Can Claude Code send LinkedIn messages by itself?
Only if you give it a tool that can. Claude Code has no LinkedIn access on its own. With approacher's MCP it cannot send anything directly: it adds contacts to a campaign you built, and the app sends them on its own schedule and daily limits.
Is automating LinkedIn with Claude Code against LinkedIn's rules?
LinkedIn's User Agreement prohibits using software, bots or scripts to access the site or send messages, and that applies no matter which assistant gives the instructions. Any setup that acts through your logged-in session carries a risk of restriction. Low volume and steady pacing reduce it; nothing removes it.
How many connection requests per day is reasonable?
LinkedIn does not publish a number. Its help center says there is an invitation limit and that the restriction for reaching it typically lasts one week. People who send invitations for a living report a ceiling around 100 per week and spread it across workdays. approacher ships with 15 invites per day and 80 per week as the default.
Do I need to give my LinkedIn password or li_at cookie to Claude?
Not with a local setup. In approacher you log in to LinkedIn by hand in the app's own window; the app never stores or types your password, and the session stays on your computer. Claude Code only talks to the app through a local token.
What does Claude actually see from my campaigns?
Whatever the MCP tools return in the chat: campaign names and counts, snippets of replies, and the contacts you ask it to add. That text goes to Anthropic as part of the conversation. Your full contact base, the LinkedIn session and the token stay on your machine.
Does this work on a Mac?
Yes. approacher runs on Macs with Apple chips (macOS 12 or newer), on Windows 10 and 11 and on 64-bit Linux. There is no mobile version. Claude Code itself runs on macOS, Linux and Windows.
Sources
- Claude Code Docs: Connect Claude Code to tools via MCP
- Model Context Protocol: What is MCP?
- Anthropic: Introducing the Model Context Protocol (Nov 25, 2024)
- LinkedIn Help: Invitation limit reached
- LinkedIn Help: Prohibited software and extensions
- LinkedIn User Agreement
- IntoTheMinds: LinkedIn limits invitations to 100 per week
- Claude Code Docs: Overview