LinkedIn Sales Navigator MCP Server
A Model Context Protocol server for LinkedIn Sales Navigator -- automate lead generation, profile research, and outreach workflows through AI assistants.
Features
Lead search -- search LinkedIn Sales Navigator with filters for title, company, location, industry
Profile enrichment -- extract detailed profile data including experience, education, skills
Company research -- get company details, employee counts, recent updates
Connection management -- send connection requests with personalized messages
InMail automation -- draft and send InMail messages via AI
Cookie-based auth -- uses your browser session, no LinkedIn API partnership required
Stealth browsing -- Puppeteer with stealth plugin to avoid detection
MCP standard -- works with Claude Desktop, Claude Code, and any MCP-compatible client
Prerequisites
Node.js >= 18.0.0
npm >= 8.0.0
LinkedIn Sales Navigator subscription with active browser session
Installation
Getting Your LinkedIn Cookies
Open linkedin.com and log in
Open Developer Tools (F12)
Go to Application > Cookies >
https://www.linkedin.comCopy the
li_atcookie value
Cookie | Description |
| LinkedIn session authentication token |
Configuration
Environment Variables
Variable | Required | Description |
| Yes | The |
Create a .env file:
Claude Desktop
Claude Code
Usage Examples
Search for leads:
Research a company:
Outreach:
Project Structure
Troubleshooting
Issue | Solution |
Auth errors | Cookie expired -- extract fresh |
Rate limiting | LinkedIn limits requests; add delays between operations |
Profile not found | Check if the profile URL or username is correct |
Detection/block | Clear cookies, wait 24h, then use fresh session |
Tech Stack
Runtime: Node.js (ES2022)
Language: TypeScript 5.x
MCP SDK: @modelcontextprotocol/sdk
Browser: Puppeteer + puppeteer-extra-plugin-stealth
Validation: Zod
Disclaimer
This tool uses LinkedIn's internal APIs via session cookies. Automated access may violate LinkedIn's Terms of Service. Use responsibly for personal and educational purposes only.
License
ISC
Built by