Sign In

linkedctl

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkedctl

The complete CLI & MCP for LinkedIn

Source
npmnpm
Version
0.0.0
Version published
Weekly downloads
48
-15.79%
Maintainers
1
Weekly downloads
 
Created
Source

LinkedCtl

CI License

OAuth2 CLI and MCP server for the LinkedIn API.

What It Does

  • Post content to LinkedIn via the official API
  • OAuth 2.0 authentication with your own LinkedIn app
  • Direct token passing for tokens obtained from other applications
  • MCP server for AI assistant integration (Claude, Cursor, etc.)
  • CLI for scriptable LinkedIn operations

Prerequisites

Installation

npm install -g linkedctl

Or run directly:

npx linkedctl --help

Quick Start

  • Create a LinkedIn app at linkedin.com/developers
  • Configure OAuth 2.0 credentials
  • Authenticate:
    linkedctl auth login
    
  • Start using:
    linkedctl post "Hello from LinkedCtl!"
    

MCP Integration

Claude Code

claude mcp add linkedctl -- npx linkedctl mcp

Claude Desktop

Add to claude_desktop_config.json:

{
    "mcpServers": {
        "linkedctl": {
            "command": "npx",
            "args": ["linkedctl", "mcp"]
        }
    }
}

Configuration

LinkedCtl supports OAuth 2.0 with your own LinkedIn Developer App:

linkedctl auth login --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET

Direct Token

If you already have an access token from another application:

linkedctl auth token --access-token YOUR_TOKEN

Environment Variables

VariableDescription
LINKEDCTL_CLIENT_IDLinkedIn OAuth 2.0 client ID
LINKEDCTL_CLIENT_SECRETLinkedIn OAuth 2.0 client secret
LINKEDCTL_ACCESS_TOKENDirect access token (bypasses OAuth flow)

Disclaimer

This is an independent project and is not affiliated with, endorsed by, or associated with LinkedIn Corporation. LinkedIn is a trademark of LinkedIn Corporation.

License

AGPL-3.0-only

Using LinkedCtl as a CLI tool or MCP server: No license obligations — use freely.

Using @linkedctl/core as a library in your project: Your combined work must be licensed under AGPL-3.0 (or a compatible license).

Keywords

linkedin

FAQs

Package last updated on 03 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts