MCP-LinkedIn
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP-LinkedIn get my recommended jobs I can apply to"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LinkedIn MCP Server
Through this LinkedIn MCP server, AI assistants like Claude can connect to your LinkedIn. Give access to profiles and companies, get your recommended jobs, or search for keywords. All from a Docker container on your machine.
Installation Methods
https://github.com/user-attachments/assets/eb84419a-6eaf-47bd-ac52-37bc59c83680
Related MCP server: LinkedIn MCP Server
Usage Examples
What are my recommended jobs I can apply to?Research the background of this candidate https://www.linkedin.com/in/stickerdaniel/Get this company profile for partnership discussions https://www.linkedin.com/company/inframs/Suggest improvements for my CV to target this job posting https://www.linkedin.com/jobs/view/4252026496Features & Tool Status
Profile Scraping (
get_person_profile): Get detailed information from a LinkedIn profile including work history, education, skills, and connectionsCompany Analysis (
get_company_profile): Extract comprehensive company information from a LinkedIn company profile nameJob Details (
get_job_details): Retrieve specific job posting details using LinkedIn job IDsJob Search (
search_jobs): Search for jobs with filters like keywords and locationRecommended Jobs (
get_recommended_jobs): Get personalized job recommendations based on your profileSession Management (
close_session): Properly close browser session and clean up resources
July 2025: All tools are currently functional and actively maintained. If you encounter any issues, please report them in theGitHub issues.
🐳 Docker Setup (Recommended - Universal)
Prerequisites: Make sure you have Docker installed and running.
Installation
Client Configuration:
{
"mcpServers": {
"linkedin": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "LINKEDIN_COOKIE",
"stickerdaniel/linkedin-mcp-server:latest"
],
"env": {
"LINKEDIN_COOKIE": "li_at=YOUR_COOKIE_VALUE"
}
}
}
}Getting the LinkedIn Cookie
Open LinkedIn and login
Open Chrome DevTools (F12 or right-click → Inspect)
Go to Application > Storage > Cookies > https://www.linkedin.com
Find the cookie named
li_atCopy the Value field (this is your LinkedIn session cookie)
Use this value as your
LINKEDIN_COOKIEin the configuration
Run the server with the --get-cookie flag:
docker run -it --rm \
stickerdaniel/linkedin-mcp-server:latest \
--get-cookieCopy the cookie from the output and set it as LINKEDIN_COOKIE in your client configuration. If this fails with a captcha challenge, use the method above.
The cookie will expire during the next 30 days. Just get the new cookie and update your client config. There are also many cookie manager extensions that you can use to quickly copy the cookie.
Docker Setup Help
Transport Modes:
Default (stdio): Standard communication for local MCP servers
Streamable HTTP: For a web-based MCP server
CLI Options:
--log-level {DEBUG,INFO,WARNING,ERROR}- Set logging level (default: WARNING)--no-lazy-init- Login to LinkedIn immediately instead of waiting for the first tool call--transport {stdio,streamable-http}- Set transport mode--host HOST- HTTP server host (default: 127.0.0.1)--port PORT- HTTP server port (default: 8000)--path PATH- HTTP server path (default: /mcp)--get-cookie- Attempt to login with email and password and extract the LinkedIn cookie--cookie {cookie}- Pass a specific LinkedIn cookie for login--user-agent {user_agent}- Specify custom user agent string to prevent anti-scraping detection
HTTP Mode Example (for web-based MCP clients):
docker run -it --rm \
-e LINKEDIN_COOKIE="li_at=YOUR_COOKIE_VALUE" \
-p 8080:8080 \
stickerdaniel/linkedin-mcp-server:latest \
--transport streamable-http --host 0.0.0.0 --port 8080 --path /mcpTest with mcp inspector:
Install and run mcp inspector
bunx @modelcontextprotocol/inspectorClick pre-filled token url to open the inspector in your browser
Select
Streamable HTTPasTransport TypeSet
URLtohttp://localhost:8080/mcpConnect
Test tools
Docker issues:
Make sure Docker is installed
Check if Docker is running:
docker ps
Login issues:
Ensure your LinkedIn cookie is set and correct
Make sure you have only one active LinkedIn session per cookie at a time. Trying to open multiple sessions with the same cookie will result in a cookie invalid error.
LinkedIn may require a login confirmation in the LinkedIn mobile app for --get-cookie
You might get a captcha challenge if you logged in a lot of times in a short period of time, then try again later or follow the local setup instructions to run the server manually in --no-headless mode where you can debug the login process (solve captcha manually)
📦 Claude Desktop (DXT Extension)
Prerequisites: Claude Desktop and Docker installed
One-click installation for Claude Desktop users:
Download the DXT extension
Double-click to install into Claude Desktop
Set your LinkedIn cookie in the extension settings
Getting the LinkedIn Cookie
Open LinkedIn and login
Open Chrome DevTools (F12 or right-click → Inspect)
Go to Application > Storage > Cookies > https://www.linkedin.com
Find the cookie named
li_atCopy the Value field (this is your LinkedIn session cookie)
Use this value as your
LINKEDIN_COOKIEin the configuration
Run the server with the --get-cookie flag:
docker run -it --rm \
stickerdaniel/linkedin-mcp-server:latest \
--get-cookieCopy the cookie from the output and set it as LINKEDIN_COOKIE in your client configuration. If this fails with a captcha challenge, use the method above.
The cookie will expire during the next 30 days. Just get the new cookie and update your client config. There are also many cookie manager extensions that you can use to quickly copy the cookie.
DXT Extension Setup Help
Docker issues:
Make sure Docker is installed
Check if Docker is running:
docker ps
Login issues:
Ensure your LinkedIn cookie is set and correct
Make sure you have only one active LinkedIn session per cookie at a time. Trying to open multiple sessions with the same cookie will result in a cookie invalid error.
LinkedIn may require a login confirmation in the LinkedIn mobile app for --get-cookie
You might get a captcha challenge if you logged in a lot of times in a short period of time, then try again later or follow the local setup instructions to run the server manually in --no-headless mode where you can debug the login process (solve captcha manually)
🚀 uvx Setup (Quick Install - Universal)
Prerequisites: Make sure you have uv installed.
Installation
Run directly from GitHub without cloning:
# Run directly from GitHub (latest version)
uvx --from git+https://github.com/stickerdaniel/linkedin-mcp-server linkedin-mcp-server --help
# Run with your LinkedIn cookie
uvx --from git+https://github.com/stickerdaniel/linkedin-mcp-server linkedin-mcp-server --cookie "li_at=YOUR_COOKIE_VALUE"Getting the LinkedIn Cookie
Open LinkedIn and login
Open Chrome DevTools (F12 or right-click → Inspect)
Go to Application > Storage > Cookies > https://www.linkedin.com
Find the cookie named
li_atCopy the Value field (this is your LinkedIn session cookie)
Use this value as your
LINKEDIN_COOKIEin the configuration
Run the server with the --get-cookie flag:
uvx --from git+https://github.com/stickerdaniel/linkedin-mcp-server \
linkedin-mcp-server --get-cookieCopy the cookie from the output and set it as LINKEDIN_COOKIE in your client configuration. If this fails with a captcha challenge, use the method above.
The cookie will expire during the next 30 days. Just get the new cookie and update your client config. There are also many cookie manager extensions that you can use to quickly copy the cookie.
uvx Setup Help
Client Configuration:
{
"mcpServers": {
"linkedin": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/stickerdaniel/linkedin-mcp-server",
"linkedin-mcp-server"
],
"env": {
"LINKEDIN_COOKIE": "li_at=YOUR_COOKIE_VALUE"
}
}
}
}Transport Modes:
Default (stdio): Standard communication for local MCP servers
Streamable HTTP: For web-based MCP server
CLI Options:
--log-level {DEBUG,INFO,WARNING,ERROR}- Set logging level (default: WARNING)--no-lazy-init- Login to LinkedIn immediately instead of waiting for the first tool call--transport {stdio,streamable-http}- Set transport mode--host HOST- HTTP server host (default: 127.0.0.1)--port PORT- HTTP server port (default: 8000)--path PATH- HTTP server path (default: /mcp)--get-cookie- Attempt to login with email and password and extract the LinkedIn cookie--cookie {cookie}- Pass a specific LinkedIn cookie for login--user-agent {user_agent}- Specify custom user agent string to prevent anti-scraping detection
Basic Usage Examples:
# Run with cookie from environment variable
LINKEDIN_COOKIE="YOUR_COOKIE_VALUE" uvx --from git+https://github.com/stickerdaniel/linkedin-mcp-server linkedin-mcp-server
# Run with cookie via flag
uvx --from git+https://github.com/stickerdaniel/linkedin-mcp-server linkedin-mcp-server --cookie "YOUR_COOKIE_VALUE"
# Run with debug logging
uvx --from git+https://github.com/stickerdaniel/linkedin-mcp-server linkedin-mcp-server --log-level DEBUG
# Extract cookie with credentials
uvx --from git+https://github.com/stickerdaniel/linkedin-mcp-server linkedin-mcp-server --get-cookieHTTP Mode Example (for web-based MCP clients):
uvx --from git+https://github.com/stickerdaniel/linkedin-mcp-server linkedin-mcp-server \
--transport streamable-http --host 127.0.0.1 --port 8080 --path /mcpTest with mcp inspector:
Install and run mcp inspector
bunx @modelcontextprotocol/inspectorClick pre-filled token url to open the inspector in your browser
Select
Streamable HTTPasTransport TypeSet
URLtohttp://localhost:8080/mcpConnect
Test tools
Installation issues:
Ensure you have uv installed:
curl -LsSf https://astral.sh/uv/install.sh | shCheck uv version:
uv --version(should be 0.4.0 or higher)
Cookie issues:
Ensure your LinkedIn cookie is set and correct
Cookie can be passed via
--cookieflag orLINKEDIN_COOKIEenvironment variableMake sure you have only one active LinkedIn session per cookie at a time
Login issues:
LinkedIn may require a login confirmation in the LinkedIn mobile app for --get-cookie
You might get a captcha challenge if you logged in a lot of times in a short period
🐍 Local Setup (Develop & Contribute)
Prerequisites: Chrome browser and Git installed
ChromeDriver Setup:
Check Chrome version: Chrome → menu (⋮) → Help → About Google Chrome
Download matching ChromeDriver: Chrome for Testing
Make it accessible:
Place ChromeDriver in PATH (
/usr/local/binon macOS/Linux)Or set:
export CHROMEDRIVER_PATH=/path/to/chromedriverif no CHROMEDRIVER_PATH is set, the server will try to find it automatically by checking common locations
Installation
# 1. Clone repository
git clone https://github.com/stickerdaniel/linkedin-mcp-server
cd linkedin-mcp-server
# 2. Install UV package manager
curl -LsSf https://astral.sh/uv/install.sh | sh
uv python # install python if you don't have it
# 3. Install dependencies and dev dependencies
uv sync
uv sync --group dev
# 4. Install pre-commit hooks
uv run pre-commit install
# 5. Start the server once manually
# You will be prompted to enter your LinkedIn credentials, and they will be securely stored in your OS keychain
# Once logged in, your cookie will be stored in your OS keychain and used for subsequent runs until it expires
uv run -m linkedin_mcp_server --no-headless --no-lazy-initLocal Setup Help
CLI Options:
--no-headless- Show browser window (debugging)--log-level {DEBUG,INFO,WARNING,ERROR}- Set logging level (default: WARNING)--no-lazy-init- Login to LinkedIn immediately instead of waiting for the first tool call--get-cookie- Login with email and password and extract the LinkedIn cookie--clear-keychain- Clear all stored LinkedIn credentials and cookies from system keychain--cookie {cookie}- Pass a specific LinkedIn cookie for login--user-agent {user_agent}- Specify custom user agent string to prevent anti-scraping detection--transport {stdio,streamable-http}- Set transport mode--host HOST- HTTP server host (default: 127.0.0.1)--port PORT- HTTP server port (default: 8000)--path PATH- HTTP server path (default: /mcp)--help- Show help
HTTP Mode Example (for web-based MCP clients):
uv run -m linkedin_mcp_server --transport streamable-http --host 127.0.0.1 --port 8000 --path /mcpClaude Desktop:
{
"mcpServers": {
"linkedin": {
"command": "uv",
"args": ["--directory", "/path/to/linkedin-mcp-server", "run", "-m", "linkedin_mcp_server"]
}
}
}Login/Scraping issues:
Use
--no-headlessto see browser actions (captcha challenge, LinkedIn mobile app 2fa, ...)Add
--no-lazy-initto attempt to login to LinkedIn immediately instead of waiting for the first tool callAdd
--log-level DEBUGto see more detailed loggingMake sure you have only one active LinkedIn session per cookie at a time. Trying to open multiple sessions with the same cookie will result in a cookie invalid error. E.g. if you have a logged in browser session with a docker container, you can't use the same cookie to login with the local setup while the docker container is running / session is not closed.
ChromeDriver issues:
Ensure Chrome and ChromeDriver versions match
Check ChromeDriver is in PATH or set
CHROMEDRIVER_PATHin your env
Python issues:
Check Python version:
uv python --version(should be 3.12+)Reinstall dependencies:
uv sync --reinstall
Feel free to open an issue or PR!
Acknowledgements
Built with LinkedIn Scraper by @joeyism and FastMCP.
⚠️ Use in accordance with LinkedIn's Terms of Service. Web scraping may violate LinkedIn's terms. This tool is for personal use only.
Star History
License
This project is licensed under the Apache 2.0 license.
Available Tools
6 toolsclose_sessionA
Close the current browser session and clean up resources.
Inputs: no named parameters. Returns: object
get_company_profileA
Get a specific company's LinkedIn profile.
Args: company_name (str): LinkedIn company name (e.g., "docker", "anthropic", "microsoft") get_employees (bool): Whether to scrape the company's employees (slower)
Returns: Dict[str, Any]: Structured data from the company's profile
Inputs: company_name (required), get_employees. Returns: object
get_job_detailsA
Get job details for a specific job posting on LinkedIn
Args: job_id (str): LinkedIn job ID (e.g., "4252026496", "3856789012")
Returns: Dict[str, Any]: Structured job data including title, company, location, posting date, application count, and job description (may be empty if content is protected)
Inputs: job_id (required). Returns: object
get_person_profileA
Get a specific person's LinkedIn profile.
Args: linkedin_username (str): LinkedIn username (e.g., "stickerdaniel", "anistji")
Returns: Dict[str, Any]: Structured data from the person's profile
Inputs: linkedin_username (required). Returns: object
get_recommended_jobsB
Get your personalized recommended jobs from LinkedIn
Returns: List[Dict[str, Any]]: List of recommended jobs
Inputs: no named parameters. Returns: result
search_jobsB
Search for jobs on LinkedIn using a search term.
Args: search_term (str): Search term to use for the job search.
Returns: List[Dict[str, Any]]: List of job search results
Inputs: search_term (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: close_session handles session management, get_company_profile and get_person_profile target different entity types, while get_job_details, get_recommended_jobs, and search_jobs cover different job-related operations. The descriptions clearly differentiate between retrieving specific entities versus searching/recommending.
All tools follow a consistent verb_noun naming pattern: close_session, get_company_profile, get_job_details, get_person_profile, get_recommended_jobs, and search_jobs. The pattern is uniform throughout with 'get_' or action verbs followed by descriptive nouns, making the set predictable and readable.
Six tools is a reasonable count for a LinkedIn-focused server, covering core operations like profile retrieval, job search, and session management. It's slightly lean but well-scoped; minor additions like update operations or more entity types could enhance it without being necessary.
The toolset covers key read operations for profiles and jobs, but lacks update, create, or delete capabilities typical in social media contexts (e.g., posting updates, sending messages). While agents can retrieve data, they cannot interact or modify content, which limits workflow completeness for a full LinkedIn integration.
Maintenance
Related MCP Connectors
LinkedIn MCP with 47 tools: post, comment, DM and run comment-to-DM automations inside your limits.
LinkedIn jobs, companies and people for AI agents, plus messages and invites via your own account.
LinkedIn for AI agents: inbox, invitations, Sales Navigator search, posts, jobs, quotas, webhooks.
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
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.174,271Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables users to search for jobs, retrieve profiles, and fetch feed posts through the LinkedIn API. It also provides tools for analyzing and extracting data from PDF resumes.-
- AlicenseAqualityBmaintenanceEnables AI assistants to search leads, view profiles, manage lists, send InMails, and export data from LinkedIn Sales Navigator through browser automation.817MIT
- AlicenseAqualityDmaintenanceAutomates LinkedIn B2B marketing tasks such as profile search, company analysis, and connection request drafting, with optional AI-powered features via DeepSeek.5MIT