LinkedIn Pages connector for Claude Code

Use Porter’s LinkedIn Pages connector for Claude Code to pull posts and follower growth for your Company Page into your terminal, then turn them into files, scripts and scheduled reports in your own project.

  • Save Company Page posts as CSV in your repo
  • Split new followers into organic and paid
  • Run a weekly LinkedIn Page report from a script
  • Compare organic posts with LinkedIn Ads
G2★★★★★Rated 4.6/5 from 288 G2 reviews (October 2026) · Used by 1,600+ marketing teams and agencies

By · Last updated November 26, 2026

Claude Codeporter connected
Show New Organic Followers and New Paid Followers by Week for the last 4 weeks and save it to reports/li-followers.csv
porter / LinkedIn Pages / Trailgear Demo✓ 4 rows
Saved reports/li-followers.csv. Organic followers grew each week; paid followers dropped in week 4.
WeekOrganicPaid
Week 118492
Week 220188
Week 322671
Week 424834
Demo data, Trailgear Demo account
150+ LinkedIn Page fields
01Setup

How to connect LinkedIn Pages to Claude Code

Connecting LinkedIn Pages to Claude Code takes 3 steps and no API keys: connect your LinkedIn Company Pages in Porter with LinkedIn, add Porter’s MCP server to Claude Code with one command, then sign in from /mcp and ask. The same server also works in Cursor, VS Code and Codex, as Porter’s LinkedIn Pages MCP server page shows. Using the Claude app instead? See the LinkedIn Pages connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and a LinkedIn member account that is a Page administrator of the Company Page.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect LinkedIn Pages in Porter

    Sign up free at Porter, pick LinkedIn Pages as the source and sign in with LinkedIn. Tick every Page you want Claude Code to read.

  2. Step 2: Add Porter to Claude Code

    In your terminal, run this command. It adds Porter for every project on your machine; drop --scope user to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

    Or, inside Claude Code, install Porter’s plugin, which adds the server and Porter’s skill together: /plugin marketplace add portermetrics/porter, then /plugin install porter-metrics@portermetrics.

  3. Step 3: Sign in and ask

    Start claude, type /mcp, pick porter and sign in with the Google account you use in Porter. When porter shows as connected, paste this prompt:

    Prompt
    Which LinkedIn Company Pages can you see? List posts created last month with Post Creation Date and the first 80 characters of Post Text, and save them to reports/li-posts.csv.

Guides and videos

app.portermetrics.com / create
Porter's Select accounts window for LinkedIn Pages with a demo account and the Connect button
First, in Porter, open LinkedIn Pages and select Connect.
LinkedIn sign-in screen you see when you connect LinkedIn Pages to Porter
Then, sign in to LinkedIn and approve Porter’s access.
$ claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

$ claude mcp list
porter: https://mcp.portermetrics.com/mcp (HTTP)
Then, add Porter's MCP server from your terminal.
> /mcp
porter · needs authentication → Authenticate

> Which LinkedIn Pages accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your LinkedIn Pages accounts.
02Use cases and prompts

What you can do in Claude Code

Claude Code works inside your project, so LinkedIn Pages answers can become files, scripts and dashboards instead of chat replies. Each use case has a prompt to copy and uses the LinkedIn Pages fields Porter reads.

Can Claude Code export LinkedIn Company Page posts?

The problemLinkedIn Page analytics show posts one at a time.

What Claude Code doesClaude Code lists posts with Post Creation Date, Post Text and Post URL and their results through Porter and writes them to a CSV.

What you getA full post history in your repo, ready for analysis.

Prompt
For my LinkedIn Company Page, list posts created last month with Post Creation Date, the first 80 characters of Post Text, Post URL and their results, and save them as data/li-posts.csv.

Are my LinkedIn followers organic or paid?

The problemTotal follower growth hides how much came from ads.

What Claude Code doesClaude Code pulls New Followers, New Organic Followers and New Paid Followers by week.

What you getA follower file that shows what your posts earn on their own.

Prompt
For the last 12 full weeks, show New Followers, New Organic Followers and New Paid Followers by Week for my LinkedIn Company Page, and save it to reports/li-followers.csv.

Can I schedule a LinkedIn Page report with Claude Code?

The problemLinkedIn Page analytics keep followers and post results in separate tabs, so linking them each week takes notes.

