
LinkedIn Scraper MCP Server
Enables extraction of comprehensive LinkedIn profile data including experience, education, skills, and contact information through browser automation. Requires manual LinkedIn credentials input and uses anti-detection measures for reliable scraping.
README
LinkedIn Scraper MCP Server
A Model Context Protocol (MCP) server that provides LinkedIn profile scraping capabilities with manual credential input. This server allows you to extract comprehensive profile data including experience, education, skills, and contact information.
Features
- Manual Credential Input: No need for environment variables - provide LinkedIn credentials directly in tool calls
- Comprehensive Data Extraction: Scrapes name, headline, location, about section, experience, education, skills, and contact info
- Multiple Transport Methods: Supports both HTTP (production) and STDIO (development) transports
- Browser Automation: Uses Selenium WebDriver with Chrome for reliable scraping
- Anti-Detection: Includes human-like delays and browser settings to avoid detection
Installation
- Install dependencies:
npm install
-
Install Chrome browser (if not already installed):
- The server uses Chrome WebDriver which will be automatically managed
- Ensure Chrome browser is installed on your system
-
Build the project:
npm run build
Usage
HTTP Transport (Recommended)
Start the server with HTTP transport:
npm start
# or
node dist/index.js
The server will start on http://localhost:8080
by default.
STDIO Transport (Development)
For local development with STDIO transport:
npm run start:stdio
# or
node dist/index.js --stdio
Command Line Options
--port <PORT>
: Specify HTTP server port (default: 8080)--stdio
: Use STDIO transport instead of HTTP--help
: Show help message
MCP Client Configuration
Add this to your MCP client configuration:
{
"mcpServers": {
"linkedin-scraper": {
"url": "http://localhost:8080/mcp"
}
}
}
Available Tools
scrape_linkedin_profile
Scrapes a LinkedIn profile and returns comprehensive profile data.
Parameters:
url
(required): LinkedIn profile URL (e.g., "https://www.linkedin.com/in/username/")email
(required): LinkedIn account email for authenticationpassword
(required): LinkedIn account password for authenticationheadless
(optional): Run browser in headless mode (default: false)
Example Usage:
{
"tool": "scrape_linkedin_profile",
"arguments": {
"url": "https://www.linkedin.com/in/johndoe/",
"email": "your-email@example.com",
"password": "your-password",
"headless": false
}
}
Response Format:
{
"success": true,
"timestamp": "2024-01-01T12:00:00.000Z",
"profile": {
"url": "https://www.linkedin.com/in/johndoe/",
"name": "John Doe",
"headline": "Software Engineer at Tech Company",
"location": "San Francisco, CA",
"about": "Passionate software engineer...",
"experience_count": 3,
"experiences": [...],
"education_count": 2,
"education": [...],
"skills_count": 15,
"skills": [...],
"websites": [...],
"email": "john@example.com"
}
}
Development
Project Structure
src/
├── index.ts # Main entry point
├── cli.ts # Command-line argument parsing
├── config.ts # Configuration management
├── server.ts # Server instance creation
├── client.ts # LinkedIn scraper client
├── types.ts # TypeScript type definitions
├── tools/
│ ├── index.ts # Tool exports
│ └── linkedin.ts # LinkedIn scraping tool
└── transport/
├── index.ts # Transport exports
├── http.ts # HTTP transport
└── stdio.ts # STDIO transport
Building
npm run build # Build once
npm run watch # Build and watch for changes
Running in Development
npm run dev # Build and run HTTP transport
npm run dev:stdio # Build and run STDIO transport
Security Considerations
- Credential Handling: LinkedIn credentials are passed directly in tool calls and not stored
- Rate Limiting: The scraper includes human-like delays to avoid being blocked
- Browser Settings: Uses realistic browser settings to minimize detection
- Session Management: Each scraping session is isolated and cleaned up properly
Troubleshooting
Common Issues
-
Chrome Driver Issues: The server automatically manages Chrome WebDriver, but ensure Chrome browser is installed
-
LinkedIn Authentication: If authentication fails:
- Verify your LinkedIn credentials are correct
- Check if your account has two-factor authentication enabled
- Try logging in manually first to resolve any security challenges
-
Scraping Failures: If scraping fails:
- Try running with
headless: false
to see what's happening - Check if LinkedIn has updated their page structure
- Ensure stable internet connection
- Try running with
-
Port Conflicts: If port 8080 is in use:
node dist/index.js --port 3000
Environment Variables
Optional environment variables:
PORT
: HTTP server port (default: 8080)NODE_ENV
: Set to 'production' for production mode
License
This project is for educational and research purposes. Please respect LinkedIn's Terms of Service and use responsibly.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Disclaimer
This tool is for educational purposes only. Users are responsible for complying with LinkedIn's Terms of Service and applicable laws. The authors are not responsible for any misuse of this software.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.