ai-jobs-agent

ai-jobs-agent

ai-jobs-agent MCP server: Exposes an autonomous job-detection agent's data to MCP clients, offering tools to search jobs, retrieve job details, view detection-latency statistics, and trigger on-demand sweeps

Category
访问服务器

README

ai-jobs-agent

An autonomous agent that catches job postings at the source, minutes after they go live, and classifies their UK visa sponsorship stance before they ever reach a job board.

Most aggregator sites index postings hours or days after companies publish them. This agent polls the applicant tracking systems directly (Greenhouse, Lever, Ashby, Workable, and SmartRecruiters public APIs) every 30 minutes, so the headline metric is honest and measured: median detection latency, computed as first_seen_at - posted_at for every posting detected after tracking began. Jobs that disappear from their board are marked closed on the next sweep, so "open roles" stays true.

v1 is deliberately scoped to detect-classify-log. CV tailoring and notifications come later.

CI Poll sweep

Browse the live data: FirstSeen, a free explorer over everything the agent finds, with sponsorship tiers, a licensed-UK-sponsor badge (matched against the Home Office register), and region filters. Served from docs/ on this repo via GitHub Pages.

Architecture

flowchart LR
    subgraph Schedule["GitHub Actions, every 30 min"]
        direction LR
        S[poll.yml] --> G
    end

    subgraph G["LangGraph state machine"]
        direction LR
        LC[load_companies] --> F[fetch\n30 ATS boards]
        F --> SN[store_new\ndiff vs known jobs]
        SN -->|new jobs| CL[classify\nrules, then LLM]
        SN -->|nothing new| FIN[finalize]
        CL --> FIN
    end

    F -.-> GH[(Greenhouse API)]
    F -.-> LV[(Lever API)]
    F -.-> AS[(Ashby API)]
    CL -.->|grey zone only| LLM[Claude Haiku]
    LLM -.-> LF[Langfuse traces]
    FIN --> DATA[(data branch\njobs.jsonl + sweeps.jsonl)]

    MCP[MCP server] --> DATA
    CD[Claude Desktop / any MCP client] --> MCP

The sponsorship classifier

Three tiers, applied in a strict order that keeps LLM spend proportional to genuine ambiguity, not job volume:

Tier Meaning Decided by
sponsors_explicit posting explicitly offers sponsorship regex rules
no_sponsorship posting explicitly refuses, or demands existing right to work regex rules (checked first: refusals often contain positive-sounding fragments)
silent_possible no stance stated; treated as a partial positive rules (no mention at all) or LLM (mentions visas ambiguously)

Only the grey zone reaches the LLM (Claude Haiku), which sees a windowed excerpt around the sponsorship mention rather than the whole description. Every LLM call is traced to Langfuse with model, token usage, and latency. Without an ANTHROPIC_API_KEY, grey-zone jobs are marked pending and everything else still works.

The latency metric

  • posted_at comes from the ATS itself (Greenhouse first_published, Lever createdAt, Ashby publishedAt)
  • first_seen_at is stamped the moment a sweep first sees the posting
  • The very first sweep is a baseline: those jobs are flagged is_backfill and excluded, otherwise the metric would be polluted by postings that predate tracking
  • Median and p90 are computed over live-tracked jobs only; every sweep publishes them to its GitHub Actions run summary

With a 30-minute cron the theoretical median is ~15 minutes; the observed number appears in the Actions run summaries and via the MCP job_stats tool.

State without a server

Scheduled runs commit their findings to the data branch as append-only JSONL (jobs.jsonl, sweeps.jsonl), which git stores as tiny line diffs. Each run rehydrates a working SQLite database from the JSONL, sweeps, and appends what it found. The run history doubles as a public, timestamped audit log of every detection.

MCP server

Exposes the agent to Claude Desktop or any MCP client with four tools: job_stats, search_jobs, get_job, run_sweep.

// Claude Desktop config
{
  "mcpServers": {
    "ai-jobs-agent": {
      "command": "python",
      "args": ["-m", "jobs_agent.mcp_server"],
      "cwd": "/path/to/ai-jobs-agent"
    }
  }
}

Then ask things like "any new ML roles that sponsor visas since yesterday?" or "what's the median detection latency?"

Quickstart

pip install -r requirements.txt
python -m jobs_agent.cli sweep          # one detect-classify-log cycle
python -m jobs_agent.cli stats          # metrics summary
python -m jobs_agent.cli search --query "machine learning" --tier sponsors_explicit

Docker:

docker build -t ai-jobs-agent .
docker run --rm -e ANTHROPIC_API_KEY ai-jobs-agent

Deployment (GitHub Actions)

poll.yml runs every 30 minutes. Set repo secrets to enable the full pipeline:

Secret Purpose
ANTHROPIC_API_KEY grey-zone LLM classification
LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY tracing of every LLM call

Without secrets the agent still detects, rules-classifies, and logs latency.

The company registry

jobs_agent/companies.yaml: 88 boards across Greenhouse (56), Lever (7), Ashby (21), Workable (2), and SmartRecruiters (2), every slug verified live against its ATS API; 68 are on the Home Office register of licensed Skilled Worker sponsors. Failing boards are skipped and reported per sweep, so pruning is data-driven. Edit the YAML to change coverage; nothing else needs touching.

Two honest data notes: Workable reports publication dates without a time component, so its jobs are excluded from the minutes-level latency metric rather than distorting it; and SmartRecruiters descriptions are fetched only for postings released in the last 21 days (new postings always qualify, so classification quality is unaffected).

CI

Every push: ruff, pytest (offline, fixture-based), Docker build, then a real integration smoke test: the container polls two live ATS boards and must see jobs with zero board failures. Images publish to GHCR.

Repo layout

jobs_agent/
  companies.yaml     the shortlist (verified slugs)
  ats/               greenhouse.py, lever.py, ashby.py pollers
  models.py          Job, Tier, Classification, SweepReport
  classify.py        rules + windowed LLM classifier
  tracing.py         Langfuse integration (no-op without keys)
  graph.py           LangGraph sweep state machine
  store.py           SQLite + latency metric
  persistence.py     append-only JSONL state for the data branch
  mcp_server.py      FastMCP server (4 tools)
  cli.py             sweep / stats / search
tests/               17 tests: parsers, policy, store, graph, MCP
.github/workflows/   ci.yml (lint/test/build/live smoke), poll.yml (cron)

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选