What Claude Code doesEach Monday claude -p compares posts published, their results and New Followers with the week before.

What you getreports/li-page-weekly.md linking follower growth to the posts behind it.

Prompt
claude -p "Compare last week with the week before for my LinkedIn Company Page: posts published, their results and New Followers. Write it to reports/li-page-weekly.md" --allowedTools "mcp__porter" "Write"
03Why Porter

Why Porter for LinkedIn Pages in Claude Code

Porter reads your Company Page with your LinkedIn admin login, with no Community Management API approval, and puts it next to LinkedIn Ads and 30+ other sources behind the same server.

✓

One server for all your sources

The same porter server answers about LinkedIn Pages, Meta Ads, Google Ads, GA4 and Shopify, so one script can pull every channel.

⊞

Changes only after you approve

Claude Code can make changes through Porter where the platform allows them, and each change waits for your yes.

⚙

No API approval to wait for

You sign in with LinkedIn in Porter and with Google in Claude Code. There is no LinkedIn developer app or API access request.

↻

Hosted dashboards when a file isn’t enough

Ask for a Porter AI dashboard and it is published at its own link, synced automatically and ready to share with a client.

04Dashboard

Dashboard template

Porter’s free LinkedIn Pages dashboard template tracks posts and engagement, as well as audience, for a Company Page. Claude can also build the same view live from a prompt. Use the template if you want a fixed weekly report, or ask Claude for a one-off view.

AI dashboards

Build a live LinkedIn Pages dashboard from your terminal

Describe the dashboard in one sentence and Porter builds it. A client-ready dashboard in minutes, with no chart dragging and no BI tool to learn. Ask Claude Code:

Prompt
Build a live LinkedIn Pages dashboard for my account with the last 30 days, the main KPIs and a weekly trend.
Live URLEach dashboard at its own link: no login, no app, no download
Auto-syncFresh LinkedIn Pages data, nobody re-exports each period
Scheduled deliveryEmail or PDF sends on a set day
White labelYour logo and branding for clients
Sharing permissionsView or edit access per person
LinkedIn Pages dashboard template by Porter
Template

The LinkedIn Pages AI dashboard template

Start from Porter’s official LinkedIn Pages dashboard template, or run the prompt above in Claude Code and Porter publishes the dashboard at its own link.

05Pricing

Pricing

You can start free, since Porter’s LinkedIn Pages connector for Claude comes with every plan. Use the calculator for your number of accounts, or see Porter pricing for every plan.

What you get

  • Free plan: never expires, with unlimited connected accounts and the last 15 days of data in Claude (30 days in Data Studio and Sheets)
  • Reporting: from $12.50 per account a month billed annually, or $15 month to month for one account
  • Billing: each LinkedIn Company Page counts as one account, with volume discounts and no per-seat fee
  • Changes: 1 AI credit per completed change; failed tasks are free, and the Free plan includes 100 credits a month
  • Trial: 14 days of full access, no card

Price calculator

$33.33/mo$6.67 per account

An account is one ad account, Stripe account, store, page or GA4 property. The Free plan never expires and has unlimited accounts, with the last 15 days of data in AI chats.

06Data and actions

LinkedIn data Claude can use

Altogether, Claude can read 150+ LinkedIn Pages fields through the connector. They come in five groups, namely posts, Page content, followers, follower and visitor demographics, and page views by tab and device. The full list of LinkedIn Pages fields shows each field's label and ID, including the 12 used most below.

12 LinkedIn fields Claude uses most

FieldWhat it's for
Post Text · Post URL · Post Creation DateIdentify and date each post
ImpressionsHow often posts were seen
ReachUnique impressions
Reactions · Comments · SharesWhat people did with a post; Shares counts reposts
ClicksClicks from posts
Engagement rateRate for each post; recompute it for periods
New Organic Followers · New Paid FollowersWhere follower growth came from
Total FollowersBase for follower demographics
Seniority · Job Function · Industry · Company SizeWho follows the Page
Page Views · Unique Page ViewsVisits to the Page
Jobs Page Views · Life At Page ViewsInterest from candidates
Custom Button ClicksClicks on the Page's custom button

How fresh is the data, and how far back?

