Job Search MCP
A configuration-driven MCP server for searching and extracting job listings from pharmaceutical company career sites, enabling AI assistants to find detailed job information across multiple employers.
README
Job Search MCP
A configuration-driven Model Context Protocol (MCP) server for searching jobs directly from company career websites.
Allows AI assistants (Claude, ChatGPT) to search and extract job listings from 5 pharmaceutical companies with extensible architecture for unlimited company additions.
Current Coverage: Amgen, Bayer, GSK, Novartis, Pfizer
Expandable to: 250+ companies (healthcare, tech, finance sectors)
Features
- ✅ MCP-compatible job search tool for AI assistants
- ✅ Configuration-driven company support (JSON-based, no code changes needed)
- ✅ Extract detailed job information: title, description, requirements, expiry date, apply links
- ✅ Intelligent error tracking: classify 404s, timeouts, network errors, parse errors
- ✅ Generate CSV reports for batch processing
- ✅ Zero external parsing dependencies (pure regex-based extraction)
- ✅ TypeScript strict mode with full type safety
- ✅ Company-specific HTML parsers (Workday, Eightfold AI, Drupal platforms)
- ✅ Optional web demo at
/demofor manual job search - ✅ Comprehensive test suite (4 professional tests)
Technology Stack
- Protocol: Model Context Protocol (MCP) SDK (TypeScript)
- Runtime: Node.js v18+ (LTS recommended: v18, v20, v22)
- Language: TypeScript 5.3+ (strict mode)
- Parsing: Regex-based HTML extraction (no Puppeteer, jsdom, or Cheerio)
- Build: TypeScript Compiler (tsc)
- Optional Web UI: React + Next.js + Tailwind CSS (for manual searching)
- Testing: Native Node.js (no jest/mocha required)
Quick Start
As an MCP Server (For AI Integration)
- Install & Build:
npm install
npm run build
- Start the MCP Server:
npm start
# Server runs on stdio (ready for Claude Desktop, Cursor, or other MCP clients)
- Configure in Claude Desktop (
~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"job-search": {
"command": "node",
"args": ["path/to/dist/server.js"]
}
}
}
- Use in Claude:
User: "Find me senior manager jobs at Amgen and Pfizer"
Claude: (uses MCP search tool)
Claude: "I found 12 senior manager positions with details..."
As a Local CLI Tool
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run job search tests
npm run test
node dist/test/test-manager-jobs.js
Optional: Web Demo for Manual Browsing
Deploy the included React demo to Vercel (optional):
# Deploy demo at https://[your-app].vercel.app/
vercel deploy
Project Architecture
As MCP Server (Primary)
Claude / AI Assistant
↓
MCP Client Protocol (stdio)
↓
MCP Server (src/server.ts)
↓
Search Tool Handler
↓
┌──────────────────────────────────────┐
│ SearchExecutor (src/search-executor.ts)
│ - Orchestrates job searches
│ - Fetches from career site URLs
│ - Parses HTML for job listings
└──────────────────────────────────────┘
↓
┌──────────┬──────────┬──────────┬──────────┬──────────┐
│ │ │ │ │ │
Amgen Bayer GSK Novartis Pfizer
│ │ │ │ │
└──────────┴──────────┴──────────┴──────────┴──────────┘
↓
ExtractorRegistry (src/extractors/)
- 5 Company-specific parsers
- Extract: jobTitle, description, requirements, applyLink
- Track errors with classification
↓
Return JSON to AI Assistant
Optional: Web Demo
User → Web Browser
↓
React Component (app/demo/page.tsx)
↓
Next.js API Route (app/api/search-jobs/route.ts)
↓
SearchExecutor (same as MCP uses)
↓
Results + CSV reports
Configuration
src/config.json is the source of truth for the companies that the project supports.
Current: 5 companies (Amgen, Bayer, GSK, Novartis, Pfizer)
Expandable: Add unlimited companies via JSON configuration (no code changes needed)
Example:
{
"projectname": "Job Search MCP",
"sites": [
{
"name": "Amgen",
"search_url": "https://amgen.wd1.myworkdayjobs.com/Careers?q={SEARCH_TERM}"
},
{
"name": "Bayer",
"search_url": "https://bayer.eightfold.ai/careers?query={SEARCH_TERM}"
}
]
}
Adding New Companies
To add a new company:
- Create config entry: Add to
src/config.jsonwith company name and search URL - Create site definition: Add
sites/company-name.jsonwith search parameters - Create extractor: Add
src/extractors/company-name.tswith HTML parsing rules (only if using new platform) - Register extractor: Add to
src/extractors/index.ts
No rebuild needed - configuration is loaded at runtime.
Company Platform Support
| Platform | Companies | File |
|---|---|---|
| Workday | Amgen, Pfizer, GSK | src/extractors/amgen.ts, etc. |
| Eightfold AI | Bayer | src/extractors/bayer.ts |
| Drupal | Novartis | src/extractors/novartis.ts |
Extensibility: Adding 50+ more companies only requires JSON config + reusable platform extractors "name": "Pfizer", "search_url": "..." } ] }
Only the company name and a usable search URL need to be supplied when adding a new company.
## Site Definitions
Each company is represented by a separate file under `sites/`.
For example:
```text
sites/amgen.json
The structure must follow test/sample.json.
A site definition contains:
- company name
- career URL
- search URL
- supported search parameters
- parameter labels
- parameter types
- available parameter values
The parameter structure is intentionally an array rather than fixed JSON keys because different career websites expose different search parameters.
For example, one site may expose:
location
country
jobType
while another may expose:
location
timeType
LocationCountry
jobFamilyGroup
workerSubType
The MCP must not assume that every company supports the same parameters.
Job Extractors
The project includes site-specific job extractors that parse individual job posting URLs and extract detailed information.
Extracted Data
Each extractor retrieves:
- Job Title - Position name
- Job Description - Full job description/responsibilities (excludes headers/footers)
- Eligibility - Requirements, qualifications, and skills
- Expiry Date - Application closing date (YYYY-MM-DD format, blank if not available)
- Apply Link - Direct URL to apply (may differ from job posting URL)
Available Extractors
src/extractors/
├── types.ts # JobExtractor interface & types
├── amgen.ts # Amgen (Workday-based)
├── pfizer.ts # Pfizer (Workday-based)
├── bayer.ts # Bayer (Eightfold AI)
├── gsk.ts # GSK (Workday-based)
├── novartis.ts # Novartis (Drupal)
└── index.ts # ExtractorRegistry
Usage Example
import { ExtractorRegistry } from './src/extractors/index.js';
const registry = new ExtractorRegistry();
const amgenExtractor = registry.getExtractor('amgen');
const result = await amgenExtractor?.extract(
'https://amgen.wd1.myworkdayjobs.com/job/India---Hyderabad/Assoc-Director---Data-Product-Mgmt_R-219150'
);
if (result?.success && result.data) {
console.log(result.data.jobTitle);
console.log(result.data.jobDescription);
console.log(result.data.eligibility);
}
Testing
The project includes a comprehensive test suite for validating search and extraction functionality.
Test Suite Overview
All tests are self-contained TypeScript files that can be run independently:
npm run build
node dist/test/[test-name].js
Available Tests
1. test-config.ts - Configuration Loading Test
Tests that company configurations load correctly from src/config.json.
node dist/test/test-config.js
Purpose: Validates configuration structure and company discovery Output: Lists available companies and their search URLs
2. test-search.ts - Job Search Test
Tests the search functionality across all companies.
node dist/test/test-search.js
Purpose: Verifies that searches return valid job URLs Output: Search results for "Manager" jobs from each company Note: Requires internet connectivity to actual career sites
3. test-extractors.ts - Job Extraction Test
Tests that job detail extraction works for each company's job URLs.
node dist/test/test-extractors.js
Purpose: Validates job title, description, and eligibility extraction Output: Extraction success rate and field details Note: Requires real job URLs from test-search.ts output
4. test-manager-jobs.ts - End-to-End Integration Test
Complete pipeline test: searches for jobs → extracts details → generates reports
node dist/test/test-manager-jobs.js
Purpose: Full integration test with error tracking and CSV report generation Output:
test/manager-jobs-success.csv- Successfully extracted job datatest/manager-jobs-errors.csv- Extraction errors (404s, timeouts, etc.)- Console summary showing success rate and error breakdown
Running All Tests
npm run build
node dist/test/test-config.js
node dist/test/test-search.js
node dist/test/test-extractors.js
node dist/test/test-manager-jobs.js
Test Output Files
Generated CSV reports are stored in the test/ folder:
manager-jobs-success.csv- Successful job extractionsmanager-jobs-errors.csv- Failed extraction attempts with error codes- Sample HTML files for debugging
These files are generated during test runs and can be safely deleted. They are in .gitignore.
test/sample.json
test/sample.json defines the expected structure for individual company files.
It is a schema-by-example/template rather than a company registry.
The current example uses parameters such as location, timeType, LocationCountry, jobFamilyGroup, and workerSubType.
BUILD.md
BUILD.md contains instructions for the AI/development process that builds the MCP from the company configurations.
The build process should:
- Read
src/config.json. - Process every company listed in
sites. - Visit/analyze the supplied search URL.
- Determine the company's actual career/search structure.
- Discover the available search parameters and their values.
- Generate or update the corresponding
sites/<company>.json. - Ensure the generated file follows the structure defined by
test/sample.json. - Build/update the common MCP implementation.
- Validate that all configured sites can be searched.
UPDATE.md
See ai/UPDATE.md for instructions for rebuilding the project when a new release is created.
When src/config.json changes, the AI must rebuild all company definitions, not only newly added companies.
This is intentional.
Existing career sites can change their:
- search URLs
- query parameters
- filter names
- filter values
- career-site structure
- ATS implementation
Therefore, every release should re-check existing sites/*.json files against the current live career sites.
src/config.json updated
│
▼
Rebuild ALL sites
│
├── New company → create site JSON
│
└── Existing company → re-analyze and update
│
▼
Rebuild common MCP
│
▼
Validate
Project Structure
JobSearchMCP/
├── src/ # Source code & configs
│ ├── server.ts # MCP server entry point
│ ├── search-executor.ts # Search execution & parsing
│ ├── config-loader.ts # Configuration loader
│ ├── types.ts # TypeScript types
│ ├── config.json # Company registry
│ ├── site_configurations.json
│ └── site_analysis.json
├── sites/ # Company-specific configs
│ ├── amgen.json
│ ├── pfizer.json
│ ├── novartis.json
│ ├── bayer.json
│ └── gsk.json
├── test/ # Tests & test data
│ ├── test-*.js # Test scripts
│ ├── sample.json # Configuration template
│ └── *.html # Sample HTML files
├── ai/ # AI development notes (Gitignored)
│ ├── AI.md
│ └── UPDATE.md
├── reports/ # Documentation
│ ├── IMPLEMENTATION.md
│ ├── ANALYSIS_GUIDE.md
│ ├── MCP_USAGE.md
│ └── MIGRATION.md
├── dist/ # Compiled JavaScript
├── package.json # Dependencies & scripts
├── tsconfig.json # TypeScript config
└── README.md # This file
Technology
Runtime: Node.js Language: TypeScript MCP SDK: Official Model Context Protocol TypeScript SDK Configuration: JSON
Design Principle
The project separates site-specific knowledge from common MCP logic.
sites/*.json
= How a particular company career site works
MCP implementation
= How to search any configured company
AI
= Understand the user's request and select/use the appropriate
company search configuration
The MCP should not contain hard-coded assumptions about parameters such as location, remote, full_time, or job_type.
A parameter only exists for a company if that company's career site actually supports it or exposes the information required by the configuration.
Goal
The goal is to create a reusable job-search MCP where adding companies is primarily a matter of adding their search URLs to config.json, allowing the AI build process to discover and maintain the site-specific configurations automatically.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。