Skip to main content
Glama
ATS Score Checker

ATS Score Checker

by umeshkpandit
README.md
# ATS Score Checker — MCP Server

![Version](https://img.shields.io/badge/version-1.0.0-f5a524)
![Python](https://img.shields.io/badge/python-3.10%2B-blue)
![MCP](https://img.shields.io/badge/MCP-stdio-8b98a9)
![License](https://img.shields.io/badge/license-MIT-green)

An MCP (Model Context Protocol) server that checks how well a CV matches a job description, the way an ATS (Applicant Tracking System) would. Powered by **Ollama** (local, default) or **Gemini** (cloud).

```
CV PDF + Job Description → LLM analysis → ATS score, keyword gaps, optimization suggestions
```

![Demo](assets/ats-mcp-demo.gif)

A sharper version of the demo is in [`assets/ats-mcp-demo.mp4`](assets/ats-mcp-demo.mp4).

## Features

- **ATS score (0–100)** with matched and missing keywords
- **Keyword extraction** from any job description
- **Rewrite suggestions** to close the gaps
- **Local by default** — with Ollama, no API key is needed and your CV stays on your machine
- **Works with any MCP client** — Claude Code, Claude Desktop, Cursor and others

## Tools

| Tool | What it does |
|---|---|
| `check_ats_score` | Scores a CV (0–100) against a job description with matched/missing keywords, section feedback, and suggestions |
| `extract_keywords` | Extracts required/preferred skills, experience, and education requirements from a job description |
| `optimize_cv` | Suggests section rewrites and missing keywords to improve ATS compatibility |

## Resource

| URI | What it returns |
|---|---|
| `cv://sections` | All sections from the default CV as structured JSON |

## Quick Start

### 1. Prerequisites

- Python 3.10+
- [Ollama](https://ollama.com) installed and running (for local mode)

```bash
brew install ollama
ollama serve                     # start in a terminal
ollama pull llama3.2             # download the model (~2 GB)
```

### 2. Install

```bash
git clone https://github.com/umeshkpandit/cv-ats-score-checker-mcp.git
cd cv-ats-score-checker-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env             # optional: edit to change model or backend
```

Alternatively, `pip install -e ".[dev]"` installs it as a package and adds a `cv-ats-score-checker-mcp` command that starts the server.

### 3. Connect an MCP client

Point the client at the virtualenv's Python so the dependencies are found. Use absolute paths.

**Claude Code**

```bash
claude mcp add ats-score-checker -- /path/to/cv-ats-score-checker-mcp/.venv/bin/python /path/to/cv-ats-score-checker-mcp/mcp_server.py
```

**Claude Desktop, Cursor and other clients** (JSON config)

```json
{
  "mcpServers": {
    "ats-score-checker": {
      "command": "/path/to/cv-ats-score-checker-mcp/.venv/bin/python",
      "args": ["/path/to/cv-ats-score-checker-mcp/mcp_server.py"]
    }
  }
}
```

### 4. Try it

A fictional CV and a job description are included in [`examples/`](examples/). Ask your MCP client something like:

> Score `/path/to/cv-ats-score-checker-mcp/examples/sample_cv.pdf` against the job description in `/path/to/cv-ats-score-checker-mcp/examples/job_description.txt`, then suggest how to improve it.

To use your own CV, pass the path to any PDF. Personal PDFs are git-ignored, so they will not be committed by accident.

## Configuration

Settings are read from environment variables, or from a `.env` file next to `mcp_server.py`.

| Variable | Default | Notes |
|---|---|---|
| `LLM_BACKEND` | `ollama` | `ollama` for local, `gemini` for cloud |
| `OLLAMA_MODEL` | `llama3.2` | Any Ollama model you've pulled |
| `OLLAMA_URL` | `http://localhost:11434` | Only change if Ollama runs elsewhere |
| `GEMINI_API_KEY` | | Required when `LLM_BACKEND=gemini` |
| `GEMINI_MODEL` | `gemini-3.1-flash-lite` | Any Gemini model |
| `CV_PATH` | `cv.pdf` | Default CV for the `cv://sections` resource. Use an absolute path, because a relative one resolves against the client's working directory |

**Privacy:** with `LLM_BACKEND=ollama` the CV and job description are processed on your machine. With `LLM_BACKEND=gemini` they are sent to the Gemini API.

## Run Tests

```bash
python -m pytest tests/ -v
```

All tests are offline — no Ollama or API keys needed (LLM calls are mocked).

## Project Structure

```
cv-ats-score-checker-mcp/
├── mcp_server.py        # MCP server: tools and resource
├── cv_parser.py         # PDF extraction, section splitting, chunking
├── llm_client.py        # Unified LLM client (Ollama + Gemini)
├── pyproject.toml       # Package metadata; version comes from mcp_server.__version__
├── requirements.txt
├── .env.example         # Configuration template
├── CHANGELOG.md         # Release history
├── CLAUDE.md            # Guidance for Claude Code when working in this repo
├── LICENSE
├── .github/workflows/   # CI: runs the tests on push and pull request
├── tests/               # Offline test suite
├── examples/            # Fictional sample CV and job description
├── assets/              # Demo GIF and MP4
└── demo/                # Source for the demo animation
```

## Regenerating the Demo

The demo is an HTML animation rendered frame by frame. Preview it by opening `demo/demo.html?play` in a browser. To re-render (needs Node, Chrome, `playwright-core` and `ffmpeg`):

```bash
node demo/capture.mjs /path/to/node_modules/playwright-core /tmp/frames 20
ffmpeg -framerate 20 -i /tmp/frames/f%05d.png -c:v libx264 -pix_fmt yuv420p -crf 18 assets/ats-mcp-demo.mp4
ffmpeg -framerate 20 -i /tmp/frames/f%05d.png \
  -vf "fps=15,scale=960:-1:flags=lanczos,split[a][b];[a]palettegen=max_colors=128[p];[b][p]paletteuse" \
  assets/ats-mcp-demo.gif
```

The tool results shown in the demo are real output from `llama3.2` on the files in `examples/`. LLM output varies between runs, so your score may differ.

## Versioning and Releases

The current version is **1.0.0**. Versions follow [Semantic Versioning](https://semver.org/), and every release is described in [CHANGELOG.md](CHANGELOG.md).

To cut a release:

1. Update `__version__` in `mcp_server.py` and the version badge at the top of this file.
2. Add a section for the new version to `CHANGELOG.md`.
3. Run the tests: `python -m pytest tests/ -v`.
4. Commit, tag and publish:

```bash
git commit -am "Release v1.0.0"
git tag v1.0.0
git push origin main --tags
gh release create v1.0.0 --title "v1.0.0" --notes-file CHANGELOG.md
```

## License

[MIT](LICENSE)

TDQS

B3.4/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a clearly distinct action: scoring a CV against a JD, extracting keywords from a JD, and generating optimization suggestions. The argument signatures reinforce the boundaries (extract_keywords only needs the JD, the others need both inputs).

Naming Consistency5/5

All three names follow a consistent snake_case verb_noun pattern (check_ats_score, extract_keywords, optimize_cv), with no style mixing or vague verbs.

Tool Count4/5

Three tools is on the lean side, but for a narrow ATS-scoring domain it covers the natural check/extract/optimize workflow without redundancy. A user could reasonably expect a bit more surface, so it's slightly thin rather than ideal.

Completeness4/5

The core lifecycle (score → diagnose keywords → get optimization suggestions) is well covered with no dead ends. Minor gaps exist, such as bulk scoring of multiple job descriptions or extracting the CV's own text/keywords for comparison, but agents can work around these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues