linkedctl
v0.5.0CLI and MCP server for the LinkedIn API
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami Who Am I
Show the current LinkedIn user's name, email, and profile picture URL
| Parameter | Type | Description |
|---|---|---|
profile | string | Profile name to use from config file |
auth_status Auth Status
Show authentication status for a profile
| Parameter | Type | Description |
|---|---|---|
profile | string | Profile name to check (uses default if not specified) |
auth_revoke Revoke Auth Token
Revoke the access token server-side and clear local credentials for a profile
| Parameter | Type | Description |
|---|---|---|
profile | string | Profile name to revoke (uses default if not specified) |
post_create Create Post
Create a post on LinkedIn with optional media attachment. Supports URNs for pre-uploaded media or local file paths for combined upload+post.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text content of the post |
article_url | string | Article URL to attach |
as_org | string | Post as an organization (numeric organization ID). The authenticated user must be an admin. |
document | string | Document URN to attach (e.g. urn:li:document:D123...) |
document_file | string | Path to a local document file to upload and attach |
draft | boolean | Save as draft instead of publishing (defaults to false) |
image | string | Image URN to attach (e.g. urn:li:image:C5608AQ...) |
image_file | string | Path to a local image file to upload and attach |
image_files | array | Array of local image file paths to upload and attach (minimum 2) |
images | array | Array of image URNs for multi-image post (minimum 2) |
poll | string | Poll question text (creates a poll post) |
poll_duration | string | How long the poll stays open (defaults to THREE_DAYS) |
poll_options | array | Array of poll answer options (minimum 2, maximum 4; required when poll is set) |
profile | string | Profile name to use from config file |
video | string | Video URN to attach (e.g. urn:li:video:D5608AQ...) |
video_file | string | Path to a local video file to upload and attach |
visibility | string | Post visibility (defaults to PUBLIC) |
post_get Get Post
Fetch a single LinkedIn post by URN
| Parameter | Type | Description |
|---|---|---|
urn * | string | Post URN (e.g. urn:li:share:123) |
profile | string | Profile name to use from config file |
post_list List Posts
List LinkedIn posts with pagination
| Parameter | Type | Description |
|---|---|---|
as_org | string | List posts of an organization (numeric organization ID). The authenticated user must be an admin. |
count | number | Number of posts to return (default 10, max 100) |
profile | string | Profile name to use from config file |
start | number | Starting index for pagination (default 0) |
post_update Update Post
Update the commentary text of an existing LinkedIn post
| Parameter | Type | Description |
|---|---|---|
text * | string | New text content for the post |
urn * | string | Post URN (e.g. urn:li:share:123) |
profile | string | Profile name to use from config file |
post_delete Delete Post
Delete a LinkedIn post by URN
| Parameter | Type | Description |
|---|---|---|
urn * | string | Post URN (e.g. urn:li:share:123) |
profile | string | Profile name to use from config file |
comment_create Create Comment
Create a comment on a LinkedIn post. Use as_org to comment as an organization.
| Parameter | Type | Description |
|---|---|---|
post_urn * | string | Post URN to comment on (e.g. urn:li:share:...) |
text * | string | The comment text |
as_org | string | Organization ID to act as (numeric, e.g. 12345) |
profile | string | Profile name to use from config file |
comment_list List Comments
List comments on a LinkedIn post
| Parameter | Type | Description |
|---|---|---|
post_urn * | string | Post URN to list comments for (e.g. urn:li:share:...) |
profile | string | Profile name to use from config file |
comment_get Get Comment
Get a specific comment by URN
| Parameter | Type | Description |
|---|---|---|
comment_urn * | string | Comment URN (e.g. urn:li:comment:(urn:li:activity:123,456)) |
profile | string | Profile name to use from config file |
comment_delete Delete Comment
Delete a comment by URN
| Parameter | Type | Description |
|---|---|---|
comment_urn * | string | Comment URN to delete (e.g. urn:li:comment:(urn:li:activity:123,456)) |
profile | string | Profile name to use from config file |
reaction_create Create Reaction
Add a reaction to a LinkedIn post. Supports LIKE (default), PRAISE, EMPATHY, INTEREST, APPRECIATION, ENTERTAINMENT. Use as_org to react as an organization.
| Parameter | Type | Description |
|---|---|---|
entity_urn * | string | Entity URN to react to (e.g. urn:li:share:abc123) |
as_org | string | Organization ID to act as (numeric, e.g. 12345) |
profile | string | Profile name to use from config file |
reaction_type | string | Type of reaction (defaults to LIKE) |
reaction_list List Reactions
List reactions on a LinkedIn post
| Parameter | Type | Description |
|---|---|---|
entity_urn * | string | Entity URN to list reactions for (e.g. urn:li:share:abc123) |
profile | string | Profile name to use from config file |
reaction_delete Delete Reaction
Remove a reaction from a LinkedIn post. Use as_org to delete an organization's reaction.
| Parameter | Type | Description |
|---|---|---|
entity_urn * | string | Entity URN to remove reaction from (e.g. urn:li:share:abc123) |
as_org | string | Organization ID to act as (numeric, e.g. 12345) |
profile | string | Profile name to use from config file |
org_list List Organizations
List LinkedIn organizations the authenticated user administers
| Parameter | Type | Description |
|---|---|---|
count | number | Number of results to return (default 10, max 100) |
profile | string | Profile name to use from config file |
start | number | Starting index for pagination (default 0) |
org_get Get Organization
Fetch a single LinkedIn organization by ID
| Parameter | Type | Description |
|---|---|---|
id * | string | Organization ID (numeric, e.g. 12345) |
profile | string | Profile name to use from config file |
org_followers Get Organization Followers
Get the follower count for a LinkedIn organization
| Parameter | Type | Description |
|---|---|---|
id * | string | Organization ID (numeric, e.g. 12345) |
profile | string | Profile name to use from config file |
stats_post Post Stats
Get analytics for a single LinkedIn post (impressions, reach, reactions, comments, reshares). Requires the Community Management API product (r_member_postAnalytics scope).
| Parameter | Type | Description |
|---|---|---|
post_urn * | string | Post URN (e.g. urn:li:share:123 or urn:li:ugcPost:123) |
aggregation | string | Aggregation mode (defaults to TOTAL). DAILY returns per-day breakdown. |
from | string | Start date inclusive (YYYY-MM-DD). If omitted, lifetime stats are returned. |
profile | string | Profile name to use from config file |
to | string | End date exclusive (YYYY-MM-DD). If omitted, lifetime stats are returned. |
stats_me My Stats
Get aggregated analytics across all your LinkedIn posts (impressions, reach, reactions, comments, reshares). Requires the Community Management API product (r_member_postAnalytics scope).
| Parameter | Type | Description |
|---|---|---|
aggregation | string | Aggregation mode (defaults to TOTAL). DAILY returns per-day breakdown. |
from | string | Start date inclusive (YYYY-MM-DD). If omitted, lifetime totals are returned. |
profile | string | Profile name to use from config file |
to | string | End date exclusive (YYYY-MM-DD). If omitted, lifetime totals are returned. |
stats_org Organization Share Statistics
Get share statistics for a LinkedIn organization. Returns lifetime aggregate statistics by default. When time_granularity and start/end are provided, returns time-bucketed statistics.
| Parameter | Type | Description |
|---|---|---|
id * | string | Organization ID (numeric, e.g. 12345) |
end | string | End of time range (ISO 8601 date, e.g. 2026-02-01). Requires start. |
profile | string | Profile name to use from config file |
shares | string | Comma-separated share URNs to filter statistics for specific posts |
start | string | Start of time range (ISO 8601 date, e.g. 2026-01-01). Requires end. |
time_granularity | string | Time granularity for bucketed results (DAY or MONTH). Requires start and end. |
document_upload Upload Document
Upload a document to LinkedIn (PDF, DOCX, PPTX, DOC, PPT; max 100 MB). Returns the document URN.
| Parameter | Type | Description |
|---|---|---|
file * | string | Absolute path to the document file |
as_org | string | Organization ID to upload as (e.g. 12345) |
profile | string | Profile name to use from config file |