marketing
LinkedIn MCP Integration for LangGraph
Connect LinkedIn to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect LinkedIn to LangGraph
Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.
Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with
--write=deny so LangGraph can inspect read-capable tools without receiving write access by default.
LinkedIn MCP Config for LangGraph
Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.
{
"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 LangGraph
LangGraph 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. |