Skip to main content
Glama
careers-at-gov-mcp

careers-at-gov-mcp

by emansih

careers-at-gov-mcp

A TypeScript Model Context Protocol server (stdio transport) for the Singapore public-service job board Careers@Gov. It lets an MCP client search, filter and read public-service job postings.

Tools

All tools are read-only and idempotent, and return both a readable text summary and structuredContent (with an outputSchema).

Tool

What it does

search_jobs

Search and filter jobs. Input: query?, employmentTypes? (Full-time, Traineeship, Internship, Contract, Others), experience? (0 - 1 year, 1 - 3 years, 4 - 6 years, 7 - 9 years, > 10 years), organisations?, jobFunctions?, sort? (relevance, latest, closing date), page? (20 jobs per page). Returns total, page, totalPages, pageSize, jobs[] and the equivalent websiteUrl.

get_job

Full details of one job, by url (full URL or /jobs/... path) or source + id: title, organisation, employment type, posted/closing info, description as plain text, apply link, organisation blurb.

list_filter_options

Valid filter values: employment types (with the raw job types each covers), experience levels, sort options, and the live organisations and job functions with current job counts.

Organisation and job-function names are matched case-insensitively against the live lists; unknown values return an error with close matches.

How it works

The site is not server-filtered: the home page embeds every current job (about 2,200) in its Next.js RSC payload (self.__next_f), and filtering, sorting and pagination run in the browser. This server fetches that page once, parses the embedded jobs, agencies and departments arrays, caches them in memory for 10 minutes (concurrent requests share one fetch), and applies the website's filter, sort and pagination rules locally. get_job fetches one detail page and reads its RSC jobDetail object (falling back to the JobPosting JSON-LD block).

Requests use a Mozilla/5.0 (compatible; careers-at-gov-mcp/0.1; +https://github.com/emansih/) user agent (the URL is the maintainer contact): the site's firewall returns 403 on detail pages for user agents that don't start with Mozilla/5.0.

Search ranking caveat

The website sends the search query to Algolia from the browser, which this server does not call. Free-text search is implemented locally: the query is split into words, every word must prefix-match (e.g. analys matches analyst) the title, organisation, job function or one-line summary, and title matches rank highest (exact title, then phrase in title, then all words in title, then words spread across fields). Ranking approximates the website's and result counts will differ from it when a query is used. Filter-only searches (no query) match the website exactly. Salary ranges are not published in the listing data at the time of writing, so salaryRange is usually absent.

Related MCP server: Arbeitnow Scout MCP

Install

Published on npm as careers-at-gov-mcp. Requires Node.js 20+. No API key needed.

npx -y careers-at-gov-mcp          # run on demand
npm install -g careers-at-gov-mcp  # or install globally

Build from source

pnpm install
pnpm build

Run

pnpm start          # run the built server (stdio)
pnpm dev            # run from source with tsx (watch mode)
pnpm inspect        # open the MCP Inspector against build/index.js

The server logs to stderr only; stdout carries the JSON-RPC stream. Requires Node 20 or newer (global fetch).

Add to Claude Code

claude mcp add careers-at-gov -- npx -y careers-at-gov-mcp

On Windows (native, not WSL), wrap it with cmd /c: claude mcp add careers-at-gov -- cmd /c npx -y careers-at-gov-mcp.

Add to Claude Desktop

In claude_desktop_config.json:

{
  "mcpServers": {
    "careers-at-gov": {
      "command": "npx",
      "args": ["-y", "careers-at-gov-mcp"]
    }
  }
}

On Windows, use "command": "cmd" and "args": ["/c", "npx", "-y", "careers-at-gov-mcp"].

Layout

  • src/careers/ - fetching, RSC parsing, dataset cache, filters, local search, HTML-to-text.

  • src/tools/ - one file per tool, registered in src/tools/index.ts.

Adding a tool

Create src/tools/<name>.ts using defineTool(...) (read-only, idempotent, open-world annotations by default) and add it to the list in src/tools/index.ts.

Be polite to the site: it is a government service, so keep request rates low (the in-memory cache means one listing fetch per 10 minutes).

Available Tools

3 tools
get_jobGet job detailsA
Read-onlyIdempotent

Fetch the full details of one Careers@Gov job: title, organisation, employment type, posting/closing info, description (as readable text), apply link and organisation blurb. Give either url (full URL or /jobs/... path) or source + id exactly as returned by search_jobs. Listing fields (closing date, summary, salary) are merged in from the cached listing when available.

Inputs: id, url, source. Returns: id, url, title, source, +16 more

list_filter_optionsList filter optionsA
Read-onlyIdempotent

List the valid values for search_jobs filters: employment types (with the raw job types each covers), experience levels, sort options, and the live organisations and job functions with the number of current jobs in each.

Inputs: no named parameters. Returns: pageSize, totalJobs, sortOptions, jobFunctions, +3 more

search_jobsSearch jobsA
Read-onlyIdempotent

Search and filter Singapore public-service jobs on Careers@Gov (jobs.careers.gov.sg). Filters (employment type, experience, organisation, job function) replicate the website exactly and AND together; values within one filter are OR-ed. Organisation and job-function names are matched case-insensitively against the live list (see list_filter_options). Pages hold 20 jobs. NOTE: free-text search runs locally here (the website uses Algolia from the browser): every query word must match (prefix match) the title, organisation, job function or summary, with title matches ranked highest. Ranking approximates the website's and result counts will differ from it when a query is used. Default sort is relevance when a query is given, else latest. Use get_job for full details.

Inputs: page, sort, query, experience, +3 more. Returns: jobs, page, total, pageSize, +2 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly separate role: search_jobs for querying listings, get_job for fetching a single job's full record, and list_filter_options for discovering valid filter values. Descriptions explicitly cross-reference each other (search_jobs points to get_job and list_filter_options), leaving no realistic chance of misselection.

    Naming Consistency5/5

    All three names follow the same verb_noun snake_case pattern (search_jobs, get_job, list_filter_options), with verbs that accurately signal the operation type (search vs. get vs. list).

    Tool Count4/5

    Three tools is minimal but well-matched to a read-only job-browsing surface: search, retrieve detail, and enumerate filter metadata. It sits at the thin end of the ideal range, though no obvious extra tool is required.

    Completeness4/5

    The search/detail/metadata triad covers the core lifecycle for a read-only job board, including the full filter vocabulary needed to construct valid queries. Minor gaps exist—no dedicated pagination or result-iteration tool is exposed, and pagination behaviour is only implied in the search description.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables users to search job postings with keyword, location, remote-only, date, and limit filters, and retrieve individual job details via MCP tools.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP hosts to search job listings by keyword, location, remote preference, and posting date, and to retrieve individual job details through the search_jobs and get_job tools.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Exposes the nofluffjobs.com public job board as two standard MCP tools, letting any MCP host search listings by keyword, location, posting date, and remote preference, then fetch full details for a chosen posting. It is read-only, requires no Zhencheng runtime, and returns normalized fields such as title, company, apply URL, and snippet.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables any MCP host to search and fetch public job-board listings through standardized search_jobs and get_job tools, with optional location, remote, date, and result-limit filters. It provides read-only access with polite rate limiting.
      MIT