
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@luminarylane/linkedin-mcp-server
Advanced tools
Standalone LinkedIn MCP Server — SENSE + ACT tools for the LinkedIn API
A Model Context Protocol (MCP) server that enables Claude Desktop (and other MCP clients) to interact with LinkedIn — publish posts, upload media, comment, react, and analyse your organisation's performance.
LINKEDIN_ACCESS_TOKEN for all operationsaccessToken as a tool argument for multi-account setupsLINKEDIN_ORG_ID once for all organisation analytics tools*.linkedin.com / *.licdn.com hostsEXTCONTENT markersme once per credential key (4 h TTL)Discovery:
| Tool | Description |
|---|---|
linkedin_whoami | Verify which account this token belongs to — always call before writes |
linkedin_list_capabilities | List all supported content types, limits, and caveats |
SENSE — Read from LinkedIn:
| Tool | Description |
|---|---|
linkedin_get_org_analytics | Page views and visitor demographics for your organisation |
linkedin_get_post_analytics | Likes, comments, and shares for a specific post |
linkedin_get_comments | Comments on a post |
linkedin_get_mentions | Social actions where your organisation is mentioned |
linkedin_get_follower_stats | Follower demographics — seniority, industry, company size |
linkedin_get_share_stats | Share statistics for specific posts |
ACT — Write to LinkedIn:
| Tool | Description |
|---|---|
linkedin_create_post | Publish text, image, video, document, or link preview posts |
linkedin_comment | Comment on a post (max 1,250 chars) |
linkedin_react | Like a post |
linkedin_share | Reshare a post with optional commentary |
linkedin_delete_post | Delete a post by URN |
linkedin_get_media_specs | Media format specs (dimensions, size limits) |
openid + profile — required for identity resolutionw_member_social — required for creating posts, comments, and reactionsFor organisation analytics, note your LinkedIn Organization ID (numeric, from your company page URL).
Published package: @luminarylane/linkedin-mcp-server on npm
# Add the Luminary Lane Tools marketplace
/plugin marketplace add luminarylane/linkedin-mcp-server
# Install the plugin
/plugin install linkedin@luminary-lane-tools
Or install directly:
/plugin install linkedin@luminarylane/linkedin-mcp-server
# Test it works
LINKEDIN_ACCESS_TOKEN=your-token npx --yes @luminarylane/linkedin-mcp-server
Claude Desktop configuration:
{
"mcpServers": {
"linkedin": {
"command": "npx",
"args": ["--yes", "@luminarylane/linkedin-mcp-server"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "your-access-token",
"LINKEDIN_ORG_ID": "your-org-id"
}
}
}
}
LINKEDIN_ORG_IDis optional — only needed for organisation analytics tools.
npm install -g @luminarylane/linkedin-mcp-server
{
"mcpServers": {
"linkedin": {
"command": "luminarylane-linkedin-mcp",
"env": {
"LINKEDIN_ACCESS_TOKEN": "your-access-token",
"LINKEDIN_ORG_ID": "your-org-id"
}
}
}
}
git clone https://github.com/luminarylane/linkedin-mcp-server.git
cd linkedin-mcp-server
npm install
npm run build
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/path/to/linkedin-mcp-server/dist/index.js"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "your-access-token"
}
}
}
}
| Env Var | Required | Description |
|---|---|---|
LINKEDIN_ACCESS_TOKEN | Yes | OAuth 2.0 bearer token (60-day lifetime) |
LINKEDIN_ORG_ID | For org tools | Numeric organisation ID from company page URL |
Per-call credentials — pass accessToken and/or organizationId directly as tool arguments to manage multiple accounts from one server instance.
Always call linkedin_whoami first to verify the token is valid and confirm which account you're acting on before any write operation.
Once configured, ask Claude to:
The server enforces conservative rate limits client-side:
| Category | Limit | Window |
|---|---|---|
| Global | 100 requests | 24 hours |
| Reads | 60 requests | 1 hour |
| Writes (posts/comments/reactions) | 25 actions | 24 hours |
| Delete | 10 actions | 1 hour |
LinkedIn does not publish exact rate limits — these are conservative estimates for the basic tier. When a limit is reached the server returns a structured error with retryAfterSeconds and an action hint.
AUTH_EXPIRED: Token may have expired (60-day lifetime). Re-authenticate via OAuth.
LinkedIn access tokens expire after 60 days. Generate a new token in the Developer Portal.
SCOPE_MISSING: App may lack required OAuth scope (w_member_social for writes).
Ensure your LinkedIn app has w_member_social scope and re-generate the token.
CAROUSEL_UNSUPPORTED: Organic carousels return 403.
LinkedIn disables organic native carousels via API. Use documentUrl with a PDF instead — it renders as a swipeable carousel.
ORG_PERMISSION: User may not have admin access to this organization.
The authenticated user needs at least Community Manager role on the LinkedIn Company Page.
FILE_TOO_LARGE: Image max 10MB, video max 200MB, document max 100MB.
Compress the file or use a smaller variant before uploading.
LinkedIn's Posts API sometimes returns 201 with an empty body. The server reads the x-restli-id response header. If it's missing, the post was likely created — check the LinkedIn feed.
Contributions are welcome! See CONTRIBUTING.md for guidelines.
npm install # Install dependencies
npm run dev # Run in dev mode (no build needed)
npx tsc --noEmit # Type check
npm test # Run tests
npx prettier --write . # Format
MIT License — see LICENSE for details.
FAQs
Standalone LinkedIn MCP Server — SENSE + ACT tools for the LinkedIn API
We found that @luminarylane/linkedin-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.