linkedin-mcp-server
v1.0.50Standalone LinkedIn MCP Server — SENSE + ACT tools for the LinkedIn API
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
linkedin_whoami
Verify which LinkedIn account this token belongs to. ALWAYS call this before any write operation to confirm you're acting on the correct account. Returns the authenticated user's name and person URN.
| Parameter | Type | Description |
|---|---|---|
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_list_organizations
List LinkedIn organizations (Company Pages) the authenticated user administers. Returns organization IDs, names, and vanity URLs. Use the organizationId from the results to call analytics tools (get_org_analytics, get_follower_stats, etc.).
| Parameter | Type | Description |
|---|---|---|
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_get_my_posts
Get the authenticated user's own LinkedIn posts (most recent first). Returns post URNs, text, creation time, and content type. Use the returned URNs with linkedin_get_post_analytics to check performance.
| Parameter | Type | Description |
|---|---|---|
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
count | number | Number of posts to return (default 20, max 100) |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_list_capabilities
List all content types this server can publish to LinkedIn. Call this FIRST when planning content strategy — it returns supported formats, size limits, and what is NOT supported, so you can choose the best content type.
linkedin_get_media_specs
Get LinkedIn platform media specifications — supported formats, dimensions, file size limits, and duration caps. Call this BEFORE generating media assets to ensure they conform to LinkedIn API requirements.
linkedin_get_org_analytics
Get LinkedIn organization analytics — page views, visitor demographics. Requires organizationId.
| Parameter | Type | Description |
|---|---|---|
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
timeRange | string | Time range start in epoch ms (e.g. '1709251200000'). Defaults to last 30 days. |
linkedin_get_post_analytics
Get analytics for a specific LinkedIn post — likes, comments, shares count.
| Parameter | Type | Description |
|---|---|---|
postUrn * | string | LinkedIn post URN (e.g. 'urn:li:share:7012345678901234567' or 'urn:li:ugcPost:7012345678901234567') |
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_get_comments
Get comments on a LinkedIn post. URN must be URL-encoded. Returns comment threads.
| Parameter | Type | Description |
|---|---|---|
postUrn * | string | LinkedIn post URN (e.g. 'urn:li:share:7012345678901234567') |
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
count | number | Number of comments to retrieve (default: 10, max: 100) |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_get_mentions
Get social actions where an organization is mentioned. Requires organizationId.
| Parameter | Type | Description |
|---|---|---|
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_get_follower_stats
Get follower demographics for a LinkedIn organization — seniority, industry, company size. Requires organizationId.
| Parameter | Type | Description |
|---|---|---|
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_create_post
Create a LinkedIn post with rich content. SUPPORTED FORMATS: (1) Text-only — just provide text. (2) Image — provide imageUrl (JPG/PNG/GIF, max 10MB). (3) Video — provide videoUrl (MP4/MOV, max 200MB). (4) Document/Carousel — provide documentUrl (PDF only, max 100MB, renders as swipeable carousel). (5) Link preview — provide linkUrl to render an OG card (image, title, description scraped from the page). Only ONE media type per post. Supports optional firstComment for engagement (auto-skipped for documents). Call linkedin_list_capabilities for full details.
| Parameter | Type | Description |
|---|---|---|
text * | string | Post text content |
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
documentUrl | string | URL of PDF document to attach (max 100MB). Uses Posts API instead of UGC API. Mutually exclusive with imageUrl and videoUrl. |
firstComment | string | Optional first comment to post immediately after creation (max 1250 chars). Used as an engagement strategy — adds a follow-up question or call-to-action. Automatically skipped for document posts (no… |
hashtags | array | Hashtags to append (without # prefix) |
imageUrl | string | URL of image to attach (max 10MB). Mutually exclusive with videoUrl and documentUrl. |
linkUrl | string | URL to attach as a link preview card (renders OG image, title, description). LinkedIn scrapes the page's Open Graph meta tags to generate the preview. Can be combined with text but NOT with imageUrl,… |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
videoUrl | string | URL of video to attach (max 200MB). Mutually exclusive with imageUrl and documentUrl. |
visibility | string | Post visibility (default: PUBLIC) |
linkedin_comment
Post a comment on a LinkedIn post. Max 1250 characters. Use the shareUrn returned by linkedin_create_post as the postUrn. Can be used for delayed first comments — create post first, then comment later for engagement. Document posts (created with documentUrl) do not support commenting.
| Parameter | Type | Description |
|---|---|---|
postUrn * | string | LinkedIn post/share URN to comment on (e.g. 'urn:li:share:7012345678901234567') |
text * | string | Comment text (max 1250 characters) |
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_react
Like a LinkedIn post. Uses the Social Actions likes endpoint. Only supports LIKE (typed reactions like CELEBRATE require the Reactions API with r_member_social scope).
| Parameter | Type | Description |
|---|---|---|
postUrn * | string | LinkedIn post URN to like |
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |
linkedin_delete_post
Delete a LinkedIn post. Routes to the correct API based on URN type.
| Parameter | Type | Description |
|---|---|---|
postUrn * | string | LinkedIn post URN to delete |
accessToken | string | LinkedIn OAuth 2.0 access token. Falls back to LINKEDIN_ACCESS_TOKEN env var. |
organizationId | string | LinkedIn organization ID (numeric, e.g. '12345'). Falls back to LINKEDIN_ORG_ID env var. Required for org-level analytics tools. |