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 a text update saying 'Excited to announce our new feature!'"
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 Model Context Protocol (MCP) server that provides AI agents with read/write access to the LinkedIn API.
Features
Profile Tools: Fetch user profile and email.
Post Tools: Create text, link, image, and document posts. Delete posts.
Media Tools: Upload images and documents to LinkedIn.
Organization Tools: Fetch organization details, post on behalf of an organization, fetch and delete org posts.
Social Action Tools: Fetch, create, and delete comments on posts. Add or remove reactions (like, celebrate, etc.).
Organization Analytics Tools: Get organization page, follower, and share statistics.
Related MCP server: LinkedIn MCP Server
Setup
Install dependencies:
npm installBuild the project:
npm run buildGet a LinkedIn Access Token:
Create an app on the LinkedIn Developer Portal.
Go to the Auth tab and add
http://localhost:3000/callbackto the Authorized redirect URLs.Run the automated OAuth flow:
npm run authFollow the prompts in the terminal. This will automatically open a browser window for you to log in and authorize the app, then it will save your new
LINKEDIN_ACCESS_TOKENdirectly into the.envfile!
Usage as a Local MCP Server
To use this server locally with an AI agent (like Claude Desktop, Cursor, or Antigravity), you need to configure the IDE to spawn the MCP server process.
Claude Desktop Configuration
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/path/to/linkedin-mcp-server/dist/index.js"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "your-linkedin-access-token"
}
}
}
}Cursor Configuration
In Cursor's Settings > AI > MCP Servers, add a new server:
Type:
commandName:
linkedinCommand:
node /path/to/linkedin-mcp-server/dist/index.jsEnvironment Variables: Add
LINKEDIN_ACCESS_TOKENwith your token.
Development
npm run build: Compile TypeScript to JavaScript.npm run watch: Compile in watch mode.npm test: Run tests with Vitest.npm run test:ui: Run tests with UI.npm run lint: Run ESLint.npm run format: Run Prettier.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/himanshu31shr/linkedin-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server