Skip to main content
Glama
LinkedIn MCP for OpenWorker

LinkedIn MCP for OpenWorker

LinkedIn MCP for OpenWorker

Ein lokaler LinkedIn MCP-Server für OpenWorker. Er läuft über stdio, speichert Tokens in Umgebungsvariablen oder expliziten Tool-Eingaben und stellt kleine, genehmigungsfreundliche Tools für LinkedIn-Profilabrufe und Beitragsoperationen bereit.

Werkzeuge

  • linkedin_start_oauth_flow startet den OAuth-Ablauf im Browser, erfasst den Localhost-Callback, tauscht den Code aus und speichert das Token lokal.

  • linkedin_auth_status meldet, ob ein gespeichertes Token existiert und wann es abläuft.

  • linkedin_logout löscht das gespeicherte Token.

  • linkedin_exchange_authorization_code tauscht einen OAuth-Code aus und speichert das Token, für manuelle Fallback-Abläufe.

  • linkedin_get_my_profile liest das authentifizierte Mitgliedsprofil von /v2/userinfo.

  • linkedin_create_text_post veröffentlicht oder entwirft einen textbasierten Beitrag über /rest/posts.

  • linkedin_get_post ruft einen Beitrag per URN ab.

  • linkedin_find_posts_by_author listet Beiträge für eine Mitglieds- oder Organisations-URN auf.

Related MCP server: linkedin-mcp-server

Einrichtung

npm i linkedin-mcp-openworker

Erstelle eine LinkedIn-Entwickler-App und fordere die benötigten Produkte/Scopes an:

  • openid profile email für die Anmeldung mit LinkedIn über OpenID Connect.

  • w_member_social zum Veröffentlichen als authentifiziertes Mitglied.

  • Das Veröffentlichen für Organisationen erfordert von LinkedIn genehmigte Organisations-Scopes wie w_organization_social.

OpenWorker unterstützt MCP-Server über Manage -> Integrations mit demselben mcpServers-JSON-Format wie Claude Desktop und Cursor. Nach dem Erstellen füge einen Server wie folgt hinzu:

{
  "mcpServers": {
    "linkedin": {
      "command": "npm",
      "args": ["linkedin-mcp-openworker"],
      "env": {
        "LINKEDIN_CLIENT_ID": "paste-your-linkedin-client-id-here",
        "LINKEDIN_CLIENT_SECRET": "paste-your-linkedin-client-secret-here",
        "LINKEDIN_REDIRECT_URI": "http://127.0.0.1:33333/linkedin/oauth/callback",
        "LINKEDIN_VERSION": "202607"
      }
    }
  }
}

LINKEDIN_VERSION ist standardmäßig auf 202607 gesetzt und entspricht den Versionierungsrichtlinien der LinkedIn Marketing API, die zum Zeitpunkt der Erstellung dieses Projekts aktuell sind.

OAuth-Ablauf

  1. Füge in deiner LinkedIn-Entwickler-App diese autorisierte Redirect-URL hinzu:

http://127.0.0.1:33333/linkedin/oauth/callback
  1. Füge den MCP-Server zu OpenWorker mit LINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRET und LINKEDIN_REDIRECT_URI hinzu.

  2. Bitte OpenWorker, linkedin_start_oauth_flow auszuführen.

  3. Der MCP startet einen Localhost-Callback-Server, öffnet deinen Browser auf LinkedIn, validiert den zurückgegebenen state, tauscht den Autorisierungscode aus und speichert das Token unter:

~/.linkedin-mcp-openworker/token.json
  1. Danach verwenden LinkedIn-Tools automatisch das gespeicherte Token. Verwende linkedin_auth_status, um den Token-Status zu prüfen, und linkedin_logout, um ihn zu löschen.

Der standardmäßige verwaltete Ablauf verwendet den regulären 3-legged OAuth-Autorisierungsendpunkt von LinkedIn:

https://www.linkedin.com/oauth/v2/authorization

