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_flowstartet den OAuth-Ablauf im Browser, erfasst den Localhost-Callback, tauscht den Code aus und speichert das Token lokal.linkedin_auth_statusmeldet, ob ein gespeichertes Token existiert und wann es abläuft.linkedin_logoutlöscht das gespeicherte Token.linkedin_exchange_authorization_codetauscht einen OAuth-Code aus und speichert das Token, für manuelle Fallback-Abläufe.linkedin_get_my_profileliest das authentifizierte Mitgliedsprofil von/v2/userinfo.linkedin_create_text_postveröffentlicht oder entwirft einen textbasierten Beitrag über/rest/posts.linkedin_get_postruft einen Beitrag per URN ab.linkedin_find_posts_by_authorlistet Beiträge für eine Mitglieds- oder Organisations-URN auf.
Related MCP server: linkedin-mcp-server
Einrichtung
npm i linkedin-mcp-openworkerErstelle eine LinkedIn-Entwickler-App und fordere die benötigten Produkte/Scopes an:
openid profile emailfür die Anmeldung mit LinkedIn über OpenID Connect.w_member_socialzum 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
Füge in deiner LinkedIn-Entwickler-App diese autorisierte Redirect-URL hinzu:
http://127.0.0.1:33333/linkedin/oauth/callbackFüge den MCP-Server zu OpenWorker mit
LINKEDIN_CLIENT_ID,LINKEDIN_CLIENT_SECRETundLINKEDIN_REDIRECT_URIhinzu.Bitte OpenWorker,
linkedin_start_oauth_flowauszuführen.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.jsonDanach verwenden LinkedIn-Tools automatisch das gespeicherte Token. Verwende
linkedin_auth_status, um den Token-Status zu prüfen, undlinkedin_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/authorizationDies 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 toolslinkedin_auth_statusARead-only
Check whether this MCP server has a stored LinkedIn OAuth token.
Inputs: no named parameters.
linkedin_create_text_postADestructive
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_authorBRead-only
Find LinkedIn posts by member or organization author URN.
Inputs: author_urn (required), count, start, access_token, +1 more.
linkedin_get_my_profileARead-only
Read the authenticated LinkedIn member profile using the OIDC userinfo endpoint.
Inputs: access_token.
linkedin_get_postARead-only
Retrieve a LinkedIn post by URN.
Inputs: post_urn (required), access_token, view_context.
linkedin_logoutADestructive
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
Scored across 8 tools
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.
All tool names follow a consistent linkedin_verb_noun snake_case pattern. Verbs are clear and predictable, making the toolset easy to navigate.
Eight tools is well-scoped for a LinkedIn MCP covering authentication, profile access, and post management. Each tool earns its place without unnecessary bloat.
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
LinkedIn API as MCP tools to retrieve profile data and publish content. Powered by HAPI MCP.
A hosted LinkedIn MCP server for your own account. Paste one address into Claude, ChatGPT, Cursor or n8n to read your inbox, send messages and invitations, and search people. Free to start. Not made by LinkedIn.
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
Hosted LinkedIn MCP server: search people, read profiles, send invitations and messages.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for LinkedIn, enabling posting, liking, commenting, and profile retrieval via official OAuth 2.0. Features CLI, HTTP admin, and optional Telegram bot.14 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for LinkedIn API integration. Enables authentication, profile access, connections, search, messaging, and feed management via OAuth2.MIT
- AlicenseNot gradedqualityCmaintenanceMCP 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.2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that lets you publish text and image posts to LinkedIn, fetch your profile, and check auth status using natural language.MIT