MCP serversSocial publishingLeer en español
Set up the LinkedIn MCP server
Research LinkedIn profiles, company pages and job posts locally from desktop or IDE AI assistants.
Before you start
LinkedIn does not offer an official public MCP server. Community local servers focus on read-only research and rely on browser session cookies, which can expire or violate LinkedIn automation limits if overused.
For compliant organic publishing to LinkedIn Profiles and Company Pages, use an approved OAuth publisher like Spica Post.
Add it to your client
This server runs locally over stdio, so use Claude Desktop rather than Claude web.
Open Settings › Developer › Edit Config (claude_desktop_config.json).
Add the block below, restart Claude Desktop and test a read-only prompt.
{
"mcpServers": {
"linkedin": {
"command": "uvx",
"args": [
"linkedin-mcp-server"
],
"env": {
"LINKEDIN_COOKIE": "YOUR_LI_AT_SESSION_OR_TOKEN"
}
}
}
}Browser-only clients like Claude web and ChatGPT require a remote HTTPS endpoint; local stdio servers run in desktop apps and terminal clients.
Register the local stdio command in Claude Code using the command below.
Paste your LinkedIn API key or token from your account settings where shown.
Confirm the tools load by running /mcp inside Claude Code.
claude mcp add -e LINKEDIN_COOKIE=YOUR_LI_AT_SESSION_OR_TOKEN linkedin -- uvx linkedin-mcp-serverOpen .cursor/mcp.json in your project or go to Cursor Settings › Tools & MCP.
Paste the local configuration below and replace placeholder environment variables with your credentials.
Paste your LinkedIn API key or token from your account settings where shown.
{
"mcpServers": {
"linkedin": {
"command": "uvx",
"args": [
"linkedin-mcp-server"
],
"env": {
"LINKEDIN_COOKIE": "YOUR_LI_AT_SESSION_OR_TOKEN"
}
}
}
}Add the stdio configuration below to .vscode/mcp.json.
Paste your LinkedIn API key or token from your account settings where shown.
Start the server from the VS Code MCP panel.
{
"servers": {
"linkedin": {
"type": "stdio",
"command": "uvx",
"args": [
"linkedin-mcp-server"
],
"env": {
"LINKEDIN_COOKIE": "YOUR_LI_AT_SESSION_OR_TOKEN"
}
}
}
}Register the local server in Codex CLI with the command below.
Paste your LinkedIn API key or token from your account settings where shown.
Verify the connection with codex mcp list.
codex mcp add --env LINKEDIN_COOKIE=YOUR_LI_AT_SESSION_OR_TOKEN linkedin -- uvx linkedin-mcp-serverChatGPT only connects to remote HTTPS MCP servers, not local stdio processes.
To use LinkedIn from ChatGPT, deploy a remote HTTPS bridge or check the official documentation.
Reference documentation: https://github.com/stickerdaniel/linkedin-mcp-server
What you can do
- Inspect public profile backgrounds, experience and company summaries for outreach research.
- Review job listings and company updates inside local MCP clients.
- Gather prospect context before drafting LinkedIn posts.
“Summarize the public company overview and recent positioning of this prospect before I write a LinkedIn post.”
What it can change
Read-only research in standard configuration; does not safely handle compliant LinkedIn OAuth publishing.
Publish to LinkedIn Profiles & Pages via official OAuth in Spica Post
Instead of risking browser cookies to post on LinkedIn, connect Spica Post's remote OAuth MCP server. Spica Post uses LinkedIn's official API, supports live publishing today alongside X and Bluesky, and validates every draft before posting.
“Turn these three customer questions into a LinkedIn post in my brand voice and show me the draft.”
Questions
Does LinkedIn have an official MCP server?
No. LinkedIn has not released an official public MCP server. Local community packages focus on profile research, while official OAuth publishing is available through MCP servers like Spica Post.
Are session-cookie LinkedIn scrapers safe for publishing?
Using browser cookies for automated posting carries account-restriction risk. Use official LinkedIn OAuth APIs for publishing.
Pair your stack with one remote OAuth MCP for social publishing.
Works with the assistant you already use: Claude, ChatGPT, Gemini, Grok and more.