Dies ist der Endpunkt, den LinkedIn für OpenID Connect dokumentiert. Er fordert standardmäßig openid profile email w_member_social an, tauscht den Autorisierungscode mit deinem client_secret aus und speichert das zurückgegebene Zugriffstoken und die ID-Token-Metadaten lokal. Verwende nicht auth_method: "pkce" mit OpenID-Scopes; LinkedIn lehnt diese Kombination mit der Meldung Open ID permission is not supported for PKCE flows. ab.

Die allgemeine 3-legged OAuth-Dokumentation von LinkedIn besagt, dass Redirect-URLs HTTPS sein sollten. Wenn LinkedIn die Localhost-Callback-URL für deine App ablehnt, verwende eine HTTPS-Callback-/Tunnel-URL, die an diese Maschine weiterleitet, und setze LINKEDIN_REDIRECT_URI auf die genaue URL, die im LinkedIn Developer Portal registriert ist.

Standardmäßig schwärzen OAuth-Tools Tokens in Tool-Ergebnissen. Übergib return_access_token: true nur, wenn du explizit möchtest, dass ein Ergebnis Token-Werte enthält.

Hinweise

Der LinkedIn-API-Zugriff hängt von den Produkten ab, die für deine Entwickler-App genehmigt wurden. Ein Token ohne w_member_social kann keine Mitgliedsbeiträge veröffentlichen, und Organisationsbeiträge erfordern Organisationsberechtigungen sowie ein authentifiziertes Mitglied mit der richtigen Seitenrolle.

Available Tools

8 tools
linkedin_auth_statusA
Read-only

Check whether this MCP server has a stored LinkedIn OAuth token.

Inputs: no named parameters.

linkedin_create_text_postA
Destructive

Publish or draft a text-only LinkedIn post for a member or organization author URN.

Inputs: author_urn (required), commentary (required), visibility, access_token, +2 more.

linkedin_exchange_authorization_codeA

Exchange a LinkedIn OAuth authorization code for tokens and store the token locally.

Inputs: code (required), client_id (required), redirect_uri (required), client_secret (required), +1 more.

linkedin_find_posts_by_authorB
Read-only

Find LinkedIn posts by member or organization author URN.

Inputs: author_urn (required), count, start, access_token, +1 more.

linkedin_get_my_profileA
Read-only

Read the authenticated LinkedIn member profile using the OIDC userinfo endpoint.

Inputs: access_token.

linkedin_get_postA
Read-only

Retrieve a LinkedIn post by URN.

Inputs: post_urn (required), access_token, view_context.

linkedin_logoutA
Destructive

Delete the locally stored LinkedIn OAuth token for this MCP server.

Inputs: no named parameters.

linkedin_start_oauth_flowA

Start a browser-based LinkedIn OAuth flow, capture the localhost callback, exchange the code, and store the token locally.

Inputs: scopes, client_id, auth_method, redirect_uri, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools are clearly distinct, but linkedin_start_oauth_flow and linkedin_exchange_authorization_code overlap since the start flow already includes exchanging the authorization code. An agent could be unsure which to use for a given OAuth scenario.

    Naming Consistency5/5

    All tool names follow a consistent linkedin_verb_noun snake_case pattern. Verbs are clear and predictable, making the toolset easy to navigate.

    Tool Count5/5

    Eight tools is well-scoped for a LinkedIn MCP covering authentication, profile access, and post management. Each tool earns its place without unnecessary bloat.

    Completeness4/5

    Core auth and post workflows are covered, but the post surface is read/create only—there is no update or delete post tool. This is a minor gap for typical LinkedIn content management workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for LinkedIn, enabling posting, liking, commenting, and profile retrieval via official OAuth 2.0. Features CLI, HTTP admin, and optional Telegram bot.
      14 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for LinkedIn API integration. Enables authentication, profile access, connections, search, messaging, and feed management via OAuth2.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for AI-native LinkedIn prospecting. It enables lead research, audience building, conversation management, and controlled outreach actions such as messaging and publishing through an OAuth-protected remote endpoint.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that lets you publish text and image posts to LinkedIn, fetch your profile, and check auth status using natural language.
      MIT