LinkedIn Jobs MCP Server
LinkedIn Jobs MCP 服务器
自托管的 MCP 服务器,使用您已验证的会话 Cookie 抓取 LinkedIn 职位。在 Docker 中运行。无需 Apify,无单次运行成本。
设置
1. 获取您的 Cookie
安装 Cookie-Editor Chrome 扩展程序
登录 LinkedIn(建议使用小号)
点击 Cookie-Editor → Export (JSON)
找到并复制两个值:
li_at— 您的会话 CookieJSESSIONID— 用作 CSRF 令牌(值看起来像ajax:1234...)
2. 配置
cp .env.example .env
# Edit .env and paste your cookie values3. 构建与测试
# Build the Docker image
docker build -t linkedin-mcp .
# Quick smoke test — should print the MCP server startup log
docker run --rm --env-file .env linkedin-mcp
# Ctrl+C to stop4. 连接到 Claude Desktop
编辑您的 Claude Desktop 配置文件:
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"linkedin-jobs": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env-file", "/ABSOLUTE/PATH/TO/linkedin-mcp/.env",
"linkedin-mcp"
]
}
}
}⚠️ 请使用您 .env 文件的绝对路径。
~/在此处不会自动展开。
5. 重启 Claude Desktop
保存配置后,完全退出并重新打开 Claude Desktop。
您会在聊天栏中看到一个 🔧 工具图标 — 点击它以确认 scrape_jobs、get_job_details、check_cookie 和 update_cookies 已列出。
6. 首次对话
You: Check if my LinkedIn cookie is valid
Claude: [calls check_cookie] ✓ Authenticated as John Doe
You: Scrape 20 AI Engineer or ML Engineer jobs posted in the last 3 days in the US
Claude: [calls scrape_jobs] ...returns full job list with descriptionsRelated MCP server: mcp-job-search
Cookie 刷新(每 30–60 天)
当 Cookie 过期时,请从 Cookie-Editor 重新导出并告诉 Claude:
Update my LinkedIn cookies: li_at is "new_value" and jsessionid is "new_value"Claude 将调用 update_cookies — 无需重启容器。
开发
# Run with live source reloading
docker compose up
# Inspect MCP tools without Claude Desktop
npx @modelcontextprotocol/inspector docker run --rm -i --env-file .env linkedin-mcp项目结构
linkedin-mcp/
├── src/
│ ├── server.py # MCP server — tool definitions and handlers
│ ├── scraper.py # LinkedIn Voyager API calls (httpx)
│ ├── models.py # Pydantic models for Job data
│ └── __init__.py
├── Dockerfile
├── docker-compose.yml
├── requirements.txt
├── .env.example
└── .gitignoreTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A hosted LinkedIn MCP server for your own account. Paste one address into Claude, ChatGPT, Cursor or n8n to read your inbox, send messages and invitations, and search people. Free to start. Not made by LinkedIn.
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
Hosted LinkedIn MCP server on your own account: 35 tools for search, profiles, inbox, posts, pages.
Public MCP server for discovering open jobs. Search, filter, and get application links.
Related MCP Servers
- AlicenseAqualityCmaintenanceSelf-hosted, ban-safe MCP server for LinkedIn that provides 22 tools for profiles, search, jobs, posts, connections, and messages. Integrates with any MCP-compatible client like Claude Desktop.581MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that finds recent job postings based on your LinkedIn profile, scores each against your resume, and logs the results — all without logging into or scraping LinkedIn.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI assistants to search LinkedIn for job posts, save them locally, and manage them via a React dashboard.MIT
- AlicenseAqualityDmaintenanceAn MCP server that lets AI assistants like Claude read LinkedIn data through your own logged-in browser session. Access profiles and companies, search for jobs, or get job details.19Apache 2.0