Page views and post numbers in Claude run through yesterday, while follower gains stop 2 days before today, as LinkedIn's follower statistics docs set out. LinkedIn's 12-month window for post statistics also limits post data to the past year.

Page views go back to 2022 in Porter's tests, and new followers to 2023. On the free plan, AI chats cover 15 days (30 days in Data Studio and Sheets).

Product stats

WhatLinkedIn Pages connector
Fields150+ in five groups: posts, Page content, followers, follower and visitor demographics, page views by tab and device
ActionsCreate, edit and delete posts, upload images and video, and comment as the Page, after you approve
FreshnessPage views and post numbers through yesterday; follower gains stop 2 days before today
HistoryPage content stats for the past 12 months, lifetime totals per post; page views back to 2022 and new followers to 2023 in Porter's tests; 30 days on the Free plan, 15 in AI chats
FollowersLinkedIn's API keeps new followers for 12 months and total followers for today only; Porter stores both daily on paid plans, from the day you start paying
DemographicsA snapshot of today, one breakdown per question
AccessLinkedIn sign-in as a Page administrator; sign in again at least once a year

See all 150+ LinkedIn Pages fields

07Security

Is it safe?

Through the LinkedIn connector, Claude can publish, edit and delete posts on your Page, and also comment as the Page. Everything else is a read, so reports and questions leave your Page exactly as you set it. Porter also connects with LinkedIn's own sign-in and the permissions you grant at setup.

What Claude can read and change on LinkedIn

  • Reads: posts, Page impressions and engagement, followers, follower and visitor demographics, page views by tab and device, as well as company details.
  • Can change: create, edit and delete posts, upload images and video for posts, and also comment as the Page.

How changes get approved

Porter asks before writing anything to your Page, so Claude shows the draft first. Deleting a post is permanent and a published comment stays on the post, so Claude asks before each one. You can still delete a post you published later, and failed tasks use no credits.

Does the Page still need a personal account?

Yes, because Porter signs in as a LinkedIn member who is an administrator of the Company Page. LinkedIn's 60-day access tokens and one-year refresh tokens keep the connection alive for at most a year. After that, you sign in again.

Will LinkedIn ban my account for using Claude?

No, not for using Porter. Porter works through LinkedIn's official API with the permissions you grant instead of scraping, browser automation or session cookies.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with LinkedIn Pages. Setup questions every source shares, like where Claude Code saves the server and how to share it with your team, are in the Claude Code hub FAQ.

Can I put LinkedIn Ads next to my Page results?

Yes. Connect LinkedIn Ads in Porter and ask for Spent and Clicks next to New Followers. Claude Code writes both to one file.

Is this the same as LinkedIn Ads?

No. This connector reads organic Company Page posts and followers. Paid campaigns come from the LinkedIn Ads connector, and Claude Code can use both together.

Do Claude Code questions use Porter credits?

Reading LinkedIn Pages data uses no AI credits. Each completed change, such as a change, uses 1 credit, and every Porter account gets 100 free credits a month.

Troubleshooting

Why does /mcp show porter as needing authentication?

Claude Code adds the server before you sign in. Pick porter in /mcp, choose Authenticate and sign in with the Google account you use in Porter.

Why does my claude -p script stop and ask for permission?

Scripts can’t answer permission prompts. Pass the tools the script may use, for example --allowedTools "mcp__porter" "Write", so Claude Code can read Porter and save files without stopping.

Why does Claude Code see my Page but return no data?

Usually the LinkedIn member is not a Page administrator, or no posts were published in the range. Check admin roles on the Page, then ask again.

09Next

More Claude connectors

These connectors also cover the other organic social and web channels B2B teams report on. Besides these, any of all Claude connectors can sit next to the LinkedIn connector in one chat. If you use a data warehouse, the LinkedIn Pages connector for BigQuery sends the same Page data to Google BigQuery.

Not only Claude. Send LinkedIn Pages data anywhere

The same Porter account and connection also send LinkedIn Pages data to these destinations, at no extra cost.

Try the connector in Claude Code

Porter’s LinkedIn Pages connector for Claude Code takes one command, so your first post report can land in your project today.

Free plan · 14-day trial · No card needed

B2B marketers: Page posts and follower growth land in one file.

Social media managers: organic and paid followers are split week by week.

Agencies: one script builds the weekly report for every client Page.