
Product
Socket Threat Intel Now Shows Which Malware Campaigns Were Blocked or Detected
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.
@egistr/linkedin-mcp
Advanced tools
Open-source LinkedIn MCP server for AI agents (Claude Code, OpenCode, Cursor). TypeScript, official LinkedIn API, OAuth PKCE, image upload.
MCP server for LinkedIn API integration — profiles, posts, feed, and connections.
Works with Claude Desktop, Cursor, Windsurf, Claude Code, OpenCode, and any MCP-compatible client.
| Tool | Description | Scope Required |
|---|---|---|
linkedin_get_user_info | Get OpenID Connect user info | openid |
linkedin_get_my_profile | Get full LinkedIn profile | openid + r_liteprofile |
linkedin_create_post | Publish a LinkedIn post | w_member_social |
linkedin_list_posts | List your/others' posts | r_member_social |
linkedin_delete_post | Delete a LinkedIn post | w_member_social |
linkedin_get_feed | Get your feed activity | r_member_social |
linkedin_get_connections | Get your connections | Partner API |
linkedin_send_message | Send a direct message | Partner API |
linkedin_search_people | Search LinkedIn members | Partner API |
linkedin_oauth_login | OAuth PKCE login flow | — |
# Install from npm (recommended)
npx @eggisatriadev/linkedin-mcp
# Or install locally
npm install @eggisatriadev/linkedin-mcp
# Set your access token
export LINKEDIN_ACCESS_TOKEN=AQX_your_token_here
# Run the server
npx @eggisatriadev/linkedin-mcp
Add to your claude_desktop_config.json:
{
"mcpServers": {
"linkedin": {
"command": "npx",
"args": ["-y", "@eggisatriadev/linkedin-mcp"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "AQX_your_token_here"
}
}
}
}
Add to your opencode.json:
{
"mcpServers": {
"linkedin": {
"command": "npx",
"args": ["-y", "@eggisatriadev/linkedin-mcp"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "AQX_your_token_here"
}
}
}
}
http://localhost:8080 as an OAuth redirect URLThe easiest way is to use the OAuth 2.0 token generator in the LinkedIn Developer Portal:
openid, profile, email, w_member_social# Install dependencies
npm install
# Set your token
export LINKEDIN_ACCESS_TOKEN=AQX_your_token_here
# Build and run
npm run build
npm start
Add to your claude_desktop_config.json:
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/absolute/path/to/linkedin-mcp-server/dist/index.js"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "AQX_your_token_here"
}
}
}
}
Add to your opencode.json (or use the MCP config):
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/absolute/path/to/linkedin-mcp-server/dist/index.js"],
"env": {
"LINKEDIN_ACCESS_TOKEN": "AQX_your_token_here"
}
}
}
}
Skip step 2 — let the server handle authentication interactively:
# Required: set your LinkedIn app credentials
export LINKEDIN_CLIENT_ID=your_client_id
export LINKEDIN_CLIENT_SECRET=your_client_secret
# Run the server (it will detect no token and guide you)
npm run build
npm start
# Or from npm package:
npx @eggisatriadev/linkedin-mcp
Then call the linkedin_oauth_login tool from your MCP client:
8080)true)120000)The flow:
~/.config/linkedin-mcp/config.jsonLinkedIn supports image upload via a 3-step /rest/images flow:
POST /rest/images?action=initializeUpload → returns uploadUrl + image URNPUT {uploadUrl} with image datamedia.id in createPost()Supported formats: JPEG, PNG, GIF (static) Max file size: 10 MB Recommended dimensions: 2048×2048px
Image upload happens automatically when you pass a media_url parameter
to linkedin_create_post. The MediaUploader handles retries on expired
upload URLs and validates format/size before uploading.
# Watch mode (auto-reload)
npm run dev
# Build
npm run build
# Test with MCP Inspector
npm run inspector
The server follows a layered architecture with four bounded contexts:
linkedin-mcp-server/
├── src/
│ ├── index.ts # Entry point: server init, tool registration, health check
│ ├── types.ts # Shared types and enums
│ ├── services/
│ │ └── linkedin-client.ts # LinkedIn API client (14+ methods, error classification)
│ ├── tools/
│ │ ├── profile.ts # Profile tools: getMyProfile, getUserInfo
│ │ ├── posts.ts # Posts tools: createPost, listPosts, deletePost
│ │ ├── network.ts # Network tools: getFeed, getConnections, sendMessage, searchPeople
│ │ └── auth.ts # Auth tool: oauthLogin
│ ├── auth/
│ │ ├── oauth.ts # PKCE OAuth 2.0 flow (RFC 7636)
│ │ ├── config.ts # Config file management
│ │ └── token-store.ts # Token persistence (env var → config file fallback)
│ └── media/
│ └── uploader.ts # 3-step image upload: init → binary → URN
├── tests/
│ ├── linkedin-client.test.ts
│ ├── tools/
│ ├── auth/
│ └── media/
├── docs/
│ └── pocket/arch/*/tech-design.md # Full technical design document
├── package.json
├── tsconfig.json
└── README.md
LINKEDIN_ACCESS_TOKEN env var (highest priority)~/.config/linkedin-mcp/config.json (persistent local token)LINKEDIN_CLIENT_ID + LINKEDIN_CLIENT_SECRET are set)See tech-design.md for the full architecture, API contracts, data flow diagrams, and ADRs.
We welcome contributions! See CONTRIBUTING.md for:
This project adheres to a Code of Conduct.
MIT — see LICENSE for details.
FAQs
Open-source LinkedIn MCP server for AI agents (Claude Code, OpenCode, Cursor). TypeScript, official LinkedIn API, OAuth PKCE, image upload.
We found that @egistr/linkedin-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.

Security News
Fixes for eMudhra and Brotli are out. Getting them everywhere they’re needed means tracking down bundled libraries, runtimes, and certificate stores.

Threat Research
/Security News
Socket uncovered secret-stealing workflows that ran in LiteLLM’s GitHub repository 11 days before the supply chain attack on PyPI and Docker.