
agency42/linkedin-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
에이전시42/linkedin-mcp는 MCP 서버 후보로 수입 https://github.com/agency42/linkedin-mcp.
개요
에이전시42/linkedin-mcp는 MCP 서버 후보로 수입 https://github.com/agency42/linkedin-mcp.
개요(AI 번역)
LinkedIn 통합을 위한 TypeScript SDK를 사용하여 모델 Context Protocol (MCP) 서버. AI 에이전트 (예: Claude)를 허용하여 LinkedIn과 공유 게시물 또는 링크.
필수품
- Node.js (>=14) 및 npm
- LinkedIn 개발자 앱:
- [T0]]에서 앱 만들기
- “Products”, addSign In with LinkedIn (OpenID Connect) 및 ** LinkedIn에 공유 **
- ** 공인 Redirect URI **
.env:http://localhost:8000/auth/linkedin/callback] - 클라이언트 ID 및 클라이언트 비밀
.env
설치
프로젝트 루트에서 .env 만들기:
실행
-
** OAuth Callback Server** (근처로 유지):
-
** MCP 서버 **:
-
Claude 데스크탑을 통해:
-
또는 수동:
-
이것은 stdio 수송 + HTTP+SSE 서버 시작합니다.
- ** 검사기 UI**:
- 브라우저에서 검사기를 엽니 다 → ** 도구 **
linkedin-share-post또는linkedin-share-link] 도구를 사용하십시오.
테스트
- 브라우저에서
http://localhost:8000/auth/linkedin를 방문 → LinkedIn 로그인을 완료하십시오. - “인증 성공!” 확인.
- Inspector에서, 표본 포스트/링크 도구를 실행하십시오.
- LinkedIn 프로필에 콘텐츠 검증.
Claude 데스크탑 통합
- 명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
LinkedIn MCP Server
A Model Context Protocol (MCP) server using the TypeScript SDK for LinkedIn integration. Allows an AI agent (e.g. Claude) to authenticate with LinkedIn and share posts or links.
Prerequisites
- Node.js (>=14) and npm
- LinkedIn Developer App:
- Create an app at https://www.linkedin.com/developers/apps
- Under “Products”, add Sign In with LinkedIn (OpenID Connect) and Share on LinkedIn
- Authorized Redirect URI must match
.env:http://localhost:8000/auth/linkedin/callback - Copy your Client ID and Client Secret into
.env
Setup
git clone
cd linkedin-mcp
npm install
Create a .env in project root with:
SESSION_SECRET=your-session-secret
AUTH_PORT=8000 # OAuth callback server port
HTTP_PORT=8001 # HTTP/SSE server port
LINKEDIN_CLIENT_ID=your-client-id
LINKEDIN_CLIENT_SECRET=your-client-secret
LINKEDIN_REDIRECT_URI=http://localhost:8000/auth/linkedin/callback
Running
-
OAuth Callback Server (must stay running):
npm run dev:auth -
MCP Server:
- Via Claude Desktop:
claude-desktop - Or manually:
npm run dev - This starts stdio transport + HTTP+SSE server.
- Via Claude Desktop:
-
Inspector UI:
npm run build npx @modelcontextprotocol/inspector node build/server.js- Open the Inspector in browser → Tools
- Use
linkedin-share-postorlinkedin-share-linktools.
Testing
- Visit
http://localhost:8000/auth/linkedinin browser → complete LinkedIn login. - Confirm “Authentication successful!”.
- In Inspector, run sample post/link tools.
- Verify content on your LinkedIn profile.
Claude Desktop Integration
- Run
npm run dev:auth - Visit
http://localhost:8000/auth/linkedinin browser → complete LinkedIn login. - Confirm “Authentication successful!”. A token file should be generated. Do not close this terminal.
- Open Claude Desktop and verify the tools are listed
Configure your claude_desktop_config.json file:
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/Users/ken/Desktop/lab/linkedin-mcp/build/server.js"],
"transport": "http",
"url": "http://localhost:8001",
"sseEndpoint": "/stream",
"httpEndpoint": "/message",
"env": {
"SESSION_SECRET": "your-session-secret",
"AUTH_PORT": "8000",
"HTTP_PORT": "8001",
"LINKEDIN_CLIENT_ID": "your-client-id",
"LINKEDIN_CLIENT_SECRET": "your-client-secret",
"LINKEDIN_REDIRECT_URI": "http://localhost:8000/auth/linkedin/callback"
}
}
},
"globalShortcut": "Ctrl+Space"
}
(You can find this file from Claude Desktop by going to settings > developer > edit config)
Save and restart Claude Desktop to apply changes.
설치
npx @modelcontextprotocol/inspector node build/server.js설정
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/Users/ken/Desktop/lab/linkedin-mcp/build/server.js"],
"transport": "http",
"url": "http://localhost:8001",
"sseEndpoint": "/stream",
"httpEndpoint": "/message",
"env": {
"SESSION_SECRET": "your-session-secret",
"AUTH_PORT": "8000",
"HTTP_PORT": "8001",
"LINKEDIN_CLIENT_ID": "your-client-id",
"LINKEDIN_CLIENT_SECRET": "your-client-secret",
"LINKEDIN_REDIRECT_URI": "http://localhost:8000/auth/linkedin/callback"
}
}
},
"globalShortcut": "Ctrl+Space"
}