MCP LinkedIn Sales Navigator
This MCP server lets AI assistants automate LinkedIn Sales Navigator through browser control to search leads, view profiles, manage lists, send InMails, and export data.
Search leads with filters such as title, company, location, industry, company size, seniority, job function, and keywords, with pagination support.
Get detailed profile information for a Sales Navigator lead using its profile URL.
Save leads to existing lists or create new lead lists.
List all existing lead lists.
Send InMail messages with subject and body limits, including dry-run support for review before sending.
Export leads from the current search results or a specific list to JSON or CSV, with configurable fields and limits.
Check session status, authentication, browser connection, and daily usage budgets for debugging and rate-limit monitoring.
MCP LinkedIn Sales Navigator
MCP server for LinkedIn Sales Navigator — Browser automation via Playwright.
LinkedIn Sales Navigator doesn't provide a public API. This MCP server uses browser automation (Playwright) to control Sales Navigator through an authenticated browser session. It enables AI assistants to search leads, view profiles, manage lists, send InMails, and export data — all through the standard Model Context Protocol.
⚠️ Important Disclaimers
This tool requires an active LinkedIn Sales Navigator subscription
Browser automation: This operates by controlling a real browser — no API hacking
Session required: You must be logged into LinkedIn in the browser instance
Rate limiting: Use responsibly. LinkedIn may restrict accounts that perform excessive automation
Terms of Service: Review LinkedIn's ToS before using automation tools
No credentials stored: This tool never stores or handles LinkedIn passwords
Related MCP server: Linked API MCP
Features
Tool | Description |
| Search leads with filters (title, company, location, industry, seniority, etc.) |
| Get detailed profile information for a lead |
| Save a lead to a list |
| List all lead lists |
| Create a new lead list |
| Send an InMail message (with dry-run support) |
| Export leads to JSON or CSV format |
| Check browser connection, Sales Navigator auth, and today's usage budgets (call this first when debugging) |
Quick Start
Prerequisites
Node.js ≥ 20
LinkedIn Sales Navigator subscription with active session
A browser with an active LinkedIn login (Chrome recommended)
Install
npm install globodai-mcp-linkedin-sales-navigatorOr clone and build from source:
git clone https://github.com/globodai-group/mcp-linkedin-sales-navigator.git
cd mcp-linkedin-sales-navigator
npm install
npm run buildConfiguration
The server is configured via environment variables (read in src/index.ts):
Variable | Default | Description |
|
| Auth mode: |
|
| CDP HTTP endpoint when |
| (unset) | Path to exported cookies JSON when |
| (unset) | Chrome profile directory when |
|
| Set to |
|
| Page navigation timeout (ms) |
|
| Click/fill/wait timeout (ms) |
|
| Viewport width (px) |
|
| Viewport height (px) |
|
| Daily cap for |
|
| Daily cap for |
|
| Daily cap for |
|
| Daily cap for |
|
| Minimum delay between page navigations/actions, plus 0–50% random jitter |
|
| Local JSON file for daily counters (dates and counts only) |
Rate limits and account safety
This server throttles your own Sales Navigator activity so a Claude session does not fire actions back-to-back. It is not anti-detection: there is no fingerprint spoofing, user-agent rotation, or proxy support.
Budget | Default | What counts |
Profile views | 80 / local day | Each |
Searches | 30 / local day | Each |
Saves | 50 / local day |
|
InMails | 15 / local day |
|
Action pacing | 4000 ms + 0–50% jitter | Minimum gap between navigations/actions across all tools |
0 on a daily budget means unlimited. Raise a cap by setting the matching LSN_DAILY_* variable; check usageToday on linkedin_session_status for used / cap / remaining. Counters reset at the next local midnight and live in LSN_USAGE_FILE (or ~/.mcp-linkedin-sales-navigator/usage.json). That file stores only dates, category names, and counts.
LinkedIn does not publish official automation limits and restricts automated activity in its User Agreement. No tool can guarantee an account will not be restricted. Start with the defaults, spread activity over working hours, and stay within your Sales Navigator InMail credits.
Authentication Methods
1. CDP (Chrome DevTools Protocol) — Recommended
Connect to an already-running Chrome browser with an active LinkedIn session.
Start Chrome with remote debugging:
# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222
# Linux
google-chrome --remote-debugging-port=9222
# Windows
& "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
# If Chrome is installed elsewhere, quote the full path. Node.js 20+ is required.Use PowerShell or Command Prompt. Keep the debugging port free (default 9222) and match LSN_CDP_ENDPOINT.
Then log into LinkedIn Sales Navigator manually. The MCP server connects to this browser.
Shutdown behavior (CDP): when the MCP server exits, it detaches from your Chrome instance only. It does not close your tabs or quit the browser.
LSN_AUTH_METHOD=cdp LSN_CDP_ENDPOINT=http://localhost:9222 npx globodai-mcp-linkedin-sales-navigator2. User Data Directory
Use an existing Chrome profile that's already logged into LinkedIn:
LSN_AUTH_METHOD=session LSN_USER_DATA_DIR=/path/to/chrome/profile npx globodai-mcp-linkedin-sales-navigator3. Cookie-Based
Export your LinkedIn cookies and provide them as a JSON file:
LSN_AUTH_METHOD=cookies LSN_COOKIES_PATH=/path/to/linkedin-cookies.json npx globodai-mcp-linkedin-sales-navigatorMCP client setup
Use the same command, args, and env block in any MCP client. Replace paths and endpoints for your machine.
Claude Desktop
Edit the config file:
OS | Path |
macOS |
|
Windows |
|
Example entry:
{
"mcpServers": {
"linkedin-sales-navigator": {
"command": "npx",
"args": ["-y", "globodai-mcp-linkedin-sales-navigator"],
"env": {
"LSN_AUTH_METHOD": "cdp",
"LSN_CDP_ENDPOINT": "http://localhost:9222"
}
}
}
}Restart Claude Desktop after saving.
Claude Code
From a shell (adjust env vars as needed):
claude mcp add linkedin-sales-navigator -- \
env LSN_AUTH_METHOD=cdp LSN_CDP_ENDPOINT=http://localhost:9222 \
npx -y globodai-mcp-linkedin-sales-navigatorGeneric MCP client
Point the client at the package binary via npx or node /path/to/mcp-linkedin-sales-navigator/dist/index.js, stdio transport, with the environment variables from the table above.
Clawdbot / CORTX Integration
This MCP server is designed to work seamlessly with Clawdbot browser relay:
{
"mcpServers": {
"linkedin-sales-navigator": {
"command": "npx",
"args": ["globodai-mcp-linkedin-sales-navigator"],
"env": {
"LSN_AUTH_METHOD": "cdp",
"LSN_CDP_ENDPOINT": "http://localhost:9222"
}
}
}
}When using Clawdbot's browser relay, the AI assistant can directly control a browser tab where you're logged into Sales Navigator — no additional setup needed.
Tool Examples
Search for leads
{
"tool": "linkedin_search_leads",
"arguments": {
"title": "VP of Engineering",
"location": "San Francisco Bay Area",
"companySize": "201-500",
"industry": "Computer Software"
}
}Get a lead's profile
{
"tool": "linkedin_get_lead_profile",
"arguments": {
"profileUrl": "https://www.linkedin.com/sales/lead/ACwAAAxxxxxx"
}
}Send an InMail (with dry run)
{
"tool": "linkedin_send_inmail",
"arguments": {
"profileUrl": "https://www.linkedin.com/sales/lead/ACwAAAxxxxxx",
"subject": "Quick question about your team",
"body": "Hi, I noticed your team is growing...",
"dryRun": true
}
}Export leads to CSV
{
"tool": "linkedin_export_leads",
"arguments": {
"source": "current_search",
"format": "csv",
"limit": 50
}
}Troubleshooting
Start with the linkedin_session_status tool. It connects lazily (same as other tools), reports authMethod, browserConnected, authenticated, usageToday, and a short hint for the next step.
Symptom | What to check |
Browser not initialized | Fixed in 0.2.0: the browser connects on each tool call if startup failed. Ensure Chrome is running with remote debugging (CDP) or paths are set for |
Not authenticated | Sales Navigator’s shell renders a few seconds after load. Log in at linkedin.com/sales in the same browser profile the server uses, then call |
CDP endpoint unreachable | Confirm Chrome was started with |
Expired session / cookie | Re-authenticate in the browser or refresh exported cookies. An expired |
See CONTRIBUTING.md for reporting selector breakage without sharing secrets.
Architecture
┌─────────────────────────────────────────────────┐
│ AI Assistant (Claude, GPT, etc.) │
│ ↕ MCP Protocol (stdio) │
├─────────────────────────────────────────────────┤
│ MCP Server (this package) │
│ ├── Tools (search, leads, inmails, lists, etc.)│
│ ├── Browser Controller (Playwright) │
│ └── Selectors & Auth │
├─────────────────────────────────────────────────┤
│ Playwright → Chromium / Chrome │
│ ↕ CDP or Direct │
├─────────────────────────────────────────────────┤
│ LinkedIn Sales Navigator (web app) │
└─────────────────────────────────────────────────┘Development
# Install dependencies
npm install
# Install Playwright browsers
npx playwright install chromium
# Development mode (watch)
npm run dev
# Build
npm run build
# Lint
npm run lint
# Type check
npm run typecheck
# Unit tests
npm testSelector Maintenance
LinkedIn rotates hashed CSS module classes on every deploy. Selectors in this project follow a fixed priority (see PR #3 and src/browser/selectors.ts):
data-anonymize="..."and similar LinkedIn field markers (person-name,headline,title,company-name, …)data-x--...,data-sn-view-name,data-control-name— product hooks tied to behaviorSemantic HTML / ARIA and shared
artdeco-*design-system classesPlaywright text matchers (
:has-text(),:text-matches()) only when nothing else is stable
Field locators are prioritised arrays, resolved in order by src/browser/query.ts (not comma-separated CSS lists, which follow document order).
The lead profile topcard headline and location often lack stable hooks. src/browser/dom-extract.ts walks structure from stable anchors (name h1, Save button) and reads text by position, with selector fallbacks afterward.
When tools break after a LinkedIn UI change:
Reproduce on the affected page and tool
Inspect DOM hooks (
data-anonymize,data-control-name) before class namesUpdate selectors, query arrays, or dom-extract heuristics as needed
Open a PR with a redacted HTML snippet (see CONTRIBUTING.md)
License
MIT — see LICENSE
Disclaimer
This project is not affiliated with, endorsed by, or sponsored by LinkedIn Corporation. LinkedIn and Sales Navigator are trademarks of LinkedIn Corporation. Use this tool responsibly and in accordance with LinkedIn's Terms of Service.
Available Tools
8 toolslinkedin_create_lead_listB
Create a new lead list in LinkedIn Sales Navigator
Inputs: name (required).
linkedin_export_leadsB
Export leads from LinkedIn Sales Navigator search results or a specific list to JSON or CSV format
Inputs: source (required), limit, fields, format, +1 more.
linkedin_get_lead_profileB
Get detailed profile information for a LinkedIn Sales Navigator lead
Inputs: profileUrl (required).
linkedin_list_lead_listsA
List all lead lists in LinkedIn Sales Navigator
Inputs: no named parameters.
linkedin_save_leadA
Save a lead to a list on LinkedIn Sales Navigator. Always preview first with dryRun=true before saving (default dryRun=false preserves prior behaviour).
Inputs: profileUrl (required), dryRun, listName.
linkedin_search_leadsA
Search for leads on LinkedIn Sales Navigator with filters (title, company, location, industry, seniority, etc.)
Inputs: page, title, company, function, +5 more.
linkedin_send_inmailA
Send an InMail message to a lead on LinkedIn Sales Navigator. Requires available InMail credits. Always preview first with dryRun=true before sending (default dryRun=false preserves prior behaviour).
Inputs: body (required), subject (required), profileUrl (required), dryRun.
linkedin_session_statusA
Check LinkedIn Sales Navigator browser connection, authentication, and today's usage budgets. Call this before other tools to verify the session (auth method, browserConnected, authenticated, usageToday). Attaches to the existing browser if needed. Never navigates the user's own tab; opens an owned dedicated tab when no Sales Navigator tab exists (same as other tools).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool addresses a distinct operation: profile retrieval, session health, lead saving, InMail sending, exporting, list creation, list enumeration, and searching. There is no functional overlap; even export_leads and search_leads have clear boundaries (export vs. discover). An agent can unambiguously select the correct tool for each task.
All tools share the 'linkedin_' prefix and use snake_case. Most follow a clear verb_noun pattern (get_lead_profile, save_lead, send_inmail, export_leads, create_lead_list, list_lead_lists, search_leads). The exception is linkedin_session_status, which uses a noun_noun structure and lacks a verb, creating a minor but noticeable inconsistency.
With 8 tools, the server is well-scoped for a LinkedIn Sales Navigator integration. Each tool covers a core workflow (searching, profiling, list management, outreach, and session monitoring) without unnecessary bloat. The count is firmly within the ideal 3-15 range and feels neither thin nor overloaded.
The surface covers the primary Sales Navigator operations: search, profile views, list CRUD (create/list, and save implies add to list), InMail sending, and export. Minor gaps exist—such as removing leads from lists or updating list metadata—but agents can accomplish most sales workflows without dead ends. The only notable omission is a list-lead enumeration function (e.g., list leads in a specific list), which is a secondary workflow.
Maintenance
Related MCP Connectors
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
LinkedIn for AI agents: inbox, invitations, Sales Navigator search, posts, jobs, quotas, webhooks.
LinkedIn signals, lead lists, workflows, inbox and LinkedIn actions — run from your AI.
LinkedIn jobs, companies and people for AI agents, plus messages and invites via your own account.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to interact with LinkedIn by scraping profiles, companies, job postings, and getting personalized job recommendations using authenticated browser automation.1712,284 PyPI4,289Apache 2.0
- AlicenseAqualityDmaintenanceConnects LinkedIn to AI assistants, enabling lead search, profile analysis, messaging, and workflow automation through a cloud browser. Supports sales, recruiting, and market research tasks.59MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to search LinkedIn Sales Navigator contacts and accounts by driving a real logged-in browser and capturing Sales Navigator's own search API responses.1626 PyPI2MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to search leads, view profiles, manage lists, send InMails, and export data by automating LinkedIn Sales Navigator through a logged-in browser session.7MIT