KosmoKrator

marketing

LinkedIn MCP Integration for Codex

Connect LinkedIn to Codex through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Manual OAuth token auth

Connect LinkedIn to Codex

Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy.

Register kosmo mcp:serve as a local stdio server and choose the integration allowlist. The gateway is local, scoped to this integration, and starts with --write=deny so Codex can inspect read-capable tools without receiving write access by default.

LinkedIn MCP Config for Codex

Keep write access denied or ask-based unless the workspace is trusted.

{
  "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

Scoped tools

Expose only LinkedIn instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

LinkedIn Tools Visible to Codex

Codex sees stable MCP tool names generated from the LinkedIn integration catalog.

MCP toolSource functionTypeDescription
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.

Related LinkedIn Pages