LinkedIn MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LinkedIn MCP Serverpost 'Exploring the future of AI' on LinkedIn"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LinkedIn MCP Server
A lightweight Model Context Protocol (MCP) server that lets an MCP-compatible AI assistant publish public text posts to an authenticated LinkedIn profile.
Architecture
AI Assistant
|
| MCP / stdio
v
LinkedIn MCP Server
|
| HTTPS REST API
v
LinkedInRelated MCP server: LinkedIn Custom MCP Server
MCP tool
linkedin_create_post
Publishes a public text post to the authenticated LinkedIn profile.
Input:
{
"text": "Hello from my MCP server 🚀"
}The tool returns the LinkedIn post ID on success.
Requirements
Python 3.11+
A LinkedIn developer application with the required API permissions
A valid LinkedIn access token
The authenticated author's LinkedIn person URN
Install dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtCredentials
Credentials are intentionally kept outside Git.
Create these files in the project root:
access_token.txt
person_urn.txtaccess_token.txt should contain only the LinkedIn access token.
person_urn.txt should contain a value such as:
urn:li:person:YOUR_SUBJECT_IDSet restrictive permissions:
chmod 600 access_token.txt person_urn.txtNever commit tokens, OAuth credentials, or personal credential files.
Run the MCP server
python -m src.linkedin_mcp.serverThe server uses STDIO, so it intentionally stays running and waits for MCP JSON-RPC messages. Do not print application logs to stdout because stdout is reserved for the MCP protocol.
MCP Inspector
For local development:
npx @modelcontextprotocol/inspector \
python -m src.linkedin_mcp.serverThen connect to the STDIO server and call linkedin_create_post from the Inspector.
Testing
Run:
pytest -qSecurity notes
Secrets are stored in local files ignored by Git.
.env.examplecontains placeholders only.GitHub push protection should remain enabled.
If a LinkedIn token is ever exposed, revoke/rotate it immediately.
Portfolio description
A production-minded MCP server that exposes LinkedIn publishing as a structured AI tool, combining the Model Context Protocol, OAuth-based LinkedIn authentication, secure local credential handling, and REST API integration.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceEnables posting text and media content directly to LinkedIn from Claude Desktop with support for authentication and visibility controls.10MIT
- AlicenseAqualityDmaintenanceEnables AI agents to manage professional networking on LinkedIn by providing tools for posting updates, searching for jobs, and analyzing profiles. It facilitates secure interaction with the LinkedIn platform through OAuth 2.0 authentication and the Model Context Protocol.1711MIT
- AlicenseAqualityDmaintenanceEnables posting content, sharing articles, and managing LinkedIn profile through natural language using the official LinkedIn REST API with OAuth 2.0.710MIT
- AlicenseBqualityDmaintenanceAllows AI agents to authenticate with LinkedIn and share posts or links via the Model Context Protocol.2126MIT
Related MCP Connectors
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Scrape and analyze public LinkedIn posts as structured JSON via the Apify LinkedIn Posts API.
Let AI tools securely access your LinkedIn network and DMs
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/amiradmin/linkedin-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server