An MCP (Model Context Protocol) server for Claude Desktop that lets you scrape LinkedIn profiles and comment activity.
If you're using Claude, just say: "Set up the LinkedIn MCP server for my Claude Desktop"
Claude will read the CLAUDE.md file and automatically configure everything.
cd ~
git clone https://github.com/TimpiaAI/linkedin-mcp.git
cd linkedin-mcp
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/playwright install chromium.venv/bin/python -m linkedin_mcp.create_sessionThis opens a browser - log in to LinkedIn, then close the browser.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"linkedin": {
"command": "/Users/YOUR_USERNAME/linkedin-mcp/.venv/bin/python",
"args": ["-m", "linkedin_mcp.server"],
"env": {
"LINKEDIN_SESSION": "/Users/YOUR_USERNAME/linkedin-mcp/session.json"
}
}
}
}Replace YOUR_USERNAME with your actual username.
Quit (Cmd+Q) and reopen Claude Desktop.
Once configured, you can ask Claude things like:
- "Scrape the LinkedIn profile for johndoe"
- "Get the recent comments from linkedin.com/in/satyanadella"
- "What has this person been commenting on LinkedIn recently?"
scrape_linkedin
url: LinkedIn profile URL or usernamelimit: Max comments to return (default: 20)
Server won't connect:
tail -f ~/Library/Logs/Claude/mcp-server-linkedin.logSession expired:
cd ~/linkedin-mcp
.venv/bin/python -m linkedin_mcp.create_sessionMIT