# LinkedIn MCP server for AI agents

Connect ChatGPT, Claude, Claude Code, Cursor or Codex to LinkedIn via MCP. Schedule profile and Page posts, PDF carousels, polls and real @mentions.

Let AI assistants write executive posts, tag partner companies with real LinkedIn URNs, upload PDF document carousels and answer LinkedIn comments. PostSyncer’s MCP server offers 118 tools in one list (your client decides which of them it shows), including dedicated LinkedIn mention lookup.

**MCP server:** https://postsyncer.com/mcp · **REST API:** https://postsyncer.com/api/v1 · **Docs:** https://postsyncer.com/docs/platforms/linkedin

## Example LinkedIn agent prompt

Prompt: “Find the LinkedIn tag for linkedin.com/company/copperleaf-mills, schedule our Q2 supply chain update for Tuesday at 8:30 AM, and drop the full report link in the first comment.”

- `list-workspaces`: Halden Coffee (#4815)

- `list-accounts`: LinkedIn Page Halden Coffee (#16236)

- `get-brand`: Loaded B2B founder tone

- `find-linkedin-mentions`: @[Copperleaf Mills](urn:li:organization:90412577)

- `create-post`: Scheduled LinkedIn post #81448 + delayed first comment

Scheduled your LinkedIn post for Tuesday at 8:30 AM with Copperleaf Mills tagged as a company and your report link queued as the first comment 1 minute later.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create-post",
    "arguments": {
      "workspace_id": 4815,
      "schedule_type": "schedule",
      "schedule_for": {
        "date": "2026-12-08",
        "time": "08:30",
        "timezone": "America/Los_Angeles"
      },
      "content": [
        {
          "text": "Our Q2 roast report is live, built alongside @[Copperleaf Mills](urn:li:organization:90412577)."
        },
        {
          "text": "Read the full methodology and benchmarks: haldencoffee.example/report",
          "is_first_comment": true,
          "first_comment_delay": 1
        }
      ],
      "accounts": [
        {
          "id": 16236,
          "settings": {
            "visibility": "PUBLIC"
          }
        }
      ]
    }
  }
}
```

## Quick start

1. **Connect your AI client to PostSyncer.** Install the ChatGPT app or Claude plugin, or add https://postsyncer.com/mcp in Claude Code, OpenClaw, Cursor, Codex or any remote MCP client.

2. **Authorize profiles or Company Pages.** Sign in with OAuth or attach a scoped Bearer API key. Personal LinkedIn profiles and Company Pages in your workspaces become immediately available.

3. **Tag partners, post decks and reply to comments.** Ask your agent to resolve mentions with find-linkedin-mentions, turn a PDF deck into a swipeable document post, run a poll or reply to comments.

## MCP tools for LinkedIn

Verified PostSyncer MCP tools for LinkedIn personal profiles and Company Pages, including native URN mention search and B2B engagement reporting.

- `list-accounts` (`accounts:read`): Locate connected LinkedIn personal profile and Company Page IDs.

- `find-linkedin-mentions` (`accounts:read`): Find people (tagged before, teammates, Page followers) and companies (by LinkedIn link or short name) as exact @[Name](urn:li:...) tags.

- `get-brand` (`brand:read`): Load workspace voice, audience and terminology before drafting executive posts.

- `create-post` (`posts:create / schedule / publish`): Draft or schedule LinkedIn posts, PDF/PPTX document carousels, polls, MP4 videos and photo first comments.

- `list-comments` (`comments:read`): Read comments synced from LinkedIn profiles and Company Pages.

- `create-comment` (`comments:create`): Post a reply from your profile or Company Page, optionally with one photo.

- `delete-comment` (`comments:delete`, destructive): Remove a comment on LinkedIn (LinkedIn has no hide-comment action).

- `get-analytics-post` (`analytics:read`): Pull impressions, likes, comments, shares, saves, clicks, reach, views and profile_visits.

## Agent workflows on LinkedIn

B2B LinkedIn workflows founders, marketers and developer advocates automate through PostSyncer MCP.

### Tag partner companies accurately every time

Prompt: “Look up the LinkedIn tag for linkedin.com/company/copperleaf-mills, write a partnership announcement in our brand voice, and schedule it for Wednesday at 9 AM.”

Tools: `find-linkedin-mentions`, `get-brand`, `create-post`. Inserts the exact @[Name](urn:li:organization:ID) tag LinkedIn returns for that company link instead of a plain @mention that tags nobody, while escaping reserved LinkedIn punctuation.

### Turn a PDF slide deck into a swipeable LinkedIn carousel

Prompt: “Find our Q2-Benchmarks.pdf file in the media library, write a crisp 3-paragraph hook, and save a LinkedIn Company Page draft with a link-in-first-comment.”

Tools: `list-media`, `get-brand`, `create-post`. Attaches the PDF as the sole file so LinkedIn renders a swipeable document post and queues the follow-up link cleanly underneath.

### Run a 1-week B2B audience poll

Prompt: “Draft a LinkedIn poll on our Company Page asking engineering leaders which release cadence they prefer, with 4 options running for 1 week.”

Tools: `list-accounts`, `create-post`. Validates the 140-character question, 30-character options and 10,080-minute duration before saving cleanly without conflicting media.

### Executive comment reply sprint

Prompt: “Sync comments on my last 2 LinkedIn posts, summarize the main questions, and draft concise replies for my approval before sending.”

Tools: `list-posts`, `sync-comments-from-platforms`, `list-comments`, `create-comment`. Pulls fresh comments across personal profiles and Pages and posts approved replies (with optional photo attachments) directly to LinkedIn.

## Why find-linkedin-mentions makes LinkedIn MCP actually work

An AI assistant that writes "@Acme" into a LinkedIn post produces plain unlinked text that never notifies the partner. LinkedIn requires exact URN markup — @[Name](urn:li:person:ID), @[Name](urn:li:organization:ID) or @[Name](urn:li:organizationBrand:ID) — and truncates posts with unescaped brackets or parentheses.

PostSyncer ships find-linkedin-mentions right inside the MCP server so your agent looks up the exact URN tag first, embeds it cleanly in create-post, and lets PostSyncer escape reserved characters automatically. When cross-posting to X or Facebook in the same prompt, PostSyncer strips the URN syntax into plain readable names on the other networks.

## PDF document decks, MP4 rules and executive drafting guardrails

Executive personal profiles are high-trust channels where nobody wants an AI agent publishing unreviewed copy. Connect your assistant with a Bearer key restricted to workspaces:read, accounts:read, brand:read, media:read and posts:create: a call to schedule or publish is refused, so every LinkedIn post, PDF carousel or poll waits as a draft on your PostSyncer calendar.

PostSyncer also guides the agent around LinkedIn’s real media constraints: documents (PDF, DOC, DOCX, PPT, PPTX) must be attached alone, polls cannot share a post with media or links, and videos must be MP4 (MOV and WebM return 422).

## Comment deletion vs hiding and profile reconnect diagnostics

PostSyncer syncs LinkedIn comments an hour after publish, every 6 hours on day one, then daily through day seven (plus on-demand sync-comments-from-platforms). Because LinkedIn does not expose comment hiding, hide-comment informs the agent that LinkedIn cannot hide comments and to ask before calling delete-comment instead.

For analytics, get-analytics-post returns impressions, clicks, shares, saves, reach, views and profile_visits. If an older LinkedIn profile was authorized before analytics scopes were enabled, the response reports linkedin_reconnect so your agent knows to suggest reconnecting the profile.

Related pages: [LinkedIn REST API](https://postsyncer.com/linkedin-api), [LinkedIn scheduler](https://postsyncer.com/linkedin-scheduler), [MCP server overview](https://postsyncer.com/mcp-social-media).

## Limits and plans

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

## FAQ

### Can an AI agent tag people and companies on LinkedIn through MCP?

Yes, for the people and companies LinkedIn lets PostSyncer find: any company by its LinkedIn link or short name, teammates, people who follow your Page and anyone tagged before. Your agent calls find-linkedin-mentions for the exact @[Name](urn:li:...) tag, then passes it to create-post so LinkedIn creates a real clickable mention.

### Does LinkedIn MCP work for both personal profiles and Company Pages?

Yes. Both personal LinkedIn profiles and LinkedIn Company Pages connected to your PostSyncer workspace work through the same MCP tools.

### Can an agent publish LinkedIn PDF carousels and polls?

Yes. Pass a single PDF, DOC, DOCX, PPT or PPTX file in content[0].media for a swipeable document post, or configure settings.poll for a 1-day to 2-week poll.

### Can my agent keep LinkedIn posts as drafts until I approve them?

Yes. Create a Bearer API key with workspaces:read, accounts:read and posts:create, and leave out posts:schedule and posts:publish. A call to schedule or publish is then refused, so the agent saves each post as a draft on your calendar instead.

### Can an AI agent hide LinkedIn comments via MCP?

No. LinkedIn does not support hiding comments. hide-comment returns a clear message explaining this, and the agent can use delete-comment (marked destructive) after confirming with you.

### Does LinkedIn MCP support first comments with a link or photo?

Yes. Include a second item in content[] with is_first_comment: true and optional media (up to 1 photo) to keep outbound links out of the main LinkedIn body.

---

Page: https://postsyncer.com/linkedin-mcp · Updated 2026-11-27
