mcp-career-tools
by rohitdv1999
README.md
# mcp-career-tools
A [Model Context Protocol](https://modelcontextprotocol.io) server that gives any MCP client job-search and resume tools: search postings, parse a resume, score a resume against a job with a breakdown you can read, and find the skills you are missing.
## Why
Most "resume matching" demos hide the scoring behind a model call. This one does not. Parsing, requirement extraction, salary parsing and scoring are plain deterministic code, so every answer is reproducible, testable and explainable. An MCP client can then do what it is good at, such as rewriting a resume or planning interview prep, on top of facts it can trust.
Highlights:
- **13 tools** with zod input and output schemas, plus resources and prompts.
- **Careful text rules.** "Visa sponsorship is not available" is reported as *not available*. A "$2,000 monthly stipend" is not a salary. "Operating for over 100 years" is not a 100-year experience requirement.
- **Read-only by default.** The two write tools refuse to run unless the server is started with `--allow-writes`.
- **No native build.** It uses the SQLite that ships with Node (`node:sqlite`), so `npm install` has nothing to compile.
- **Self-contained.** A fictional dataset of 60 jobs, 12 companies and 3 resumes is seeded on start. No network access, no accounts, no keys.
## How it fits together
```mermaid
flowchart LR
client["MCP client<br/>(desktop app, editor, CLI)"] -- "stdio or Streamable HTTP" --> server["mcp-career-tools<br/>MCP server"]
server --> tools["13 tools<br/>+ resources + prompts"]
tools --> logic["Deterministic logic<br/>resume parser, requirement extractor,<br/>salary parser, matcher"]
tools --> db[("SQLite<br/>jobs, companies, resumes,<br/>shortlist, applications")]
logic --> db
```
## Tools
| Tool | What it does | Access |
| --- | --- | --- |
| `search_jobs` | Keyword search with location, remote, seniority and `posted_within_days` filters; paginated | read |
| `get_job` | One job with full text, extracted requirements and parsed salary | read |
| `list_companies` | Companies with industry, size, HQ and open job count | read |
| `parse_resume` | Skills, years of experience, titles and seniority from Markdown or plain text | read |
| `match_resume_to_job` | 0-100 score from skills (55%), seniority (20%) and years (25%), with reasons and missing skills | read |
| `rank_jobs_for_resume` | Jobs ranked by match score, with the same filters as search | read |
| `skill_gap_report` | Missing skills across a set of jobs (or the best matches), most in-demand first | read |
| `extract_job_requirements` | Required vs nice-to-have skills, years, sponsorship, clearance and citizenship flags | read |
| `salary_range_from_text` | Pay ranges, hourly vs yearly (annualized), ignoring stipends and bonuses | read |
| `save_shortlist` | Add a job to a named shortlist with an optional note | **write** |
| `get_shortlist` | Read a shortlist | read |
| `track_application` | Move a job through `saved`, `applied`, `screening`, `interview`, `offer`, `accepted` (or end it with `rejected` / `withdrawn`) | **write** |
| `application_stats` | Counts per status, active total and stage-to-stage conversion | read |
Resources: `job://{id}` and `resume://{name}` (both Markdown).
Prompts: `tailor_resume_for_job` and `prepare_for_interview`, each taking `resume_name` and `job_id`.
### How the scoring works
```
score = 100 x (0.55 x skills + 0.20 x seniority + 0.25 x years)
```
- **skills**: 80% required-skill coverage plus 20% nice-to-have coverage.
- **seniority**: 1.0 on the same level, 0.9 one level above, 0.7 further above (overqualified), 0.5 one below, 0.15 two or more below.
- **years**: `min(1, resume years / required years)`. Resume years are computed from the merged date ranges in the experience section, so overlapping jobs are not counted twice.
Each response carries the three component values, the matched and missing skills and a sentence per component.
## Quick start
Requires Node.js 22.13 or newer.
```bash
npx mcp-career-tools # read-only, stdio
npx mcp-career-tools --allow-writes # enable the two write tools
```
From a clone:
```bash
npm ci
npm run build
node dist/index.js --help
```
| Flag | Meaning |
| --- | --- |
| `--allow-writes` | Enable `save_shortlist` and `track_application` |
| `--db <path>` | Keep data in a SQLite file. Default is in-memory, reseeded on every start |
| `--http` | Serve Streamable HTTP at `POST /mcp` instead of stdio |
| `--port <n>` / `--host <addr>` | HTTP bind address, default `127.0.0.1:3333` |
### Client configuration
Most MCP clients accept a JSON block like this (the file name and top-level key vary by client):
```json
{
"mcpServers": {
"career-tools": {
"command": "npx",
"args": ["-y", "mcp-career-tools", "--allow-writes", "--db", "/path/to/career.sqlite"]
}
}
}
```
Drop `--allow-writes` and `--db` for a read-only session. With writes enabled but no `--db`, saved data lives only as long as the process.
Try it by asking the client to *rank jobs for the jordan-ellis resume, then show the skill gap for the top five*.
## Development
```bash
npm ci
npm run lint # eslint (flat config, typescript-eslint)
npm test # vitest, no network
npm run build # tsc -> dist/
npm run typecheck # tsc --noEmit, includes tests
```
```
src/
index.ts CLI entry (stdio or HTTP)
server.ts resources, prompts, server wiring
tools.ts the 13 tool registrations
schemas.ts shared zod schemas
db.ts node:sqlite schema, seeding, queries
resume.ts resume parser
requirements.ts requirement, sponsorship, clearance extraction
salary.ts salary parser
match.ts scoring
tracker.ts shortlist and application pipeline
data/ fictional companies, jobs and resumes
tests/ unit tests per module, protocol tests, HTTP test
```
## Testing
`npm test` runs the whole suite in about a second. It covers:
- every tool through a real MCP client over an in-memory transport, including error results and read-only enforcement;
- sponsorship negation (`"visa sponsorship is not available"`, `"without sponsorship"`, `"we will sponsor H-1B transfers"` and more);
- salary cases: ranges, `k` suffixes, hourly vs yearly, other currencies, open-ended figures, stipends and bonuses;
- resume parsing on the sample resumes, overlapping jobs and missing sections;
- the Streamable HTTP transport on an ephemeral local port;
- guards on the seed data itself (no contact details, unique ids).
## Limitations and next steps
- The data is a fictional sample. Importing real postings (a feed, a CSV, an ATS export) is the obvious next step; the schema in `src/db.ts` is the only thing to map to.
- Skill detection uses a fixed taxonomy of 70 skills in `src/skills.ts`. Anything outside it is invisible to matching.
- Extraction is rule based. It is careful with negation, but unusual phrasing can land on `unknown`, and `unknown` is returned on purpose instead of a guess.
- Salary and years assume US-style phrasing. Annualization uses 2,080 hours per year.
- Sample jobs are timestamped when the database is first created, so a long-lived `--db` file will age.
- HTTP mode is stateless and unauthenticated. Keep it on localhost, or put it behind your own auth.
- Possible additions: embeddings as an optional second ranking signal, pagination cursors, a CSV importer, and a notes tool.
## License
MIT, see [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues