Skip to main content
Glama
job-radar-mcp

job-radar-mcp

by hmikita
README.md
# job-radar-mcp

A small, read-only MCP server that lets an AI agent search Estonian job ads on cvkeskus.ee and score them against a profile.

**Interactive demo (offline sandbox):** https://hmikita.github.io/job-radar-mcp/

## Tools
| Tool | What it does |
|---|---|
| `search_jobs(category, keywords?, max_pages?)` | Lists ads in a category (`it`, `assisteerimine`, `muuk`, `logistika`), optional keyword filter |
| `job_details(url)` | Title, company, dates, salary, remote option, duty and requirement bullets (from the page's schema.org JobPosting data) |
| `match_profile(url, profile_keywords)` | Score 0–100 with hits and misses |
| `rank_jobs(category, profile_keywords, keywords?, max_pages?, top_n?)` | Searches, scores every found ad and returns the best `top_n` (default 5, max 25) as `{matches, scanned, skipped}` |

`rank_jobs` reads each found ad, at most one request per second. With the default `max_pages=2` that is up to about 50 ads, so around a minute or more; `max_pages` is capped at 4. Use `keywords` to narrow the search. Ads that cannot be read are listed in `skipped`.

**Matching:** case-insensitive, against the ad title and bullet points. Keywords with punctuation (`C#`, `.NET`, `Node.js`, `CI/CD`) and keywords of up to 3 characters must stand alone (so `.NET` does not match inside `ASP.NET`). Longer words and phrases match as a prefix, so `automat` finds `automatiseerimine`.

**Remote detection:** `remote_possible` is a text heuristic. It is true when the ad's visible page text (the "other ads" block is cut off) contains `kaugtöö`, `kodukontor` or `remote`, or the URL contains `kodukontor`. It does not understand context ("remote support", "kaugtöö ei ole võimalik" also count), so check the ad itself.

## Safety by design
- **Host allowlist:** only `https://www.cvkeskus.ee` is fetched, and ad URLs from the agent must match a strict pattern. A redirect off the host (including a downgrade to `http`) is refused before any request is sent to its target.
- **Read-only:** GET only, no cookies, no login, no personal data sent. Tools carry `read_only_hint`.
- **Polite:** max 1 request/second, 15-minute in-memory cache (200 pages), 2 MB response cap.
- Guard failures come back to the agent as clean tool errors, not crashes.

## Install
Requires Python 3.12 or newer.
```bash
python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
```

## Claude Code
Opened in this folder, Claude Code finds the server through `.mcp.json` and asks you to approve it. That file uses the Linux/macOS path `.venv/bin/python`.

To use it from any folder, run this in the repository root:
```bash
claude mcp add --scope user job-radar -- "$PWD/.venv/bin/job-radar-mcp"
```
Check it with `claude mcp list`, or `/mcp` inside a session.

## Claude Desktop
Open Settings → Developer → Edit Config, add the server to `claude_desktop_config.json`, then restart Claude Desktop. Use an absolute path:
```json
{
  "mcpServers": {
    "job-radar": {
      "command": "/absolute/path/to/job-radar-mcp/.venv/bin/job-radar-mcp"
    }
  }
}
```
On Windows the command is `C:\\path\\to\\job-radar-mcp\\.venv\\Scripts\\job-radar-mcp.exe`.

Example prompt: *"Rank IT jobs on job-radar for Python, C# and CI/CD, and show the top 5."*

## Development
```bash
.venv/bin/pytest -q                  # offline tests (saved real page + simulated HTTP)
.venv/bin/python smoke_client.py     # live: starts the server over stdio and calls it like an agent
```
CI runs the offline tests on Python 3.12.

## License and disclaimer
The code is MIT licensed, see [LICENSE](LICENSE). This project is not affiliated with cvkeskus.ee. The page saved under `tests/fixtures/` is third-party content kept for parser tests and is not covered by the MIT license. Check the site's terms of use before using this tool.

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation4/5

search_jobs (list), job_details (single ad), match_profile (score one ad), and rank_jobs (composite search+score) each have a stated distinct job. rank_jobs overlaps conceptually with search_jobs + match_profile chained together, but its description makes the batch/best-N behavior clear enough that misselection is unlikely.

Naming Consistency4/5

Three tools follow a clean verb_noun pattern (search_jobs, match_profile, rank_jobs), and job_details is a minor noun-only deviation denoting a single-record read. The set reads consistently overall.

Tool Count5/5

Four tools is tight and well-scoped: one entry point, one record fetcher, one primitive scorer, and one convenience aggregator. Each earns its place without redundancy.

Completeness3/5

The search → details → score → rank pipeline covers the core job-hunting workflow, but there is no way to discover valid cvkeskus.ee category identifiers, which search_jobs and rank_jobs both require. There is also no batch detail retrieval outside rank_jobs, leaving a real onboarding gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues