linkedin-sales-nav-mcp
LinkedIn Sales Navigator MCP Server
MCP server that gives AI assistants (Claude Desktop, Claude Code, any MCP client) access to LinkedIn Sales Navigator contact and account search — by driving a real, logged-in browser on your machine and capturing Sales Navigator's own search API responses.
Why this design (and why not cookie-replay)
The common approach — copy your li_at + JSESSIONID cookies and replay them
as HTTP requests from a server — gets you logged out repeatedly. LinkedIn
scores each session on IP, browser fingerprint, TLS, and the full cookie set;
two replayed cookies from a different machine look like a hijacked session, so
it invalidates them.
This server does the opposite. It keeps a persistent browser profile you log into once, by hand, and then lets that genuine session do the work:
MCP client (Claude) ──stdio/HTTP──> this server ──drives──> your logged-in Chromium ──> Sales Navigator
│
captures the JSON the browser
itself receives (page.on "response")Every request to LinkedIn originates from the real browser: your IP, your fingerprint, your full cookie jar, browser-generated CSRF/track headers, and the session is refreshed by the browser as normal. Nothing is replayed or reconstructed. That is what keeps you signed in.
We never automate the login itself — typing credentials is a strong bot signal. You sign in manually once; the profile persists.
Related MCP server: LinkedIn Sales & Navigator MCP Server
Tools
Tool | What it does |
| People/lead search from a Sales Navigator URL. Navigates + paginates in the browser, returns structured contact records. |
| Company/account search from a Sales Navigator URL. Same, for accounts. |
| Reports whether the browser profile has a live Sales Navigator session (tells you if you need to re-run |
Both search tools take a full Sales Navigator URL (build the search in the
UI, copy it from the address bar) and a pages count (1–10, 25 results each).
Setup
uv sync
uv run patchright install chromium # one-time browser download
cp .env.example .env # optional; defaults are fine on your machine1. Log in once
uv run linkedin-sales-nav-mcp --loginA browser window opens. Sign into LinkedIn, open Sales Navigator, finish any 2FA/checkpoint. The server detects the signed-in session and saves the profile, then exits.
2. Run the server
uv run linkedin-sales-nav-mcp # stdio (for Claude Desktop / Code)Claude Desktop / Claude Code config
{
"mcpServers": {
"sales-navigator": {
"command": "uv",
"args": ["run", "--directory", "/path/to/linkedin-sales-nav-mcp", "linkedin-sales-nav-mcp"]
}
}
}No secrets in the config — the session lives in the browser profile.
Environment variables
Variable | Default | Purpose |
|
| Persistent browser profile |
|
|
|
| — | Use your own Chrome instead of bundled Chromium |
| — | Leave empty on your own machine; only for a residential exit node if remote |
|
| Timeouts (s) |
|
| Per-tool MCP timeout (s) — must exceed the pacing budget below |
|
| Human-like delays between pages (see below) |
|
| Random dwell before advancing a page (s) |
|
| Take a longer break every N pages ( |
|
| Length of that break (s) |
|
| Transport |
|
|
|
Pacing
Pages are not fetched back to back. After each page the server dwells for a random 3–8s before clicking "Next", and every ~5 pages (jittered ±1) it takes a 20–45s break instead. Scroll rhythm is varied too — step count, distance, and the gaps between them.
The reason is cadence, not speed: a page load every two seconds, forever, with no breaks, is a machine signature regardless of how genuine the session is. A full 10-page call therefore takes a couple of minutes, most of it spent deliberately idle. That is working as intended.
Tune with PAGE_DELAY_* / LONG_PAUSE_*, or set PACING_ENABLED=false to
restore the old fixed rhythm. Raise TOOL_TIMEOUT alongside any large increase.
This lowers your footprint; it does not make you invisible. Volume is what gets accounts flagged, and no jitter setting changes how many profiles you pulled today. Fetch what you need, spread it out, and use an account you own.
Example agent usage
User: Find heads of engineering at mid-size fintech companies in Berlin.
Agent: builds/obtains a Sales Navigator search URL (paste one, or use a URL-builder skill), then:
search_contacts( search_url="https://www.linkedin.com/sales/search/people?query=(...)", pages=2 )→ structured contact records (
fullName,title,companyName,location,industry, ...) pluspaging.total.
Important honesty notes
Field mapping is best-effort. We capture LinkedIn's internal sales-api JSON, which is undocumented and changes over time. The normalizer (
sales_nav_mcp/normalize.py) pulls the fields that have been stable; if one looks empty, call withinclude_raw=trueand inspect_raw, then extend the mapper. This is the intended maintenance path.Pagination selectors for the "Next" control can change; the code tries several fallbacks and stops cleanly if none match. If deep pagination stops early, update
_NEXT_SELECTORSinsales_nav_mcp/capture.py.Run it on your own machine. A datacenter/cloud IP re-introduces the logout risk this design exists to avoid.
Scraping LinkedIn is subject to LinkedIn's Terms of Service. Use an account you own, at conservative rates.
Development
uv run pytest # unit tests for URL validation + JSON normalizationThe tests cover the pure logic (no browser/network). The browser path is
exercised by running --login then a real search.
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
- AlicenseAqualityAmaintenanceEnables AI assistants to interact with LinkedIn by scraping profiles, companies, job postings, and getting personalized job recommendations using authenticated browser automation.173,106Apache 2.0
- FlicenseAquality-maintenanceEnables AI assistants to interact with LinkedIn and LinkedIn Sales Navigator for searching profiles, managing leads, and handling messaging via cookie-based authentication. It supports professional networking tasks such as sending connection requests and retrieving account details through the Model Context Protocol.221
- AlicenseAqualityDmaintenanceEnables searching and scraping of LinkedIn for structured data on people, companies, and job listings. It allows AI clients to retrieve detailed profiles, experience, and activity sections using browser automation.7174MIT
- AlicenseAqualityFmaintenanceEnables AI assistants to search leads, view profiles, manage lists, send InMails, and export data from LinkedIn Sales Navigator through browser automation.76MIT
Related MCP Connectors
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Stealth scraping & search. Bypasses Cloudflare, DataDome & LinkedIn via Cyborg HITL approach.
Search companies, enrich contacts, and reveal emails and phones from your AI agent.
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/nick-choudhary/linkedin-sales-nav-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server