Updated 23 October 2026
LinkedIn connector for Claude Code

Post to LinkedIn from Claude Code

Claude Code turns what you shipped (the README, the commits, the release notes) into a LinkedIn post in the voice of your recent ones, shows it to you in the terminal, and schedules or publishes it once you approve.

Free for 2 social accounts. No card, no API key.

claude.ai

Write a LinkedIn post announcing our autumn menu, in our usual voice.

Checked your connected LinkedIn account

Here's a draft. Nothing goes out until you confirm.

Draft · Fennel Street Kitchen · LinkedIn Page

Our autumn menu is in. Three new dishes, one returning favourite, and the pumpkin soup we have been testing since August. Tables for Friday are open now.

Saved as a draft in Antwork.

Open in Antwork
In the chat

Then ask for anything

Ask Claude Code things like these. It shows you the post before anything is scheduled or published.

1 · Attach and ask

“Post this menu PDF to our company page as a carousel, with a short intro.”

autumn-menu.pdfPDF · 6 pages

Profile or company page. Attach images, a video or a PDF; a PDF goes out as a swipeable document post.

2 · It sounds like you

“Make the first line a stronger hook.”

Claude Code reads your recent posts first: a Company Page's from LinkedIn, a profile's from what you published through Antwork.

3 · You pick the time

“Schedule it for Tuesday at 8am.”

ScheduledTuesday · 08:00LinkedIn

Publish now or give a day and time. It sits in Antwork's calendar, where you can move or cancel it.

4 · Ask how it did

“Which of my last ten posts got the most comments?”

Antwork pulls each post's numbers from LinkedIn every few hours.

5 · Fix

“My post failed to publish. Find out why and retry it.”

Failed · LinkedIn timed outRetried and published

A failed post comes back with the reason. Retrying it is one message.

The short answer

Can Claude Code post to LinkedIn?

Yes, through a connector.

Claude Code can post to LinkedIn through Antwork, a hosted Model Context Protocol (MCP) server. Run claude mcp add antwork --transport http https://api.antwork.io/mcp, type /mcp in Claude Code to approve Antwork in the browser, then ask Claude Code to connect LinkedIn and approve it once on LinkedIn's own consent screen. From then on Claude Code drafts, schedules and publishes posts to your personal profile or a Company Page you manage, from the terminal. Antwork calls LinkedIn's official API with the scopes you granted, so there is no API key, no LinkedIn developer app to register and no session cookie to hand over.

LinkedIn MCP servers compared: which post through the official API, and which drive your browserLinkedIn text formatter: bold, italic and lists for the post, before you schedule it
  • Your profile or a Company PagePost as yourself, or as a Page you administer.
  • LinkedIn's official APIOn scopes you approve on LinkedIn's own consent screen. No browser automation.
  • You approve every postDrafting and publishing are separate steps. Nothing goes out until you say so.
Set it up

Connect Claude Code to LinkedIn in 3 steps

A few minutes, in Claude Code on the web or the desktop app. Needs Claude Pro, Max, Team, or an API key.

  1. 1Step 1 of 3
    Authorize with /mcpType /mcp inside Claude Code and pick antwork. It opens an OAuth consent screen in your browser; approving it makes the connection live and the token refreshes itself.
  2. 2Step 2 of 3
    Connect the social accountAsk Claude Code to connect your account and it returns a connect link per platform. Authorize once and Antwork holds and refreshes that token for you.
  3. 3Step 3 of 3
    Add the skill (optional)The open-source Antwork skill teaches the agent the right tool order — pull context, draft, then schedule or publish as a second explicit step.“Draft a LinkedIn post about what we shipped this week.”
Before you post

What LinkedIn accepts

Claude Code checks these before it drafts, so a post does not fail at publish time. They come from the same rules Antwork's publisher enforces.

Account
Your profile or a Company Page
Post as yourself, or as a Page you administer.
Images
.jpg, .jpeg, .png, .gif, up to 5 MB
up to 1920x1080 · up to 9 per post
Video
.mp4, up to 1 GB
up to 4096x2304 · 30 min max · one per post · Antwork's upload limit; the platform takes up to 5 GB
Documents
.pdf, up to 100 MB
one per post
Per post
Up to 9 items
Images and video cannot share one post.
Text
Up to 3,000 characters
Hashtags and links count toward the limit.
Your options

Three ways to get Claude Code posting to LinkedIn

Each works. They differ in where the work happens and how much you set up.

