Linkedin Posts logo

Linkedin Posts

Collects public LinkedIn posts through Apify and returns engagement, author, media, and text data as structured JSON.

Install Linkedin Posts

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://mcp.apify.com/?tools=actors,docs,johnvc/linkedin-posts-api

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

linkedin-posts MCP server connects AI agents to an Apify actor that collects public LinkedIn posts. It accepts public profile URLs for recent-post discovery or specific post URLs for direct retrieval, then returns one structured JSON record per post. Results include post content, engagement counts, hashtags, media, links, and author details. Use it for research, monitoring, or analysis that needs public LinkedIn data without building collection infrastructure.

Use cases

  • Monitor recent public posts from selected LinkedIn profiles
  • Retrieve and analyze a known set of LinkedIn post URLs
  • Filter profile posts to a specified date range
  • Load post and engagement data into a database or BI workflow

Key features

  • Discover posts from public LinkedIn profile URLs
  • Fetch posts directly by URL
  • Filter discovery by date
  • Return engagement and author metadata
  • Produce one structured JSON row per post
  • Provide summaries and sample top comments

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 78d

How Linkedin Posts works

What linkedin-posts does

The linkedin-posts MCP server exposes the Apify LinkedIn Posts API to MCP-compatible clients. It collects public LinkedIn post data and returns a consistent JSON row for each result. The output can include the post text, post type, publication date, hashtags, media, links, author name, headline, profile URL, follower count, reactions, comments, shares, and selected top comments. Each row also includes a plain-language summary for quick review.

Two collection modes are available. Discovery mode accepts public LinkedIn /in/ profile URLs and finds recent posts. Direct mode accepts known LinkedIn post URLs and retrieves those posts without profile discovery. This makes the tool suitable both for monitoring a person’s recent public activity and for examining a predefined list of posts.

How it works

Provide at least one profileUrls or postUrls input. Discovery requests can set maxPostsPerProfile, with a default of 20 and a maximum of 200 posts per profile. Up to 25 profile URLs can be supplied in one run. Direct post retrieval supports up to 1,000 post URLs per run, and the per-profile limit does not apply in that mode.

Discovery can also be restricted with startDate and endDate, using the YYYY-MM-DD format. Results are returned as structured JSON records. If a profile has no public posts, the actor returns an error row for that profile rather than causing the whole batch to fail.

Setup and configuration

The linkedin-posts MCP server requires Python 3.11 or newer for the repository’s example setup, an Apify account, and an Apify API key. Clone the repository, install dependencies with uv sync, and place the key in a .env file based on .env.example. The example can then be run with uv run python linkedin-posts-api-example.py.

The key can alternatively be provided through the APIFY_API_TOKEN environment variable. Claude Desktop and Claude Code can authenticate through OAuth or an Apify token; Cursor uses a project-level .cursor/mcp.json file and can also send the token as an authorization header.

Tools and capabilities

  • Discover recent public posts from one or more LinkedIn profile URLs.
  • Retrieve specific public posts from their LinkedIn URLs.
  • Filter discovered posts by start and end dates.
  • Limit the number of posts returned per profile.
  • Return post text, dates, types, hashtags, media, and links.
  • Return engagement metrics, author metadata, and sample comments.
  • Provide a summary field alongside the structured post data.

Limitations and notes

The linkedin-posts MCP server works with public LinkedIn content described by the supplied URLs; the material does not document access to private posts or authenticated LinkedIn accounts. Discovery is limited to 25 profile URLs per run and 200 posts per profile. Direct retrieval supports up to 1,000 post URLs per run.

Date filtering applies only to profile discovery and is ignored when fetching specific post URLs. The numShares field is present when a post has shares, so consumers should not assume that field appears for every post. Apify billing is based on posts returned, with no per-run setup fee described in the README.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Linkedin Posts

linkedin-posts is an MCP server that connects AI agents to Apify's LinkedIn Posts API for public LinkedIn post collection. Its main tools support discovering recent posts from public profile URLs and retrieving specified posts by URL, returning structured JSON with text, engagement counts, hashtags, media, links, and author details.

Install the repository with Python 3.11 or newer, run `uv sync`, and configure an Apify API key in `.env` or `APIFY_API_TOKEN`. For MCP clients, connect to the documented Apify MCP endpoint with the `johnvc/linkedin-posts-api` actor enabled.

Yes, linkedin-posts works with Cursor through a project `.cursor/mcp.json` configuration. Add the Apify MCP endpoint with the LinkedIn Posts API actor selected, then optionally include an Authorization bearer header containing your Apify token instead of using browser OAuth.

Yes, date filtering is supported when discovering posts from profile URLs. Set `startDate` and `endDate` in `YYYY-MM-DD` format; these parameters do not apply when retrieving specific posts by URL.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLinkedin Posts AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/linkedin-posts?style=directory)](https://allmcps.com/mcp/linkedin-posts)
HTML Embed
<a href="https://allmcps.com/mcp/linkedin-posts"><img src="https://allmcps.com/api/badge/linkedin-posts?style=directory" alt="Linkedin Posts on AllMCPs" /></a>