
LinkedIn-MCP-Server
模型上下文协议(MCP)服务器,可以通过Claude和其他AI助手与LinkedIn进行交互。该服务器允许您刮擦LinkedIn配置文件,公司,工作和执行求职。
3 years
Works with Finder
34
Github Watches
10
Github Forks
34
Github Stars
LinkedIn MCP Server
A Model Context Protocol (MCP) server that enables interaction with LinkedIn through Claude and other AI assistants. This server allows you to scrape LinkedIn profiles, companies, jobs, and perform job searches.
https://github.com/user-attachments/assets/eb84419a-6eaf-47bd-ac52-37bc59c83680
📋 Features
- Profile Scraping: Get detailed information from LinkedIn profiles
- Company Analysis: Extract company information, including employees if desired
- Job Search: Search for jobs and get recommended positions
🔧 Installation
Installing via Smithery
To install LinkedIn MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @stickerdaniel/linkedin-mcp-server --client claude
Prerequisites
- Python 3.8 or higher
- Chrome browser installed
- ChromeDriver matching your Chrome version
- A LinkedIn account
Step 1: Clone or Download the Repository
git clone https://github.com/stickerdaniel/linkedin-mcp-server
cd linkedin-mcp-server
Or download and extract the zip file.
Step 2: Set Up a Virtual Environment
Using uv
(recommended):
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create and activate virtual environment
uv venv
source .venv/bin/activate # On macOS/Linux
# OR
.venv\Scripts\activate # On Windows
Step 3: Install Dependencies
Using uv
:
uv add "mcp[cli]" selenium httpx inquirer pyperclip
uv add "git+https://github.com/stickerdaniel/linkedin_scraper.git"
Step 4: Install ChromeDriver
ChromeDriver is required for Selenium to interact with Chrome. You need to install the version that matches your Chrome browser.
-
Check your Chrome version:
- Open Chrome and go to the menu (three dots) > Help > About Google Chrome
- Note the version number (e.g., 123.0.6312.87)
-
Download matching ChromeDriver:
- Go to ChromeDriver Downloads / Chrome for Testing (Chrome-Version 115+)
- Download the version that matches your Chrome version
- Extract the downloaded file
-
Make ChromeDriver accessible:
-
Option 1: Place it in a directory that's in your PATH (e.g.,
/usr/local/bin
on macOS/Linux) -
Option 2: Set the CHROMEDRIVER environment variable to the path where you placed it:
export CHROMEDRIVER=/path/to/chromedriver # macOS/Linux # OR set CHROMEDRIVER=C:\path\to\chromedriver.exe # Windows
- Option 3: The server will attempt to auto-detect or prompt you for the path when run
-
Option 1: Place it in a directory that's in your PATH (e.g.,
🚀 Running the Server
- Start the server once manually:
# Using uv (recommended)
uv run main.py --no-lazy-init --no-headless
-
Lazy initialization (default behavior):
- The server uses lazy initialization, meaning it will only create the Chrome driver and log in when a tool is actually used
- You can set environment variables for non-interactive use:
export LINKEDIN_EMAIL=your.email@example.com export LINKEDIN_PASSWORD=your_password
-
Configure Claude Desktop:
- The server will display and copy to your clipboard the configuration needed for Claude Desktop
- Open Claude Desktop and go to Settings > Developer > Edit Config
- Paste the configuration provided by the server
- Edit the configuration to include your LinkedIn credentials as environment variables
Example Claude Desktop configuration:
{
"mcpServers": {
"linkedin-scraper": {
"command": "/path/to/uv",
"args": ["--directory", "/path/to/project", "run", "main.py", "--no-setup"],
"env": {
"LINKEDIN_EMAIL": "your.email@example.com",
"LINKEDIN_PASSWORD": "your_password"
}
}
}
}
🔄 Using with Claude Desktop
- After adding the configuration to Claude Desktop, restart the application
- Start a conversation with Claude
- You'll see tools available in the tools menu (hammer icon)
- You can now ask Claude to retrieve LinkedIn profiles, search for jobs, etc.
Examples of what you can ask Claude:
- "Can you tell me about Daniels work experience? His LinkedIn profile is https://www.linkedin.com/in/stickerdaniel/"
- "Search for machine learning engineer jobs on LinkedIn"
- "Tell me about Google as a company based on their LinkedIn page"
🔐 Security and Privacy
- Your LinkedIn credentials can be provided through environment variables or stored locally at
~/.linkedin_mcp_credentials.json
with user-only permissions - Credentials are never exposed to Claude or any other AI and are only used for the LinkedIn login to scrape data
- The server runs on your local machine, not in the cloud
- All LinkedIn scraping happens through your account - be aware that profile visits are visible to other users
⚠️ Troubleshooting
ChromeDriver Issues
If you encounter ChromeDriver errors:
- Ensure your Chrome browser is updated
- Download the matching ChromeDriver version
- Set the CHROMEDRIVER path correctly
- Try running with administrator/sudo privileges if permission issues occur
Authentication Issues
If login fails:
- Verify your LinkedIn credentials
- Check if your account has two-factor authentication enabled
- Try logging in manually to LinkedIn first, then run the server
- Check your LinkedIn mobile app for a login request after running the server
- Try to run the server with
--no-headless
to see where the login fails - Try to run the server with
--debug
to see more detailed logs
Connection Issues
If Claude cannot connect to the server:
- Ensure the server is running when you start it manually
- Verify the configuration in Claude Desktop is correct
- Restart Claude Desktop
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
- Based on the LinkedIn Scraper by joeyism
- Uses the Model Context Protocol (MCP) for integration with AI assistants
Note: This tool is for personal use only. Use responsibly and in accordance with LinkedIn's terms of service. Web scraping may violate LinkedIn's terms of service in some cases.
相关推荐
😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack
Reviews

