linkedctl

v0.5.0
io.github.alexey-pelykh/linkedctl Checked 4 days ago Published 9 months ago

CLI 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

ParameterTypeDescription
profilestringProfile name to use from config file

auth_status Auth Status

Show authentication status for a profile

ParameterTypeDescription
profilestringProfile 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

ParameterTypeDescription
profilestringProfile 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.

ParameterTypeDescription
text *stringThe text content of the post
article_urlstringArticle URL to attach
as_orgstringPost as an organization (numeric organization ID). The authenticated user must be an admin.
documentstringDocument URN to attach (e.g. urn:li:document:D123...)
document_filestringPath to a local document file to upload and attach
draftbooleanSave as draft instead of publishing (defaults to false)
imagestringImage URN to attach (e.g. urn:li:image:C5608AQ...)
image_filestringPath to a local image file to upload and attach
image_filesarrayArray of local image file paths to upload and attach (minimum 2)
imagesarrayArray of image URNs for multi-image post (minimum 2)
pollstringPoll question text (creates a poll post)
poll_durationstringHow long the poll stays open (defaults to THREE_DAYS)
poll_optionsarrayArray of poll answer options (minimum 2, maximum 4; required when poll is set)
profilestringProfile name to use from config file
videostringVideo URN to attach (e.g. urn:li:video:D5608AQ...)
video_filestringPath to a local video file to upload and attach
visibilitystringPost visibility (defaults to PUBLIC)

post_get Get Post

Fetch a single LinkedIn post by URN

ParameterTypeDescription
urn *stringPost URN (e.g. urn:li:share:123)
profilestringProfile name to use from config file

post_list List Posts

List LinkedIn posts with pagination

ParameterTypeDescription
as_orgstringList posts of an organization (numeric organization ID). The authenticated user must be an admin.
countnumberNumber of posts to return (default 10, max 100)
profilestringProfile name to use from config file
startnumberStarting index for pagination (default 0)

post_update Update Post

Update the commentary text of an existing LinkedIn post

ParameterTypeDescription
text *stringNew text content for the post
urn *stringPost URN (e.g. urn:li:share:123)
profilestringProfile name to use from config file

post_delete Delete Post

Delete a LinkedIn post by URN

ParameterTypeDescription
urn *stringPost URN (e.g. urn:li:share:123)
profilestringProfile 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.

ParameterTypeDescription
post_urn *stringPost URN to comment on (e.g. urn:li:share:...)
text *stringThe comment text
as_orgstringOrganization ID to act as (numeric, e.g. 12345)
profilestringProfile name to use from config file

comment_list List Comments

List comments on a LinkedIn post

ParameterTypeDescription
post_urn *stringPost URN to list comments for (e.g. urn:li:share:...)
profilestringProfile name to use from config file

comment_get Get Comment

Get a specific comment by URN

ParameterTypeDescription
comment_urn *stringComment URN (e.g. urn:li:comment:(urn:li:activity:123,456))
profilestringProfile name to use from config file

comment_delete Delete Comment

Delete a comment by URN

ParameterTypeDescription
comment_urn *stringComment URN to delete (e.g. urn:li:comment:(urn:li:activity:123,456))
profilestringProfile 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.

ParameterTypeDescription
entity_urn *stringEntity URN to react to (e.g. urn:li:share:abc123)
as_orgstringOrganization ID to act as (numeric, e.g. 12345)
profilestringProfile name to use from config file
reaction_typestringType of reaction (defaults to LIKE)

reaction_list List Reactions

List reactions on a LinkedIn post

ParameterTypeDescription
entity_urn *stringEntity URN to list reactions for (e.g. urn:li:share:abc123)
profilestringProfile 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.

ParameterTypeDescription
entity_urn *stringEntity URN to remove reaction from (e.g. urn:li:share:abc123)
as_orgstringOrganization ID to act as (numeric, e.g. 12345)
profilestringProfile name to use from config file

org_list List Organizations

List LinkedIn organizations the authenticated user administers

ParameterTypeDescription
countnumberNumber of results to return (default 10, max 100)
profilestringProfile name to use from config file
startnumberStarting index for pagination (default 0)

org_get Get Organization

Fetch a single LinkedIn organization by ID

ParameterTypeDescription
id *stringOrganization ID (numeric, e.g. 12345)
profilestringProfile name to use from config file

org_followers Get Organization Followers

Get the follower count for a LinkedIn organization

ParameterTypeDescription
id *stringOrganization ID (numeric, e.g. 12345)
profilestringProfile 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).

ParameterTypeDescription
post_urn *stringPost URN (e.g. urn:li:share:123 or urn:li:ugcPost:123)
aggregationstringAggregation mode (defaults to TOTAL). DAILY returns per-day breakdown.
fromstringStart date inclusive (YYYY-MM-DD). If omitted, lifetime stats are returned.
profilestringProfile name to use from config file
tostringEnd 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).

ParameterTypeDescription
aggregationstringAggregation mode (defaults to TOTAL). DAILY returns per-day breakdown.
fromstringStart date inclusive (YYYY-MM-DD). If omitted, lifetime totals are returned.
profilestringProfile name to use from config file
tostringEnd 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.

ParameterTypeDescription
id *stringOrganization ID (numeric, e.g. 12345)
endstringEnd of time range (ISO 8601 date, e.g. 2026-02-01). Requires start.
profilestringProfile name to use from config file
sharesstringComma-separated share URNs to filter statistics for specific posts
startstringStart of time range (ISO 8601 date, e.g. 2026-01-01). Requires end.
time_granularitystringTime 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.

ParameterTypeDescription
file *stringAbsolute path to the document file
as_orgstringOrganization ID to upload as (e.g. 12345)
profilestringProfile name to use from config file