MCP Linkedin logo

MCP Linkedin

by timkulbaev

Publishes LinkedIn posts, comments, and reactions through Unipile with preview-first safeguards.

Install MCP Linkedin

Run the project’s own setup commands, in order.

Setup steps from the project

timkulbaev/mcp-linkedin installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/timkulbaev/mcp-linkedin.git
    
  2. 2. Install
    cd mcp-linkedin
    
  3. 3. Install
    npm install
    

Overview

The timkulbaev/mcp-linkedin MCP server exposes LinkedIn publishing, commenting, and reactions through the Unipile API. It runs over MCP's stdio transport and uses Unipile credentials supplied through environment variables. Publishing and commenting default to dry-run previews, while reactions execute immediately. Reach for it when an AI workflow needs to prepare and selectively publish LinkedIn content, including media and company mentions.

Use cases

  • Draft and preview LinkedIn posts before publishing
  • Publish posts with image or video attachments
  • Add comments to LinkedIn posts
  • React to LinkedIn posts with supported reaction types
  • Mention companies in generated LinkedIn content

Key features

  • LinkedIn post publishing through Unipile
  • Dry-run previews for posts and comments
  • Comments and immediate reactions
  • Local or URL-based media attachments
  • Company mention resolution

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/13 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit8mo agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Linkedin works

What timkulbaev/mcp-linkedin MCP server does

The timkulbaev/mcp-linkedin MCP server gives MCP-compatible AI clients three LinkedIn actions: create an original post, add a comment to an existing post, and react to a post. The server sends these requests to Unipile, which connects the configured LinkedIn account and handles LinkedIn OAuth.

Post creation accepts text, optional media, company mentions, and a dry-run flag. Text is limited to 3,000 characters. Media can be supplied as local paths or URLs, and supported formats include JPG, JPEG, PNG, GIF, WEBP, and MP4. Company names are resolved through Unipile's LinkedIn company search so they can become clickable mentions.

How it works

An MCP client communicates with the local process using JSON-RPC over stdio. The server validates tool inputs, prepares media and mentions, then calls the Unipile API. For remote media URLs, files are downloaded to a temporary directory and removed after the publish attempt.

The intended publishing sequence is preview first, publish second. linkedin_publish and linkedin_comment use dry_run: true by default. A preview reports the proposed content, character count, media validation, resolved mentions, and warnings. The client must call the tool again with dry_run: false to perform the action. linkedin_react has no preview mode and acts immediately.

After a successful post, the response includes a post ID and indicates that the post was automatically liked. A LinkedIn feed URL can be formed from that ID using the activity URN format shown by the project.

Setup and configuration

To run timkulbaev/mcp-linkedin, use Node.js 18 or later. Clone the repository, change into its directory, and run npm install. Configure the MCP client to start index.js with Node and provide an absolute path to that entry point.

Two environment variables are required:

  • UNIPILE_API_KEY: the API key from the Unipile dashboard.
  • UNIPILE_DSN: the Unipile data source name, such as an apiXX.unipile.com:XXXXX value.

Before connecting the server, create a Unipile account, connect a LinkedIn account, and retrieve the API key and DSN from the dashboard. Restart Claude Code or Claude Desktop after changing the MCP configuration.

Tools and capabilities

The available tools are:

  • linkedin_publish: previews or publishes an original post, with optional media and company mentions.
  • linkedin_comment: previews or posts a comment using a LinkedIn post URL or raw post URN.
  • linkedin_react: applies like, celebrate, support, love, insightful, or funny to a LinkedIn post.

The media handler checks that local files exist, are non-empty, and use a supported type. Unresolved company names remain visible as preview warnings, and the post may still be published without those mentions.

Limitations and notes

The timkulbaev/mcp-linkedin MCP server requires an active Unipile account connected to LinkedIn; it does not manage LinkedIn credentials directly. Reactions are not protected by dry-run mode, so they should be treated as immediate operations. URL media is temporary and is cleaned up after publishing succeeds or fails.

The repository includes unit tests using Node's built-in test runner and a Biome lint script. The documented client examples cover Claude Code and Claude Desktop, while the server is described as usable with other MCP-compatible clients.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Linkedin

Clone the repository, run `npm install` in its directory, and configure the MCP client to start its `index.js` entry point with Node.js 18 or later.

Yes. The README provides a Claude Desktop configuration using Node, the server's `index.js`, `UNIPILE_API_KEY`, and `UNIPILE_DSN`.

Call `linkedin_publish` with `dry_run: true`, which is also the default. Review the returned content, character count, media checks, mentions, and warnings before calling it with `dry_run: false`.

It requires a Unipile API key and DSN in `UNIPILE_API_KEY` and `UNIPILE_DSN`. You must also connect a LinkedIn account in Unipile.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Linkedin AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/timkulbaev-mcp-linkedin?style=directory)](https://allmcps.com/mcp/timkulbaev-mcp-linkedin)
HTML Embed
<a href="https://allmcps.com/mcp/timkulbaev-mcp-linkedin"><img src="https://allmcps.com/api/badge/timkulbaev-mcp-linkedin?style=directory" alt="MCP Linkedin on AllMCPs" /></a>