user_5hVRcjt9
I recently started using linkedin-mcp-server by stickerdaniel and it has significantly streamlined my workflow. Its intuitive interface and powerful features allow for seamless integration with my LinkedIn API needs. Highly recommend it for anyone looking to enhance their LinkedIn automation processes. Five stars!

user_VrlEZjxe
The linkedin-mcp-server by stickerdaniel is an exceptional tool for managing professional connections smoothly. The setup is user-friendly, and the performance is highly reliable. It integrates seamlessly with LinkedIn, making network management efficient and less time-consuming. Highly recommended for anyone looking to optimize their LinkedIn experience. Great job, stickerdaniel!

user_WOY8KvUW
I've been using the linkedin-mcp-server by stickerdaniel for a few weeks now, and it has significantly improved my workflow. The setup was straightforward, and the performance is top-notch. Highly recommended for anyone looking to optimize their LinkedIn management!

user_0K6lChPZ
Linkedin-mcp-server by stickerdaniel has been a game-changer for our professional networking strategy. Its seamless integration and robust features have significantly enhanced our team's productivity. Highly recommended for anyone serious about leveraging LinkedIn for business growth.

user_9X7oWBhW
As a dedicated user of the linkedin-mcp-server developed by stickerdaniel, I can confidently say that this application is a game-changer for managing LinkedIn activities. The streamlined server makes both networking and job searches incredibly efficient. If you want to take your LinkedIn experience to the next level, this is the tool you need. Highly recommended!

user_JdJyXHNl
As a dedicated MCP user, I highly recommend the linkedin-mcp-server by stickerdaniel. This product integrates seamlessly with LinkedIn and enhances connectivity and performance. The setup is straightforward, and the user interface is intuitive. It's an excellent tool for anyone looking to optimize their LinkedIn experience.

user_rT9P9J8z
I've been using the linkedin-mcp-server by stickerdaniel and it has significantly improved my server management experience. The seamless integration and user-friendly interface make it a must-have tool for anyone managing LinkedIn accounts. Highly recommended!

user_jUo9Ei29
As a dedicated user of the MCP application, I am truly impressed with the linkedin-mcp-server by stickerdaniel. This server is a game-changer for integrating LinkedIn with MCP, providing seamless connectivity and robust performance. Highly recommended for professionals looking to enhance their LinkedIn experience within the MCP ecosystem!

user_tLSDEaRf
linkedin-mcp-server by stickerdaniel is an exceptional product! It significantly enhances my LinkedIn productivity through seamless integration and intuitive features. The user interface is clean and easy to navigate, making my workflow much more efficient. Highly recommend to anyone looking to optimize their LinkedIn experience!

user_uqduIEKy
linkedin-mcp-server by stickerdaniel is an exceptional tool for anyone leveraging LinkedIn’s power. The server is seamless and reliable, ensuring smooth operations for connecting and managing professional networks. Its streamlined setup and user-friendly welcome information make it straightforward for users of all levels. Highly recommended for maintaining professional connections effortlessly!

user_lxgtE3lg
I've been using linkedin-mcp-server by stickerdaniel and it's been a game-changer for my workflow. The integration with LinkedIn is seamless and the server performs reliably with no issues. Highly recommend it to anyone looking for a robust solution to manage their LinkedIn data efficiently!

user_NcJPuCot
As a dedicated user of linkedin-mcp-server, I can confidently say that this application created by stickerdaniel has significantly streamlined my LinkedIn data management. Its intuitive interface and robust functionality make it a must-have tool for professionals looking to optimize their LinkedIn experience. Highly recommended!