Antwork connector
Where you ask
In the Claude Code chat
Setup
Paste one URL, sign in
Writes in your voice
From the posts you made through it
Schedules and publishes
Yes, from the chat
Shows the post first
Every time
Code needed
None
An automation tool
Where you ask
In a workflow you build
Setup
Design a scenario per task
Writes in your voice
Only what you wire in
Schedules and publishes
On the workflow's trigger
Shows the post first
Depends on the workflow
Code needed
None
Build your own
Where you ask
In your own code
Setup
Developer app, API access, hosting
Writes in your voice
Only what you build
Schedules and publishes
If you build it
Shows the post first
Depends on your build
Code needed
Yes

An automation tool is the better fit when a post should be triggered by something outside the chat, like a new row in a spreadsheet. If you want to ask Claude Code and see the post, the connector is the shortest path.

What it does

What Claude Code can and cannot do on LinkedIn

Can
  • Draft posts in the chat and show them to you before anything goes out
  • Publish now or schedule, and move or cancel what is scheduled
  • Read how your own posts performed
  • Draft the same idea for each of your other connected accounts
Cannot
  • Search or scrape profiles, or enrich leads
  • Send connection requests or direct messages
  • Comment on or reply to posts
  • Read your feed or other people's posts
  • Post anything you have not approved
Questions

Claude Code and LinkedIn, answered

Can Claude Code connect to LinkedIn?
Yes. Antwork is the connector: you add one URL to Claude Code, approve LinkedIn once over OAuth, and from then on Claude Code drafts, schedules and publishes to your account from the chat itself. No API key, no browser extension, no copying between tabs.
Is there a native Claude Code connector for LinkedIn?
Claude Code has no LinkedIn access of its own, and neither Anthropic nor LinkedIn ships a LinkedIn MCP server for it. The open-source servers on GitHub ask you to register your own LinkedIn developer app and manage its token, or drive your logged-in browser session, which LinkedIn's User Agreement prohibits. Antwork is hosted on LinkedIn's official API instead: one command, one browser approval, and its tools appear in Claude Code like any other.
How do I connect LinkedIn to Claude Code?
Run claude mcp add antwork --transport http https://api.antwork.io/mcp in your terminal, start Claude Code and type /mcp, then pick antwork and approve it in the browser. Ask Claude Code to connect LinkedIn: it returns a link to LinkedIn's own consent screen, and once you approve it Claude Code can post to your profile or Company Page. Or install the Antwork plugin with /plugin marketplace add polynode-co/antwork-skills and /plugin install antwork-skills@antwork, which connects the server and adds the posting skills in one step.
Can Claude Code write a LinkedIn post from my repository?
Yes. Claude Code already reads your README, commits and release notes; with Antwork connected it also reads your recent LinkedIn posts, so the draft sounds like you rather than like a changelog. It shows you the draft first and publishes or schedules it only when you ask, as a separate step.
Do I need a LinkedIn API key or developer app?
No. Antwork is the LinkedIn app: you approve it on LinkedIn's consent screen and it posts with the w_member_social scope for your profile and w_organization_social for Company Pages. There is no client ID, secret or token for you to create, paste or rotate.
What do I need to run Claude Code with Antwork?
Claude Code itself, on a Claude Pro, Max or Team plan or with an Anthropic API key. Antwork is free for 2 social accounts with no card, so a LinkedIn profile and one more account cost nothing.
How is this different from Zapier, n8n or an integration toolkit?
What drives the action. In a workflow builder, Claude Code is a node inside an automation you maintain. With Antwork, drafting, scheduling and publishing to LinkedIn are tools Claude Code operates directly in the conversation, and the platform's limits are enforced server-side rather than being whatever the flow happens to carry.
Do I need an API key to connect Claude Code?
No. Antwork connects over OAuth — you approve a consent screen in the browser and you are done. There is no key to generate or paste into a URL, which is how most social MCP servers handle it.
Do I need a paid account?
No. Your first two connected accounts are free forever, with unlimited workspaces and no monthly post cap, and there is no plan gate on MCP access.
Will Claude Code post without showing me first?
Not unless you ask it to. Drafting and publishing are two separate steps: the agent writes, shows you the draft, and only publishes when you confirm.
Does the writing sound like AI?
Antwork hands the agent that account's recent posts and the agent writes to match them: a Company Page's, read from LinkedIn, or for a personal profile the posts you published through Antwork, because LinkedIn does not let apps read a profile's history. On LinkedIn that includes writing to the length the format rewards, up to 3,000 characters.