LinkedIn MCP for OpenWorker
LinkedIn MCP for OpenWorker
OpenWorker向けのローカルファーストなLinkedIn MCPサーバー。stdioで動作し、トークンを環境変数または明示的なツール入力に保持し、LinkedInプロフィールの読み取りと投稿操作用の小規模で承認しやすいツールを公開します。
ツール
linkedin_start_oauth_flowは、ブラウザのOAuthフローを開始し、localhostコールバックをキャプチャし、コードを交換して、トークンをローカルに保存します。linkedin_auth_statusは、保存されたトークンが存在するかどうかと、いつ期限切れになるかを報告します。linkedin_logoutは、保存されたトークンを削除します。linkedin_exchange_authorization_codeは、手動フォールバックフローのために、OAuthコードを交換してトークンを保存します。linkedin_get_my_profileは、/v2/userinfoから認証済みメンバーのプロフィールを読み取ります。linkedin_create_text_postは、/rest/postsを通じてテキストのみの投稿を公開または下書き保存します。linkedin_get_postは、URNで投稿を取得します。linkedin_find_posts_by_authorは、メンバーまたは組織のURNの投稿を一覧表示します。
Related MCP server: linkedin-mcp-server
セットアップ
npm i linkedin-mcp-openworkerLinkedIn開発者アプリを作成し、必要な製品/スコープをリクエストしてください:
openid profile emailは、OpenID Connectを使用したSign In with LinkedIn用です。w_member_socialは、認証済みメンバーとして投稿するためのものです。組織への投稿には、
w_organization_socialなどLinkedInが承認した組織スコープが必要です。
OpenWorkerは、Claude DesktopやCursorと同じ mcpServers JSON形式を使用して、Manage -> Integrations 経由でMCPサーバーをサポートしています。ビルド後、次のようにサーバーを追加してください:
{
"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 はデフォルトで 202607 になり、このプロジェクトが作成された時点のLinkedIn Marketing APIのバージョニングガイダンスに一致します。
OAuthフロー
LinkedIn開発者アプリで、この認証済みリダイレクトURLを追加します:
http://127.0.0.1:33333/linkedin/oauth/callbackLINKEDIN_CLIENT_ID、LINKEDIN_CLIENT_SECRET、LINKEDIN_REDIRECT_URIを使用して、MCPサーバーをOpenWorkerに追加します。OpenWorkerに
linkedin_start_oauth_flowの実行を依頼します。MCPはlocalhostコールバックサーバーを起動し、ブラウザでLinkedInを開き、返された
stateを検証し、認可コードを交換して、トークンを次の場所に保存します:
~/.linkedin-mcp-openworker/token.jsonその後、LinkedInツールは保存されたトークンを自動的に使用します。
linkedin_auth_statusでトークンの状態を確認し、linkedin_logoutで削除できます。
デフォルトの管理フローは、LinkedInの標準的な3-legged OAuth認可エンドポイントを使用します:
https://www.linkedin.com/oauth/v2/authorizationこれはLinkedInがOpenID Connect用に文書化しているエンドポイントです。デフォルトで openid profile email w_member_social をリクエストし、client_secret を使用して認可コードを交換し、返されたアクセストークンとIDトークンのメタデータをローカルに保存します。OpenIDスコープで auth_method: "pkce" を使用しないでください。LinkedInはその組み合わせを Open ID permission is not supported for PKCE flows. というエラーで拒否します。
LinkedInの一般的な3-legged OAuthドキュメントでは、リダイレクトURLはHTTPSであるべきとされています。LinkedInがアプリのlocalhostコールバックURLを拒否する場合は、このマシンに転送するHTTPSコールバック/トンネルURLを使用し、LINKEDIN_REDIRECT_URI をLinkedIn Developer Portalに登録した正確なURLに設定してください。
デフォルトでは、OAuthツールはツール結果内のトークンをマスクします。明示的に結果にトークン値を含めたい場合のみ、return_access_token: true を渡してください。
注記
LinkedIn APIへのアクセスは、開発者アプリで承認された製品に依存します。w_member_social がないトークンはメンバーの投稿を公開できず、組織の投稿には組織の権限と、適切なページロールを持つ認証済みメンバーが必要です。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server for LinkedIn, enabling posting, liking, commenting, and profile retrieval via official OAuth 2.0. Features CLI, HTTP admin, and optional Telegram bot.10MIT
- Flicense-qualityCmaintenanceMCP server for LinkedIn API integration. Enables authentication, profile access, connections, search, messaging, and feed management via OAuth2.
- Alicense-qualityBmaintenanceMCP 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
- Alicense-qualityBmaintenanceMCP server that lets you publish text and image posts to LinkedIn, fetch your profile, and check auth status using natural language.MIT
Related MCP Connectors
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
MCP server for LeadDelta — manage LinkedIn connections and CRM data via AI assistants.
linkedin-humblebrag MCP — wraps StupidAPIs (requires X-API-Key)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mohamed-Godaa/linkedin-mcp-openworker'
If you have feedback or need assistance with the MCP directory API, please join our Discord server