MCP Job Search
Helps users find suitable LinkedIn job opportunities by automatically scraping listings, analyzing compatibility with user profiles using AI, and sending custom match reports via email.
README
MCP Job Search Node
This project implements a LinkedIn job scraper with persistent job indexing, deep scanning, and filtering capabilities. It scrapes LinkedIn job listings, performs detailed analysis of each job against a candidate profile using OpenAI, stores matches in a persistent job index, and exposes MCP-compatible HTTP endpoints.
Setup
-
Copy
.env.exampleto.envand fill in your credentials:LINKEDIN_EMAIL=your-linkedin-email@example.com LINKEDIN_PASSWORD=your-linkedin-password OPENAI_API_KEY=your-openai-api-key OPENAI_MODEL=gpt-4o DEEP_SCAN_CONCURRENCY=2 SMTP_HOST=smtp.example.com SMTP_PORT=587 SMTP_USER=your-smtp-username SMTP_PASS=your-smtp-password DIGEST_FROM=jobs@example.com DIGEST_TO=you@example.com TIMEZONE=Australia/Sydney -
Run
./setup.shto install npm packages and Playwright's browser dependencies. -
Create a
plan.jsonfile (or use the/planendpoint) describing your profile, search terms and deep scan criteria. -
Start the server with
npm start.
Core Features
- Plan Driven Search: Define your profile, search terms and scan prompt in
plan.jsonor via the/planAPI.
Persistent Job Index
- Storage: All scraped jobs are stored in a persistent JSON file (
data/job-index.json). - Deduplication: Jobs are uniquely identified by LinkedIn job ID to prevent duplicate scanning.
- Profile Change Detection: System detects when your profile changes and triggers rescans.
- Metadata: Each job entry includes scan status, match score, and detailed information.
Job Index Structure
Each job in data/job-index.json keeps the basic listing data along with the
results of the most recent deep scan:
{
"id": "123456",
"title": "Full Stack Engineer",
"company": "ExampleCo",
"link": "https://linkedin.com/jobs/view/123456",
"posted": "2025-06-09",
"scanned": true,
"scanDate": "2025-07-05T12:00:00+10:00",
"matchScore": 0.85,
"matchReason": "Good skills overlap with your profile",
"description": "Full job description...",
"requirements": ["Skill 1", "Skill 2"],
"location": "Sydney, Australia",
"salary": "$100k - $120k"
}
After each deep scan the matchScore and matchReason are updated so you can
see why a job was scored the way it was. When a job is rescanned (for example
after updating your profile) you may choose to store multiple scores in an array
so previous results are preserved:
{
"scanHistory": [
{ "date": "2025-07-05T12:00:00+10:00", "score": 0.85,
"summary": "Good skills overlap with your profile" },
{ "date": "2025-07-10T12:00:00+10:00", "score": 0.88,
"summary": "Profile updated with React experience" }
]
}
Deep Scanning
- Detailed Extraction: Visits each job posting to extract comprehensive details (description, requirements, salary).
- AI Analysis: Uses OpenAI to analyze job details against your profile.
- Match Scoring: Generates a match score (0-1) and explanation for each job.
- Concurrency Control: Configurable number of concurrent scans to balance speed and resource usage.
API Endpoints
Plan Management
GET /plan– Retrieve the current plan.POST /plan– Body{ "description": "..." }to generate a plan from text using OpenAI.PUT /plan– Update fields of the existing plan (profile,searchTerms,scanPrompt).
Job Scanning and Retrieval
-
GET /scan– Triggers a LinkedIn scrape and deep scan without sending an email digest.- What it does: Scrapes LinkedIn job listings, adds them to the job index, and performs deep scanning on new jobs.
- When to use: When you want to update your job index without sending an email.
-
POST /rescan– Forces a deep rescan of all jobs in the index.- What it does: Re-evaluates all jobs against your current profile, even previously scanned ones.
- When to use: After updating your profile or when you want fresh match scores.
-
GET /jobs– Returns all jobs from the index with powerful filtering options:- Parameters:
minScore=0.7– Only return jobs with match score >= specified value (0-1)scanned=true|false– Filter by scan status (completed or pending scan)limit=10– Limit the number of results returned
- When to use: For browsing or filtering the job index in custom ways.
- Parameters:
-
GET /job/:id– Returns detailed information for a specific job by ID.- What it does: Retrieves complete job details including description, requirements, match score, etc.
- When to use: When you need to examine a specific job in detail.
Email Digests
-
GET /latest_matches– Returns job matches with score >= 0.7 from the job index.- What it does: Retrieves jobs that match your profile well (70% match or better).
- When to use: To quickly check your best matches without scanning.
-
POST /send_digest– Body{ "email": "you@example.com" }. Scrapes, deep scans, and emails the matches.- What it does: Complete workflow - scrapes LinkedIn, updates index, deep scans jobs, and sends email digest.
- When to use: When you want to receive an email with your latest job matches.
Workflow Examples
Initial Setup Workflow
- Configure your
.envfile with LinkedIn credentials - Create your
plan.json(or POST to/plan) with profile and search terms - Start the server:
npm start - Trigger initial scan:
npm run test:scan - Wait for deep scanning to complete
- View matched jobs:
npm run test:jobs:matched
Daily Usage Workflow
- Server automatically runs daily scan at 07:00 AEST and emails digest
- Alternatively, manually trigger scan:
npm run test:scan - Check latest matches:
npm run test:latest - View specific job details:
ID=job_id npm run test:job
Profile Update Workflow
- Update your
plan.json(or usePUT /plan) with new skills or search terms - Force rescan of all jobs:
npm run test:rescan - View updated matches:
npm run test:jobs:matched
Testing Commands
The project includes comprehensive test commands for both real and mock data scenarios:
Unit Tests
# Run all unit tests (using test fixtures, not live scraping)
npm run test:unit
Endpoint Testing with Real Data
# Start the server first
npm start
# Trigger LinkedIn scraping and deep scanning (no email)
npm run test:scan
# Force deep rescan of all jobs in the index
npm run test:rescan
# Get all jobs from the index (formatted JSON output)
npm run test:jobs:all
# Get jobs with match score >= 0.7
npm run test:jobs:matched
# Get unscanned jobs only
npm run test:jobs:unscanned
# Get limited number of jobs (5)
npm run test:jobs:limit
# Get details for a specific job (set ID env var first)
# Example: ID=4247412997 npm run test:job
npm run test:job
# Get latest matches (score >= 0.7)
npm run test:latest
# Trigger full workflow and send digest email
# (update email in package.json first)
npm run test:digest
Endpoint Testing with Mock Data
# Test scan endpoint with mock data
npm run test:scan:mock
# Test rescan endpoint with mock data
npm run test:rescan:mock
# Test digest email with mock data
npm run test:digest:mock
Configuration
The application uses a configuration system that combines settings from:
- Default values in code
config.jsonfile in the project root- Environment variables (which take precedence)
Configuration File
You can edit the config.json file to set persistent configuration options:
{
"mockMode": false,
"openaiModel": "gpt-4o",
"deepScanConcurrency": 2,
"timezone": "Australia/Sydney",
"jobIndexPath": "data/job-index.json"
}
Key Configuration Options
- mockMode: When set to
true, the system uses mock data instead of real scraping/scanning - openaiModel: The OpenAI model to use for job matching
- deepScanConcurrency: Number of concurrent deep scans to perform
- timezone: Timezone for cron scheduling
- jobIndexPath: Path to the job index file
How Mock Data Works
Mock data testing uses pre-defined fixtures instead of live LinkedIn scraping:
-
Mock LinkedIn Search Results:
test/fixtures/linkedin-search-results.json- Contains sample job listings as if scraped from LinkedIn
- Used by the
/scanendpoint when mock mode is enabled
-
Mock Job Details:
test/fixtures/linkedin-job-details.json- Contains detailed job information as if deep-scanned
- Used by the
/rescanendpoint when mock mode is enabled
To enable mock mode, you can either:
- Set
mockMode: trueinconfig.json(persistent setting) - Set the
MOCK_DATA=trueenvironment variable (temporary override) - Use the test commands with
:mocksuffix which set the environment variable automatically
Automated Tasks
The daily cron task runs at 07:00 AEST and automatically:
- Scrapes LinkedIn for new job listings
- Updates the job index with new jobs
- Deep scans any new or unscanned jobs
- Sends an email digest to the configured recipient
Data Storage
- Job Index:
data/job-index.json- Persistent storage of all jobs with metadata. See Job Index Structure for the fields stored with each job. The file also recordslastScanDateand aprofileHashso the system can detect when a rescan is needed. - Daily Matches:
data/YYYY-MM-DD.json- Daily snapshots of matched jobs (legacy format) - Screenshots:
screenshots/- Job posting screenshots captured during deep scanning (for debugging) - Plan:
plan.json- Defines profile text, search terms and deep scan prompt.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。