LinkedIn MCP server: what it is, the three kinds, and how to run one locally with Claude Code and Codex
A LinkedIn MCP server lets an AI assistant like Claude Code or Codex read and run your LinkedIn prospecting through a standard set of tools. LinkedIn doesn't publish one. The servers out there either use the official API, which opens almost nothing useful for prospecting, or your logged-in session. What really separates them is where that session lives and who controls the pace of the actions.
This page covers what the protocol does, the three ways people connect LinkedIn to an assistant, what each one means for your account, and how to set up approacher's local server step by step. The focus is prospecting: building lists, filling campaigns and reading replies. Posting content is a different job and isn't covered here.
What is MCP?
MCP stands for Model Context Protocol, an open standard Anthropic released on November 25, 2024 to connect AI assistants to outside systems. The official docs compare it to a USB-C port: a system ships an MCP server once, and every compatible client can use it.
In practice, an MCP server declares a list of tools, each with a name, a description and parameters. The assistant reads that list and decides which tool to call based on what you asked in plain English. Claude, ChatGPT, Claude Code, Codex, VS Code and Cursor are among the clients that support MCP.
Servers come in two shapes. A stdio server runs as a program on your machine and talks to the assistant through standard input and output. A remote server sits on the internet and is reached over HTTP. For LinkedIn, that choice decides where your session lives.
What kinds of LinkedIn MCP servers exist?
There are three families, and they do very different things. The last row shows where approacher fits.
| Type | How it gets into the account | What it can do | Where the session lives |
|---|---|---|---|
| Official API server | OAuth login through a developer app | For a regular developer: name, headline, photo, email, and posting on your behalf. People search and sales data require approval as a partner | API token, on the client |
| Open-source server using a browser session | Opens a browser for you to log in, or imports cookies from your browser | Varies by project: read profiles, search people, read the inbox and, in many, send invites and messages | On your computer |
| Hosted service | For prospecting, usually your session cookie or your login; some hosted servers use the official API instead | Whatever the service offers, running your account on its servers | On the service's servers |
| approacher (Windows, Mac and Linux app) | You log in yourself, in the app's window | Check status and limits, list campaigns, read replies, add contacts to campaigns | On your computer |
The official API doesn't put your account at risk, but it doesn't help with prospecting either. LinkedIn's page on API access lists only three permissions open to everyone: basic profile, email, and posting on the member's behalf. Anything sales related goes through the Sales Navigator partner program, which LinkedIn has to approve.
The other two families use your session, and that's where LinkedIn's User Agreement applies: it prohibits software and bots that access the site. The most popular open-source LinkedIn MCP server says so itself: its README warns that accounts using automated tools can be restricted or banned. So the useful question isn't whether a session-based server carries risk, but who controls how many actions go out and how fast.
What does approacher expose over MCP?
approacher is a Windows, Mac and Linux program that runs prospecting campaigns on LinkedIn, WhatsApp, email, Instagram and Facebook from your own computer. Its MCP server is a doorway that lets Claude Code or Codex talk to the running app. It has four tools. The tool names are in Portuguese, because the app's interface is in Portuguese today, but you ask for things in English and the assistant picks the right tool.
| Tool | What it returns or does |
|---|---|
estado (status) | App version, whether automation is on or paused, license status, and how much of today's limits has been used |
listar_campanhas (list campaigns) | Each campaign with id, name, status, type and counts: contacts, active, finished and replied |
listar_conversas (list conversations) | Conversations that got a reply, newest first, with campaign and snippet; 1 to 500, default 50 |
adicionar_contatos (add contacts) | Saves contacts to your base and, with campanha_id, puts them in a campaign; up to 5,000 per request |
Each contact needs perfil (the profile URL, required) and can carry nome (name), empresa (company) and cargo (title). A contact without a profile URL is dropped and counted as discarded in the response.
approacher's MCP server doesn't scrape profiles, doesn't run LinkedIn searches and doesn't send messages on the spot. The app's engine does the sending, through the campaign queue. Out of the box that means 15 invites and 30 messages a day, weekdays from 9 a.m. to 6 p.m. Brasília time, with 5 to 12 minutes between actions. You can change all of that in the app. Asking Claude to add 2,000 contacts puts 2,000 contacts in the queue, not 2,000 invites in one day. The app also stops when LinkedIn asks for a verification, and it doesn't get around checkpoints or CAPTCHAs.
Besides MCP, the app has a local HTTP API on port 9334 of 127.0.0.1 and a command-line tool, for people who'd rather script than chat. All three use the same token and the same rules.
How do you set up a LinkedIn MCP server in Claude Code or Codex?
- Install approacher and leave it open. It runs on Windows 10 and 11, on Macs with Apple chips (macOS 12 or newer) and on 64-bit Linux (Ubuntu 22.04, Debian 12 or Mint 21, or newer), and has to be open whenever the assistant uses the server. Log in to LinkedIn through the app's own window.
- Turn on the local API. Go to Configurações (Settings), Integrações (Integrations), the "API local e MCP" card, and click "Ligar API local". The app creates a token that starts with
abd_. The API ships turned off. - Copy the command for your assistant. The card shows one ready-made command for Claude Code and one for Codex, with the right folder path for your machine already filled in.
- Run it once in a terminal. For Claude Code it looks like this (the card fills in the paths):
For Codex, the same thing withclaude mcp add approacher -- "node" "...\approacher-mcp.mjs"codex mcp add approacher -- .... - Check that it connected. In Claude Code, run
claude mcp listin the terminal or/mcpinside a session. In Codex,codex mcp listor/mcp. - Try a test prompt, such as "what's the status of approacher today?" The answer should include the version and today's limits.
In Claude Code, a server added without options goes into the local scope and only works in the folder where you ran the command. To use it in every project, add --scope user before the name. In Codex, the setting goes into ~/.codex/config.toml.
A 403 error means the API is turned off in the app. A 401 means the token is invalid, which happens after you click "Trocar token" (rotate token): the old one stops working immediately.
What can you ask Claude to do with it?
The payoff comes from combining what the assistant already does well (reading files, cleaning spreadsheets, cross-checking data) with the app's queue. A few prompts that work with the four tools:
- "List my active campaigns and tell me which one has the highest ratio of replies to finished contacts."
- "Read the last 50 conversations with a reply and sort them into people who asked for a meeting, people who asked for more info, and people who said no." Replying to the lead is still up to you.
- "Take leads.csv in this folder, remove duplicates and rows without a profile URL, and add the rest to campaign 3."
- "Compare the customer export from my CRM with the contacts who replied this week and tell me who's already a customer."
- "How much of today's invite limit have I used?"
For a longer walkthrough of running outreach this way, see LinkedIn outreach with Claude Code. If you're writing the invite that goes into the campaign, keep it short and specific, and keep the volume in mind: the LinkedIn invite limit page covers the weekly cap and why going slower matters.
Why run it locally instead of handing your cookie to a hosted server?
Because your LinkedIn session is the thing you have the most to lose. With a hosted service that runs on your cookie, that cookie sits on a third party's server, and the actions come from an address that isn't yours. approacher works differently:
- The app never stores or types your LinkedIn password. You log in yourself in its window.
- Contacts, campaigns, conversations and the session stay on your computer and never pass through our servers.
- Actions go out over your own internet connection, with no proxy.
- The API listens only on
127.0.0.1and refuses requests from web pages open in a browser, because it checks where each request comes from. Without the token, no other program on the same machine gets in.
| Question | Hosted MCP service | Local server (approacher) |
|---|---|---|
| Where is your session? | On the provider's server | On your computer |
| Whose IP do actions come from? | The provider's, or a proxy | Yours |
| Who sets the pace? | The service, or the assistant | The app's daily limits and schedule, which you can see and edit |
| Does it need to stay running? | No, it runs in the cloud | Yes, the app has to be open on your PC |
Local doesn't mean nothing leaves the machine. Whatever a tool returns to the assistant, like campaign names and conversation snippets, goes to the model provider (Anthropic or OpenAI) as part of the chat. The app itself has no AI built in: Claude Code or Codex interprets your request. The app also needs a constant internet connection, because the license is checked online. And none of this removes the restriction risk that comes with automating LinkedIn. What lowers that risk is a slow pace.
What does it cost and what do you need?
The MCP server comes with the app at no extra charge. approacher costs R$ 189 per seat per month, billed in Brazilian reais (your bank applies its own exchange rate), with no contract and a 7-day free trial that doesn't ask for a card. You need Windows, a Mac with an Apple chip or 64-bit Linux, an always-on internet connection, and an MCP-capable assistant such as Claude Code or Codex, which have their own plans and pricing. There is no mobile version, and the interface is in Portuguese. Your messages go out in whatever language you write them in.
Frequently asked questions
Is there an official LinkedIn MCP server?
We found none as of November 22, 2026. Every LinkedIn MCP server you find on GitHub or in MCP directories is a third-party project. Some use the official API, which gives a regular developer little more than sign-in, email and posting. The rest use your logged-in browser session or your session cookie.
Can a LinkedIn MCP server get my account restricted?
Yes. LinkedIn's User Agreement prohibits using software or bots to access the site, and any MCP server that drives your own session falls into that category. The risk grows with volume and speed. Going slowly lowers it, but it never goes to zero.
Do I have to hand over my li_at cookie or password?
It depends on the server. Hosted prospecting services usually ask for your session cookie so they can run your account on their machines. A local server uses the session that already lives on your computer. With approacher you log in to LinkedIn yourself, in the app's own window, and the app never stores or types your password.
Will approacher's MCP server send a LinkedIn message the moment I ask Claude to?
No. The server only reads status, lists campaigns, reads conversations that got a reply, and adds contacts. A contact added to a campaign joins the queue and goes out through the app's engine, under the same daily limits, schedule and spacing as any other campaign.
Does it work with Codex and other MCP clients?
The server speaks MCP over stdio, the standard transport for local servers. The app shows a ready-made command for Claude Code and another for Codex. Any other client that can launch a stdio server can run the same command.
What does Claude or Codex learn about my campaigns?
Whatever a tool returns in the chat: campaign names and numbers, conversation snippets and the contacts you ask it to add. That goes to the model provider as part of the conversation. Your full contact base, your LinkedIn session and the API token stay on your computer.