LinkedIn Sales & Navigator MCP Server
An MCP (Model Context Protocol) server that provides AI assistants with access to LinkedIn and LinkedIn Sales Navigator through cookie-based authentication.
Features
Profile Tools
get_own_profile — Get your own LinkedIn profile
get_profile — Get any profile by public identifier
get_profile_details — Full profile with experience, education, skills
get_profile_contact_info — Email, phone, websites
get_profile_skills — Skills list
get_profile_experience — Work experience
Search Tools
search_people — Search LinkedIn members with filters (keywords, company, industry, location, title, school, network depth)
search_companies — Search companies with filters (keywords, industry, region, size)
Sales Navigator Tools
sales_search_leads — Search leads with Sales Navigator filters (title, company, geography, industry, seniority, function)
sales_search_accounts — Search accounts/companies via Sales Navigator
get_sales_profile — Get a lead profile from Sales Navigator
get_saved_leads — Retrieve your saved leads
get_lead_lists — List all lead lists
get_lead_list_members — Get leads in a specific list
get_lead_recommendations — AI-recommended leads
Messaging Tools
send_message — Send a message or InMail to a member
get_conversations — List recent conversation threads
get_conversation_messages — Read messages in a conversation
Connection Tools
send_connection_request — Send a connection request with optional note
get_pending_connections — View pending outgoing requests
Utility
validate_session — Check if your session cookie is still active
Prerequisites
Node.js 18+
A LinkedIn account (Sales Navigator subscription for Sales Nav features)
Your
li_atsession cookie from LinkedIn
Getting Your LinkedIn Cookie
Log in to LinkedIn in your browser
Open Developer Tools (
F12orCmd+Shift+I)Go to Application → Cookies →
https://www.linkedin.comFind the
li_atcookie and copy its value(Optional) Also copy the
JSESSIONIDcookie value for the CSRF token
Note: The
li_atcookie expires periodically. If you get authentication errors, you'll need to refresh it.
Installation
Configuration
Environment Variables
Variable | Required | Description |
| Yes | Your LinkedIn |
| No | Your LinkedIn |
Claude Desktop
Add this to your Claude Desktop config (claude_desktop_config.json):
Claude Code (CLI)
Add to your Claude Code MCP settings:
Running Directly
Usage Examples
Once configured, you can ask your AI assistant:
"Search for VP of Engineering at fintech companies in San Francisco"
"Get the profile details for john-doe-123"
"Show me my saved leads in Sales Navigator"
"Send a connection request to urn:li:fsd_profile:ACoAAB... with a note about our shared interest in AI"
"Search Sales Navigator for directors at companies in the healthcare industry"
"Show my recent LinkedIn conversations"
Important Notes
Rate Limits: LinkedIn enforces rate limits. Avoid making too many requests in a short period to prevent temporary blocks.
Cookie Expiry: The
li_atcookie expires. If tools return authentication errors, refresh the cookie from your browser.Sales Navigator: Sales Navigator tools require an active Sales Navigator subscription on your LinkedIn account.
Terms of Service: Use responsibly and in accordance with LinkedIn's terms of service.
License
MIT