LinkedIn MCP Server for Claude and Cursor

Hosted LinkedIn MCP for Claude, Cursor, and ChatGPT. Search profiles, post updates, and manage messages with managed OAuth.

Linkedin logoLinkedin
Oauth2

LinkedIn is a professional networking platform for connecting, sharing content, and engaging with business opportunities. It's the go-to place for building your professional brand and unlocking new career connections.

29 Tools

Try Linkedin now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Linkedin
Try asking
TOOLS

Supported Tools

Every Linkedin action and event your agent gets out of the box.

Create article or URL share

Tool to create an article or URL share on LinkedIn using the UGC Posts API.

Create comment on LinkedIn post

Tool to create a first-level or nested comment on a LinkedIn share, UGC post, or parent comment via the Social Actions Comments API.

Create a LinkedIn post

Creates a new post on LinkedIn for the authenticated user or an organization they manage.

Create video post

Publish an available member-owned LinkedIn video as a personal native video post.

Delete Comment

Permanently delete a LinkedIn comment (irreversible) using its post URN and comment ID.

Delete LinkedIn Post

Deletes a specific LinkedIn post (share) by its unique `share_id`, which must correspond to an existing share.

Delete Post

Delete a LinkedIn post using the Posts API REST endpoint.

Delete UGC Post (Legacy)

Delete a UGC post using the legacy UGC Post API endpoint.

Get ad targeting facets

Tool to retrieve available ad targeting facets from LinkedIn Marketing API.

Get audience counts

Retrieves audience size counts for specified targeting criteria.

Get company info

Retrieves details for the first organization in a page of ACLs matching the authenticated user's selected role and state.

Get group definition

Retrieve a LinkedIn group's metadata by ID using approved-partner access.

Get image details

Tool to retrieve details of a LinkedIn image using its URN.

Get images

Tool to retrieve image metadata including download URLs, status, and dimensions from LinkedIn's Images API.

Get my info

Fetches the authenticated LinkedIn user's profile information including name, headline, profile picture, and other profile details.

Get network size

Tool to retrieve the follower count for a LinkedIn organization.

Get organization page statistics

Tool to retrieve page statistics for a LinkedIn organization page.

Get person profile

Retrieves a LinkedIn member's profile information by their person ID.

Get post content

Tool to retrieve detailed post content including text, images, videos, and metadata from LinkedIn by post URN.

Get share statistics

Retrieves share statistics for a LinkedIn organization, including impressions, clicks, likes, comments, and shares.

Get videos

Retrieves video metadata from LinkedIn for a video owned by a person or organization.

Initialize document upload

Initialize a LinkedIn document upload and return its upload URL and document URN.

Initialize image upload

Tool to initialize an image upload to LinkedIn and return a presigned upload URL plus the resulting image URN.

List reactions on entity

Retrieves reactions (likes, celebrations, etc.) on a LinkedIn entity such as a share, post, or comment.

Register image upload

Tool to initialize a native LinkedIn image upload for feed shares and return a presigned upload URL plus the resulting digital media asset URN.

Search ad targeting entities

Search for ad targeting entities using typeahead search.

Upload document

Upload a PDF, DOC, DOCX, PPT, or PPTX document owned by the authenticated LinkedIn member and wait until it is available.

Upload video

Upload an MP4 video for a native post by the authenticated LinkedIn member and wait until it is ready.

Who Am I

Return the identity (name, email) of the connected LinkedIn account.

SETUP GUIDE

Connect Linkedin MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["linkedin"],
  mcp: true,
});
Create a session scoped to Linkedin and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Post a company update about our latest product launch on LinkedIn",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Linkedin request
SETUP GUIDE

Connect Linkedin API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["linkedin"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Linkedin
3

Run Linkedin tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Post a company update about our latest product launch on LinkedIn" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Linkedin tool calls through the session, and print the final answer
Guide

Connect multiple Linkedin accounts to Claude and tell it which one to use by name.

Read the guide

Why Use Composio?

AI Native Linkedin Integration

  • Supports both Linkedin MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Linkedin data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Linkedin access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Linkedin
  • Scoped, least privilege access to Linkedin resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Linkedin.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Linkedin tool your agent needs.Free to start.

Start building