authenticateLABSCO SUMMARY
Two tools, one job, media included.
This does not try to be a LinkedIn client — there is no feed reading and no analytics. It publishes, and it handles the part most small scripts skip: uploading an image or a video and attaching it to the post rather than dropping in a link. The setup cost is a LinkedIn Developer app, which is a one-time step but not a two-minute one.
What it is
A small LinkedIn publishing server. It runs the OAuth2 sign-in once, stores the token, and then posts on your behalf.
What you get
authenticateruns the LinkedIn OAuth2 flow and stores the resulting tokencreate_postwrites a post and, given a local file path, attaches the image or video to it- Post visibility is a parameter — public, or connections only
Requirements
The PyPI package linkedin-mcp, version 0.1.7, installed with pipx and launched as linkedin-mcp. You supply a LinkedIn Developer app with the "Log In to LinkedIn" and "Share on LinkedIn" products enabled, then set LINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRET and LINKEDIN_REDIRECT_URI — the redirect URI is registered as http://localhost:3000/callback.
Setup effort
One command plus credentials — pipx install linkedin-mcp, then supply credentials
USE CASES
Publishing something you just drafted
Go from the finished text in the conversation to a live post without a copy-paste round trip.
Posting with the image you just made
Point at the file on disk and it gets uploaded and attached, not linked.
Keeping a post inside your network
Set visibility to connections when the update is not meant for the public feed.
2 tools
Listed in project docs. Your client may show a different list.
create_postBEFORE YOU INSTALL
What to know first
Tools you get
2 tools named in the project's documentation.
Requires
- linkedin-mcp on PATH
- LINKEDIN_CLIENT_ID in your environment
- LINKEDIN_CLIENT_SECRET in your environment
- LINKEDIN_REDIRECT_URI in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
pipx install linkedin-mcpMCP Clients
Claude Desktop
{
"mcpServers": {
"linkedin-mcp": {
"command": "linkedin-mcp",
"env": {
"LINKEDIN_CLIENT_ID": "<YOUR_LINKEDIN_CLIENT_ID>",
"LINKEDIN_CLIENT_SECRET": "<YOUR_LINKEDIN_CLIENT_SECRET>",
"LINKEDIN_REDIRECT_URI": "<YOUR_LINKEDIN_REDIRECT_URI>"
}
}
}
}