# Post to LinkedIn from Cursor

Turn CHANGELOG.md into a LinkedIn release post. Review the copy and destination in Cursor, then use PubNio to publish and check the permalink.

Canonical page: https://pubnio.com/cursor/linkedin

## Connect Cursor

### Add PubNio to .cursor/mcp.json

Project file. Merge the pubnio entry into mcpServers; Cursor's global MCP config takes the same entry for every project.

```json
{
  "mcpServers": {
    "pubnio": {
      "url": "https://pubnio.com/mcp"
    }
  }
}
```

### Sign in

1. Open Cursor's MCP settings.
2. Click Connect on pubnio. Your browser opens PubNio sign-in; approve the workspace.
3. Run the prompt from Cursor's Agent.

### Install the skill (optional)

```sh
npx skills add pubnio/agent-skills
```

Installs the pnio skill from skills.sh.

### Connect your LinkedIn account

[Open PubNio](https://pubnio.com/app), choose your workspace, and go to Accounts. Use the same workspace when you sign in from Cursor.

- Connect the LinkedIn member profile you want to post from in PubNio.
- Grant publishing access and check that the selected account is ready.
- Open the repository with the changelog in Cursor.
- Confirm you have permission to publish to the selected profile in your workspace.

### Check the destination

```
List the LinkedIn accounts in my PubNio workspace. Show which member profiles are ready to publish. Do not create, schedule, or publish a post.
```

## Worked job: Turn your changelog into a LinkedIn release post

Contract example: sample IDs and URLs. The request and both responses decode against PubNio's API schemas; no provider confirmed this post.

### Prompt

```
Read the newest entry in CHANGELOG.md and write a short LinkedIn announcement explaining what changed and who benefits. Find my ready LinkedIn member account in PubNio. If there is more than one, ask me which to use. Show me the draft and destination before posting. After I approve, publish a text post once and check the delivery status. Return the LinkedIn permalink when it is confirmed, or the PubNio post ID if delivery is still pending.
```

### What Cursor runs: the Code Mode flow

```text
search   -> find the create-post and read-post operations
execute  -> create post { text: "…", publishNow: true, targets: [ { accountId: "…", provider: "linkedin", placement: "feed" } ] }
            Idempotency-Key: cursor-linkedin-release-2026-12-04
         => 202 { postId, targets: [linkedin/feed: queued] }
execute  -> read post, sleep 1s between checks, within the 30s budget
         => { status: "published", url: "https://www.linkedin.com/feed/update/urn:li:share:123" }
```

### Settled result (200 OK)

```json
{
  "postId": "00000000-0000-4000-8000-000000000002",
  "isDraft": false,
  "revision": 1,
  "scheduledAt": null,
  "text": "This release makes scheduled posts easier to track. You can now check delivery for each connected account.",
  "media": [],
  "targets": [
    {
      "accountId": "00000000-0000-4000-8000-000000000001",
      "provider": "linkedin",
      "placement": "feed"
    }
  ],
  "deliveries": [
    {
      "targetId": "00000000-0000-4000-8000-000000000003",
      "attemptId": "00000000-0000-4000-8000-000000000004",
      "accountId": "00000000-0000-4000-8000-000000000001",
      "provider": "linkedin",
      "placement": "feed",
      "canRetry": false,
      "canReconcile": false,
      "revision": 1,
      "status": "published",
      "providerRef": {
        "id": "urn:li:share:123",
        "kind": "post"
      },
      "url": "https://www.linkedin.com/feed/update/urn:li:share:123"
    }
  ],
  "status": "published",
  "createdAt": "2026-12-04T07:20:00.000Z",
  "updatedAt": "2026-12-04T07:20:18.000Z"
}
```

### From approval to delivery

Illustrative conversation and result with sample data.

**Cursor:** I found the LinkedIn member profile for Alex. Here’s the proposed text post:

This release makes scheduled posts easier to track. You can now check delivery for each connected account.

**You:** Approved. Publish it to Alex’s LinkedIn feed.

**Cursor:** PubNio accepted the post. I checked that same post again, and its LinkedIn delivery now says published. Here’s the permalink from the confirmed delivery.

#### Example delivery result

- Status: `published`

- Destination: Alex’s LinkedIn feed

- Sample URL: `https://www.linkedin.com/feed/update/urn:li:share:123`

## Check delivery and get the link

- Save the PubNio post ID when the submission is accepted.
- Read the same post while its LinkedIn delivery is queued, submitting, or confirming.
- Once the delivery is published, return the LinkedIn URL from that delivery.
- If delivery is still pending, check the existing post again before resubmitting.

## LinkedIn rules Cursor runs into

Account kinds: social account, social page. Connection scopes: `w_member_social`.

| Placement | Default | Media types | Max per target | Caption limit |
| --- | --- | --- | --- | --- |
| `feed` | Yes | image, video, document | 20 | 3,000 |

- A text release post can use the feed placement without a media attachment.
- The feed placement takes up to 20 images, videos, or documents.
- For a document post, combine slides into one application/pdf file.
- Keep PDF attachments within the 100 MB document limit.
- Commentary runs up to 3,000 characters.
- Stage any attachment and wait until it is ready before including it in a post.

## Failures and recovery

### LinkedIn issue codes

| Code | Cause | Fix | Retry |
| --- | --- | --- | --- |
| `account_not_ready` | The connected account's OAuth token is expired, revoked, or disconnected. | Reconnect the account in the PubNio workspace, then re-validate. | After reconnect |
| `caption_too_long` | Text exceeds the destination placement's character limit (`caption.limit`). | Shorten the caption or add a shorter target-specific text override. | No |
| `media_count` | Attached media count is below minimum or above the placement's maximum. | Adjust the `media` array (for example, 1 video for Reels/YouTube, 2–20 for carousels). | No |
| `media_mime_type` | File MIME type is rejected by the provider (for example, unsupported codec or container). | Convert to a supported MIME type (such as `image/jpeg`, `image/png`, `video/mp4`, or `application/pdf`). | No |
| `media_too_large` | Asset exceeds the provider's byte-size ceiling (such as 100 MB for LinkedIn PDFs). | Compress or trim the asset below the platform ceiling and re-import. | No |

### Cursor setup problems

- pubnio shows as disconnected in Cursor's MCP settings. Click Connect again and finish the browser sign-in.
- Cursor does not list the pubnio server. Check that the entry sits under mcpServers in .cursor/mcp.json and that the JSON is valid.
- Writes fail with 403 read_only_mode. PubNio returns 403 read_only_mode when the server URL ends in ?readOnly=1. Point the entry at https://pubnio.com/mcp to allow writes.

### Cursor quirks

- Sign-in starts from Cursor's MCP settings screen, not from a terminal command.
- The entry needs only url, so the file is safe to commit; each teammate connects from their own settings.

## What it won't do

- Attach more than one PDF to a document post.
- Read post analytics for a member profile. Analytics need a LinkedIn organization page.
- Connect accounts, create API keys, or manage webhooks from an MCP session that uses an API key. Those operations need a person signed in, so connect the MCP server with browser OAuth or use the PubNio web app.
- Stream binary uploads through execute. Import media from an HTTPS URL, or send a file of up to 8 MiB inline as base64.
- Run one execute call past 30 seconds or past its request limit. The script returns the post ID so the next call can check it.

## Frequently asked questions

### Can Cursor post a text update to LinkedIn?

Yes. Connect the LinkedIn member profile in PubNio, then ask Cursor to draft and publish to its feed.

### Can I attach a PDF release deck?

Yes. Use one ready PDF of up to 100 MB in the LinkedIn feed target.

### Does Cursor need a separate API key?

Cursor uses browser OAuth for PubNio MCP. The bearer token in the REST example is for direct API clients.

### How do I know the release post went live?

Ask Cursor to read the existing post and return the permalink from the confirmed LinkedIn delivery.

### Is it safe to commit .cursor/mcp.json?

Yes. It contains only https://pubnio.com/mcp. Authentication happens per person through browser OAuth.

### Where do I sign Cursor in to PubNio?

In Cursor's MCP settings. Click Connect on pubnio and approve the workspace in your browser.

## Also works with

- [Post to LinkedIn from Claude Code](https://pubnio.com/claude/linkedin)
- [Post to LinkedIn from Codex](https://pubnio.com/codex/linkedin)
- [Post to LinkedIn from OpenCode](https://pubnio.com/opencode/linkedin)
- [Post to Instagram from Cursor](https://pubnio.com/cursor/instagram)
- [Upload YouTube Shorts from Cursor](https://pubnio.com/cursor/youtube)
- [Post to a Facebook Page from Cursor](https://pubnio.com/cursor/facebook)
- [Create a Pinterest Pin from Cursor](https://pubnio.com/cursor/pinterest)
- [Post a TikTok video from Cursor](https://pubnio.com/cursor/tiktok)
- [Publish an X thread from Cursor](https://pubnio.com/cursor/x)
- [Cursor setup](https://pubnio.com/cursor)
- [LinkedIn publishing API](https://pubnio.com/platforms/linkedin)
- [LinkedIn MCP](https://pubnio.com/linkedin-mcp)
- [LinkedIn network reference](https://pubnio.com/docs/networks/linkedin/)
- [LinkedIn error codes](https://pubnio.com/docs/errors/linkedin/)
- [Pricing](https://pubnio.com/pricing)

## Get started with PubNio

Connect unlimited accounts at $0 per account. Pay as you go includes 50 free confirmed publishes a month on your first workspace, then $20 per 1,000. X API fees are separate.

## REST API reference

Contract example: sample IDs and URLs. The request and both responses decode against PubNio's API schemas; no provider confirmed this post.

```http
POST /api/v1/posts?workspaceId=00000000-0000-4000-8000-000000000006
Authorization: Bearer pn_live_***
Idempotency-Key: cursor-linkedin-release-2026-12-04
Content-Type: application/json

{
  "text": "This release makes scheduled posts easier to track. You can now check delivery for each connected account.",
  "publishNow": true,
  "targets": [
    {
      "accountId": "00000000-0000-4000-8000-000000000001",
      "provider": "linkedin",
      "placement": "feed"
    }
  ]
}
```

### 202 Accepted

```json
{
  "postId": "00000000-0000-4000-8000-000000000002",
  "idempotencyKey": "cursor-linkedin-release-2026-12-04",
  "targets": [
    {
      "targetId": "00000000-0000-4000-8000-000000000003",
      "attemptId": "00000000-0000-4000-8000-000000000004",
      "accountId": "00000000-0000-4000-8000-000000000001",
      "provider": "linkedin",
      "placement": "feed",
      "canRetry": false,
      "canReconcile": false,
      "status": "queued",
      "scheduledAt": null,
      "url": null,
      "issue": null
    }
  ],
  "warnings": []
}
```

