Linkedin MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Linkedin MCP or direct API to search profiles, post updates, manage messages, and analyze connections through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Linkedin Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Linkedin now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Create article or URL shareTool to create an article or URL share on LinkedIn using the UGC Posts API.
Create comment on LinkedIn postTool 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 postCreates a new post on LinkedIn for the authenticated user or an organization they manage.
Delete LinkedIn PostDeletes a specific LinkedIn post (share) by its unique `share_id`, which must correspond to an existing share.
Delete PostDelete 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 facetsTool to retrieve available ad targeting facets from LinkedIn Marketing API.
Get audience countsRetrieves audience size counts for specified targeting criteria.
Get company infoRetrieves organizations where the authenticated user has specific roles (ACLs), to determine their management or content posting capabilities for LinkedIn company pages.
Get image detailsTool to retrieve details of a LinkedIn image using its URN.
Get imagesTool to retrieve image metadata including download URLs, status, and dimensions from LinkedIn's Images API.
Get my infoFetches the authenticated LinkedIn user's profile information including name, headline, profile picture, and other profile details.
Get network sizeTool to retrieve the follower count for a LinkedIn organization.
Get organization page statisticsTool to retrieve page statistics for a LinkedIn organization page.
Get person profileRetrieves a LinkedIn member's profile information by their person ID.
Get post contentTool to retrieve detailed post content including text, images, videos, and metadata from LinkedIn by post URN.
Get share statisticsRetrieves share statistics for a LinkedIn organization, including impressions, clicks, likes, comments, and shares.
Get videosRetrieves video metadata from LinkedIn Marketing API.
Initialize image uploadTool to initialize an image upload to LinkedIn and return a presigned upload URL plus the resulting image URN.
List reactions on entityRetrieves reactions (likes, celebrations, etc.
Register image uploadTool 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 entitiesSearch for ad targeting entities using typeahead search.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Linkedin tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Create a LinkedIn post announcing our product launch')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

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

Frequently Asked Questions

Do I need my own developer credentials to use Linkedin with Composio?

No, you can get started immediately using Composio's built-in Linkedin app. For production, we recommend configuring your own OAuth credentials.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.