# linkedin-posts [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/johnisanerd/Apify-LinkedIn-Posts-API  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/linkedin-posts

## Description
Scrape and analyze public LinkedIn posts as structured JSON via the Apify LinkedIn Posts API.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "linkedin-posts": {
    "url": "https://mcp.apify.com/?tools=actors,docs,johnvc/linkedin-posts-api"
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/linkedin-posts/readme_

