marketing
LinkedIn MCP Integration for Claude Agent SDK
Connect LinkedIn to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect LinkedIn to Claude Agent SDK
Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.
Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.
LinkedIn MCP Config for Claude Agent SDK
Use a narrow integration list so the agent does not load unrelated tools.
{
"mcpServers": {
"kosmokrator-linkedin": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=linkedin",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=linkedin --write=deny Why Use KosmoKrator Here
Expose only LinkedIn instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
LinkedIn Tools Visible to Claude Agent SDK
Claude Agent SDK sees stable MCP tool names generated from the LinkedIn integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__linkedin__linkedin_list_posts | linkedin.linkedin_list_posts | Read | List LinkedIn UGC posts for an author. Returns post IDs, lifecycle state, and creation timestamps. Use author, count, and start for filtering and pagination. |
integration__linkedin__linkedin_get_post | linkedin.linkedin_get_post | Read | Retrieve a LinkedIn UGC post by its ID. Returns the full post including content, lifecycle state, and visibility. |
integration__linkedin__linkedin_create_post | linkedin.linkedin_create_post | Write | Create a new LinkedIn UGC post. Requires an author URN and text content. Returns the created post with its ID and lifecycle state. |
integration__linkedin__linkedin_list_organizations | linkedin.linkedin_list_organizations | Read | List LinkedIn organizations (company pages) the authenticated user has access to. Returns organization IDs, names, and roles. |
integration__linkedin__linkedin_get_organization | linkedin.linkedin_get_organization | Read | Retrieve a LinkedIn organization (company page) by its ID. Returns the organization's name, description, website, and other profile data. |
integration__linkedin__linkedin_list_ad_accounts | linkedin.linkedin_list_ad_accounts | Read | List LinkedIn ad accounts the authenticated user has access to. Returns ad account IDs, names, statuses, and currency information. |
integration__linkedin__linkedin_get_current_user | linkedin.linkedin_get_current_user | Read | Retrieve the currently authenticated LinkedIn user profile. Returns the user's ID, localized name, and profile metadata. Useful for identifying which account or token is in use. |