Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to LinkedIn to manage profiles, create posts, share content, and automate professional networking activities through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with LinkedIn

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.LINKEDIN],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate

import webbrowser

# Open OAuth authorization page
webbrowser.open(response.oauth_urls[McpServerName.LINKEDIN])
You can specify custom scope and redirect_url parameters in the OAuth URL. Check the API reference for more details.
Your LinkedIn MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Available Tools

Tool NameDescription
linkedin_get_profile_infoRetrieve LinkedIn profile information (current user or specified person)
linkedin_create_postCreate a text/article post on LinkedIn with customizable visibility
linkedin_create_url_shareCreate a LinkedIn post that shares a URL with metadata preview
linkedin_format_rich_postFormat rich text for LinkedIn posts with various formatting options
For more details about tool input schema, use the get_tools API.

Next Steps

I