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 ServerCreate a LinkedIn post about my latest project"
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 for LinkedIn integration, allowing Claude to create posts, comment on posts, manage your LinkedIn presence, and share content with media attachments.
Features
Post Management: Create, delete, and view LinkedIn posts
Media Sharing: Upload and share images/videos with posts
Comment System: Comment on LinkedIn posts
Feed Management: View your LinkedIn feed
Profile Access: Get your LinkedIn profile information
Post Engagement: Like and share LinkedIn posts
Related MCP server: LinkedIn MCP Server
Prerequisites
Node.js 18+
LinkedIn Developer Account and Access Token
Claude Desktop App
Installation
Clone this repository:
git clone https://github.com/rgthelen/linkedin-mcp-server.git
cd linkedin-mcp-serverInstall dependencies:
npm installSet up LinkedIn API credentials:
Create an app or use existing app
Generate an access token with appropriate scopes:
r_liteprofile(to read profile)r_emailaddress(to read email)w_member_social(to post content)
Configure environment variables:
cp .env.example .env
# Edit .env with your LinkedIn access tokenBuild the project:
npm run buildConfiguration
See CLAUDE.md for detailed Claude Desktop setup instructions.
Available Tools
test_linkedin_connection- Test the LinkedIn API connectionget_profile- Get your LinkedIn profile informationcreate_post- Create a new LinkedIn post (with optional media)delete_post- Delete a LinkedIn postget_post- Get details of a specific postget_feed- Get posts from your LinkedIn feedcomment_post- Comment on a LinkedIn postlike_post- Like a LinkedIn postshare_post- Share a LinkedIn post
Usage Examples
With Claude Desktop configured, you can ask Claude:
"Create a LinkedIn post about my latest project"
"Share this image with a caption about AI developments"
"Comment on this LinkedIn post with my professional thoughts"
"Show me my recent LinkedIn feed"
"Get my LinkedIn profile information"
Media Support
The server supports uploading images and videos according to LinkedIn's official API v2 specification:
Supported formats: JPG, PNG, GIF (images), MP4, MOV, AVI (videos)
Process: Automatic media upload, registration, and post creation
Usage: Just provide the file path when creating posts
License
MIT
Available Tools
9 toolscreate_commentC
Comment on a LinkedIn post
| Name | Required | Description | Default |
|---|---|---|---|
| postUrn | Yes | The URN or ID of the post to comment on | |
| text | Yes | The comment text |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It does not disclose any behavioral traits such as whether it modifies data, requires authentication, has rate limits, or returns success/failure. Simply stating 'Comment on a LinkedIn post' is minimal for a mutation action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence, concise and to the point. It is not verbose, but missing contextual information. It could be improved with additional structure, but it is not overly short to the point of being useless.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simplicity of the tool (2 required string parameters, no nested objects, no output schema), the description is barely adequate. It lacks information about return values or side effects, but the context from sibling tools and schema partially compensates.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already provides descriptions for both parameters (postUrn and text) with 100% coverage. The description adds no additional meaning beyond the schema, so it meets the baseline of 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Comment') and the resource ('a LinkedIn post'), distinguishing it from siblings like create_post, like_post, and share_post. However, it could be more explicit by using 'Create a comment' to emphasize creation, but it is sufficient.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives, such as when to comment versus like or share. There is no mention of prerequisites or context for usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
create_postB
Create a new LinkedIn post with optional media
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text content of the post | |
| visibility | No | Post visibility (PUBLIC or CONNECTIONS) | PUBLIC |
| articleUrl | No | Optional URL to share with the post | |
| mediaPath | No | Optional path to image or video file to upload | |
| mediaType | No | Type of media being uploaded (image or video) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry full burden but only states the basic action, lacking details on authentication requirements, rate limits, side effects, or response behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence that is front-loaded, but it omits important usage details for efficiency.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema and 5 parameters including media upload, the description lacks information on return values, media upload constraints, or post-creation behavior, making it incomplete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already documents parameters. The description adds marginal value by noting media is optional, but doesn't exceed the baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Create' and the resource 'LinkedIn post', and mentions optional media, distinguishing it from sibling tools like delete_post or get_post.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like share_post, nor does it mention prerequisites or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_postB
Delete a LinkedIn post
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | The ID of the post to delete |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, and the description only states the deletion action. It does not disclose irreversible effects, permission requirements, or error conditions, leaving the agent without critical behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with no wasted words. While minimal, it is appropriately concise for a simple tool, though it lacks structural elements like usage notes.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (one parameter, no output schema), the description covers the basic purpose. However, it omits important context about irreversibility and authentication, which is needed for safe invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema provides 100% coverage for the single parameter 'postId' with a clear description. The tool description adds no additional meaning beyond the schema, meeting the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Delete' and the resource 'a LinkedIn post', making the tool's purpose unambiguous. It implicitly distinguishes from sibling tools like 'like_post' and 'share_post' by specifying a different action.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool vs alternatives, or any prerequisites (e.g., ownership of the post). The description does not include when-not-to-use information.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_feedB
Get posts from your LinkedIn feed
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of posts to retrieve |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided; description does not disclose behavior beyond fetching posts. Does not mention ordering, rate limits, authentication, or what happens with an empty feed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence is concise but under-specified. Not verbose, but could include more useful information without becoming too long.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Tool is simple with 1 param and no output schema, but description does not clarify what 'posts from your LinkedIn feed' entails (e.g., recency, personal feed). Missing hints about return structure.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one parameter 'count' with full schema description. Description adds no additional meaning beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states 'Get posts from your LinkedIn feed' with a specific verb and resource. It distinguishes from siblings like 'get_post' (single post) or 'create_post'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives like 'get_post' for a single post. No mention of context or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_postB
Get details of a specific LinkedIn post
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | The ID of the post to retrieve |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, and the description does not disclose any behavioral traits such as authentication requirements, rate limits, or data freshness. 'Get details' is vague.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single sentence that is front-loaded and concise, with no unnecessary words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (1 parameter, no output schema), the description is minimally adequate but lacks any detail about what 'details' means or the expected return format.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with a single parameter 'postId' described as 'The ID of the post to retrieve'. The description adds no additional meaning beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description uses specific verb 'Get' with resource 'details of a specific LinkedIn post', clearly distinguishing it from sibling tools like create_post, delete_post, get_feed.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives, nor any exclusions or prerequisites. The description is purely functional.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_profileA
Get your LinkedIn profile information
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description only states 'Get your LinkedIn profile information' with no annotations to supplement. It does not disclose any behavioral traits such as authentication needs, rate limits, or the structure of the returned profile data. The burden falls entirely on the description, which is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that efficiently conveys the purpose without any fluff. It is front-loaded and every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given there are no parameters, no output schema, and no annotations, the description is minimally adequate. However, it does not describe what information is returned or any other context, leaving room for improvement.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There are no parameters, so the description does not need to add meaning beyond what the schema already indicates (empty). According to the baseline for 0 parameters, score 4 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and the resource 'your LinkedIn profile information', making it obvious what the tool does. It is distinct from sibling tools which focus on posts, comments, and likes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
While no explicit when-to-use or alternative guidance is given, the sibling tools cover different operations, so the context of getting profile info is clear. There is no exclusion stated, but the simplicity makes it adequate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
like_postB
Like a LinkedIn post
| Name | Required | Description | Default |
|---|---|---|---|
| postUrn | Yes | The URN or ID of the post to like |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided; description does not disclose behavioral traits like idempotency, limits, or whether it can be undone. Adds little beyond the name.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Extremely concise; single sentence with no wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Minimally adequate for a simple tool with one parameter. Lacks behavioral details but the core action is clear.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline is 3. Description does not add meaning beyond the schema; no format or example for postUrn.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description 'Like a LinkedIn post' is a specific verb+resource combination. It clearly distinguishes from siblings like create_comment or delete_post.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use vs alternatives (e.g., share_post, create_comment). No conditions or prerequisites mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
test_linkedin_connectionA
Test the LinkedIn MCP Server connection
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description does not disclose behavioral traits such as what the test entails (e.g., network request, authentication check) or what the expected outcome is (e.g., success/failure message). With no annotations, this is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, short sentence that is front-loaded with the core purpose. Every word is meaningful and there is no redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (no parameters, no output schema, no annotations), the description is largely complete. It could be improved by mentioning the expected return value, but it is adequate for a basic connectivity test.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so schema coverage is 100%. The description adds no parameter information, but none is needed. It provides the purpose, which is sufficient.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Test the LinkedIn MCP Server connection'. It uses a specific verb 'Test' and a clear resource, distinguishing it from sibling tools that perform actions like create, delete, or get.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool vs. alternatives. For example, it could mention it should be used before other operations to verify connectivity, but this is absent.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool has a distinct purpose: commenting, posting, deleting, viewing feed/post/profile, liking, sharing, and testing. No overlapping functionality.
All tool names follow a consistent verb_noun pattern with underscores (e.g., create_post, get_feed, like_post). The naming convention is uniform.
9 tools is well-scoped for a LinkedIn server, covering essential actions without being excessive or insufficient.
The set covers core LinkedIn interactions (posting, commenting, liking, sharing, viewing), but lacks tools for retrieving comments or updating posts, which are minor gaps.
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 Connectors
LinkedIn outreach, commenting, scheduling, and data via Claude and human approval gates.
LinkedIn outreach, commenting, scheduling, and data via Claude and human approval gates.
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Let AI tools securely access your LinkedIn network and DMs
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables posting text and media content directly to LinkedIn from Claude Desktop with support for authentication and visibility controls.10MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with LinkedIn for posting, commenting, liking, and managing connections via OAuth2 authentication.29MIT
- AlicenseAqualityDmaintenancePost to LinkedIn from Claude — create posts, upload images, edit/delete posts, and manage company pages via natural language. Uses the official LinkedIn REST API with OAuth 2.0.92142MIT
- AlicenseAqualityDmaintenanceEnables Claude Desktop to manage your LinkedIn profile and company pages, including posting, reading posts, and fetching profile information.72144MIT
Appeared in Searches
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/rgthelen/linkedin-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server