loading…
Search for a command to run...
loading…
Enables AI assistants to search for jobs across multiple platforms (Indeed, LinkedIn, Glassdoor, etc.) using the JobSpy tool, with filtering and structured outp
Enables AI assistants to search for jobs across multiple platforms (Indeed, LinkedIn, Glassdoor, etc.) using the JobSpy tool, with filtering and structured output.
A Model Context Protocol (MCP) server that enables AI assistants like Claude to search for jobs across multiple job listing platforms using the JobSpy tool.
# Clone the repository
git clone https://github.com/borgius/jobspy-mcp-server.git
cd jobspy-mcp-server
# Install dependencies
npm install
# Make sure the JobSpy tool is properly set up
cd ../jobSpy
pip install -r requirements.txt
chmod +x run.sh
The server will automatically try to locate the JobSpy script in standard locations:
../jobSpy/run.sh (relative to the server directory)./run.sh (in the current directory)/app/run.sh (for Docker environments)You can configure the server using the following environment variables:
| Environment Variable | Description | Default |
|---|---|---|
JOBSPY_DOCKER_IMAGE |
Docker image to use for JobSpy | jobspy |
JOBSPY_ACCESS_TOKEN |
Access token for JobSpy API (if required) | none |
PORT |
Port for the MCP server | 9423 |
HOST |
Host for HTTP server | '0.0.0.0' |
ENABLE_SSE |
Enable Server-Sent Events transport | 0 |
You can set these configuration values in multiple ways:
export JOBSPY_DOCKER_IMAGE=jobspy
export JOBSPY_HOST='0.0.0.0'
export JOBSPY_PORT=9423
export ENABLE_SSE=1
Create a .env file in the root directory with your configuration:
JOBSPY_DOCKER_IMAGE=jobspy
JOBSPY_HOST='0.0.0.0'
JOBSPY_PORT=9423
ENABLE_SSE=1
npm start
Add the following to your Claude Desktop config file (typically at ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"jobspy": {
"command": "node",
"args": ["/path/to/jobspy-mcp-server/src/index.js"],
"env": {
"ENABLE_SSE": 0
}
}
}
}
The server exposes HTTP endpoints that allow web applications to interact with the JobSpy MCP server:
Connect for updates: GET /mcp/connect
Send requests: POST /mcp/request
Example JavaScript client for browser:
// Connect to SSE endpoint
const eventSource = new EventSource('http://localhost:9423/mcp/connect');
// Listen for updates
eventSource.onmessage = function(event) {
const data = JSON.parse(event.data);
console.log('Received update:', data);
// Handle progress updates
if (data.type === 'progress') {
updateProgressBar(data.progress);
}
};
// Send a search request
async function searchJobs() {
const response = await fetch('http://localhost:9423/mcp/request', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
tool: 'search_jobs',
params: {
search_term: 'software engineer',
location: 'San Francisco, CA',
site_names: 'indeed,linkedin'
}
})
});
return await response.json();
}
The server exposes the following endpoints:
GET /search
Query parameters:
site_names: Comma-separated list of job sites to searchsearch_term: Term to search forlocation: Job locationSearches for jobs across various job listing websites.
Parameters:
| Parameter | Type | Description | Default |
|---|---|---|---|
| site_names | string | Comma-separated list of job sites to search (indeed,linkedin,zip_recruiter,glassdoor,google,bayt,naukri) | "indeed" |
| search_term | string | Search term for jobs | "software engineer" |
| location | string | Location for job search | "San Francisco, CA" |
| google_search_term | string | Google specific search term | null |
| results_wanted | integer | Number of results wanted | 20 |
| hours_old | integer | How many hours old the jobs can be | 72 |
| country_indeed | string | Country for Indeed search | "USA" |
| linkedin_fetch_description | boolean | Whether to fetch LinkedIn job descriptions (slower) | false |
| format | string | Output format (json or csv) | "json" |
| output | string | Output filename without extension | "jobs" |
Example usage with Claude:
I need to find senior software engineer jobs in Boston posted in the last 24 hours on both LinkedIn and Indeed.
A Dockerfile is provided to containerize the MCP server:
# Build the Docker image
docker build -t jobspy-mcp-server .
# Run the container
docker run -p 9423:9423 jobspy-mcp-server
npm run dev
npm test
curl -X POST "http://localhost:9423/api" \
-H "Content-Type: application/json" \
-d '{
"method": "search_jobs",
"params": {
"search_term": "software engineer",
"location": "San Francisco, CA",
"site_names": "indeed,linkedin",
"results_wanted": 10,
"format": "json"
}
}'
MIT
Выполни в терминале:
claude mcp add jobspy-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.