# linkedctl [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/alexey-pelykh/linkedctl  
**GitHub Stars:** 2  
**npm Downloads (last month):** 218  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/linkedctl

## Description
OAuth2 CLI and MCP server for the LinkedIn API

## Tools
Capabilities this server exposes over MCP:

- **whoami** — Show the current user's name, email, and profile picture URL
- **auth_status** — Show authentication status for a profile
- **auth_revoke** — Revoke the access token server-side and clear local credentials
- **post_create** — Create a post on LinkedIn with optional media, poll, or article attachment
- **post_get** — Fetch a single post by URN
- **post_list** — List posts with pagination (supports `as_org` for organization posts)
- **post_update** — Update the commentary text of an existing post
- **post_delete** — Delete a post by URN
- **comment_create** — Create a comment on a post (supports `as_org`)
- **comment_list** — List comments on a post
- **comment_get** — Get a specific comment by URN
- **comment_delete** — Delete a comment by URN
- **reaction_create** — Add a reaction to a post (supports `as_org`). Types: `LIKE`, `PRAISE`, `EMPATHY`, `INTEREST`, `APPRECIATION`, `ENTERTAINMENT
- **reaction_list** — List reactions on a post
- **reaction_delete** — Remove a reaction from a post (supports `as_org`)
- **org_list** — List organizations the authenticated user administers
- **org_get** — Fetch a single organization by ID
- **org_followers** — Get the follower count for an organization
- **stats_post** — Get analytics for a single post (impressions, reach, reactions, comments, reshares)
- **stats_me** — Get aggregated analytics across all your posts
- **stats_org** — Get share statistics for an organization (lifetime or time-bucketed)
- **document_upload** — Upload a document to LinkedIn (PDF, DOCX, PPTX, DOC, PPT; max 100 MB)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "linkedctl": {
    "command": "npx",
    "args": ["-y","linkedctl"]
  }
}
```

## Documentation

## What linkedctl MCP server does

The linkedctl MCP server gives an MCP-compatible AI client access to selected LinkedIn API operations. It can identify the authenticated member, check or revoke authentication, create and manage posts, work with comments and reactions, inspect administered organizations, retrieve analytics, and upload supported documents.

Post creation supports text, visibility settings, drafts, images, video, documents, article links, polls, and multi-image content. Posts can be created for the authenticated member or, where supported, on behalf of an organization. The available reaction values are `LIKE`, `PRAISE`, `EMPATHY`, `INTEREST`, `APPRECIATION`, and `ENTERTAINMENT`.

## How it works

The linkedctl MCP server is started as a local process with `npx linkedctl mcp` or an equivalent installed command. MCP clients communicate with that process over the standard input/output transport. Every tool accepts an optional `profile` parameter, allowing separate configuration profiles to be selected.

Authentication uses an OAuth 2.0 LinkedIn Developer App. The toolset includes `whoami`, `auth_status`, and `auth_revoke`; tokens can be managed through the CLI or supplied in a profile configuration. Operations that act for an organization use an `as_org` option where documented and require the authenticated user to have the relevant access.

## Setup and configuration

Install the package globally with `npm install -g linkedctl`, or invoke it without a global installation using `npx linkedctl --help`. The documented prerequisite is Node.js 24 or newer, plus a LinkedIn Developer App with appropriate permissions.

Create the app, configure its OAuth 2.0 credentials, and authenticate with `linkedctl auth login --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET`. Configuration is stored in YAML profiles. Supported values include the LinkedIn API version, OAuth client ID and secret, access token, refresh token, and token expiration timestamp.

For Claude Desktop, Cursor, and Windsurf, add an MCP entry that runs `npx linkedctl mcp`. Claude Code can register the same command with `claude mcp add linkedctl -- npx linkedctl mcp`.

## Tools and capabilities

The linkedctl MCP server exposes these tool groups:

- Authentication: identify the user, inspect profile authentication, or revoke credentials.
- Posts: create, fetch, paginate, update commentary, and delete posts.
- Comments: create, list, retrieve, and delete comments.
- Reactions: add, list, and remove reactions.
- Organizations: list administered organizations, retrieve an organization, and count followers.
- Analytics: inspect metrics for one post, aggregate member post metrics, or retrieve organization share statistics.
- Media: upload PDF, DOCX, PPTX, DOC, or PPT files up to 100 MB.

Post listing supports pagination. Organization analytics can be lifetime or time-bucketed, while post analytics include impressions, reach, reactions, comments, and reshares.

## Limitations and notes

The material specifies LinkedIn API access and appropriate app permissions as prerequisites; it does not describe a separate hosted service. Document uploads are limited to the listed file types and a maximum size of 100 MB. The documented post update operation changes commentary text, and organization actions depend on the authenticated user’s administrative access. API behavior and available operations may also depend on the LinkedIn API version configured in the profile.

_Full upstream README: https://allmcps.com/mcp/linkedctl/readme_

