DevTrack MCP Server
by soham04010
README.md
# DevTrack MCP Server
> **An open-source Model Context Protocol (MCP) server that turns any AI assistant into a personal SDE & AI Career Toolkit** — track job applications, log DSA prep, explore GitHub repositories & beginner issues, search the web, scrape job postings, and score your resume against job descriptions.




[](https://github.com/soham04010/DevTrack-MCP-Server/actions/workflows/tests.yml)
[](./LICENSE)
---
## Why DevTrack MCP?
Most AI chatbots cannot access your local files, remember your job-hunt progress across sessions, or inspect your personal database safely. **DevTrack MCP** solves that by giving any MCP-compatible AI client (**Antigravity**, **Cursor**, **VS Code**, or **Claude Desktop**) a structured, local-first backend:
* **Zero Paid API Keys Required:** Works out of the box with local SQLite, public GitHub APIs, DuckDuckGo multi-engine search, and local TF-IDF resume scoring.
* **Safe by Design:** Read-only SQL analytics enforce `mode=ro` + keyword/multi-statement validation, and the job-URL scraper includes SSRF protection against private/local IPs.
* **Built for SDEs & Contributors:** Clean modular Python (`src/`), automated `pytest` suite with mocked HTTP transports, `stdio` + `streamable-http` transports, and a ready-to-run `Dockerfile`.
---
## Architecture
```mermaid
flowchart LR
Client["AI Host (Antigravity / Cursor / Claude Desktop / MCP Inspector)"]
Server["server.py (MCPServer: 13 Tools, 1 Resource, 2 Prompts)"]
DB["src/db.py (SQLite: applications & dsa_problems)"]
GH["src/github_client.py (Async GitHub REST API)"]
Web["src/web_tools.py (DuckDuckGo + BS4 Scraper)"]
Resume["src/resume_matcher.py (pypdf + TF-IDF Cosine)"]
Client <-->|"JSON-RPC (stdio or Streamable HTTP)"| Server
Server --> DB
Server --> GH
Server --> Web
Server --> Resume
```
---
## Features
| Category | Capabilities |
| :--- | :--- |
| **Job Application Tracker** | Add applications (`saved`, `applied`, `oa`, `interview`, `offer`, `rejected`), update statuses/notes, and filter lists in `data/devtrack.db`. |
| **DSA & Interview Prep Tracker** | Log coding problems by platform, topic, difficulty (`easy`, `medium`, `hard`), and flag problems for revision. |
| **Guarded SQL Analytics** | Run read-only `SELECT` / `WITH` queries across `applications` and `dsa_problems` while blocking writes, DDL, and multi-statement queries. |
| **GitHub Explorer** | Fetch repo metadata (stars, forks, topics), list open/closed issues (filtering out PRs), search repos, and discover unassigned `good first issue` tickets. |
| **Web Search & Job Scraper** | Multi-engine DuckDuckGo search (`ddgs`) and SSRF-safe HTML job posting extraction (`httpx` + `BeautifulSoup`) with automatic skill detection. |
| **Resume vs. JD Matcher** | Extract text from PDF resumes (`pypdf`) or plain text and compute a weighted **TF-IDF cosine similarity + SDE/AI skill coverage score** with missing keywords. |
---
## Quick Start
### Prerequisites
* **Python 3.10+**
* **Git**
* **Node.js 18+** *(only needed if you want to run the browser-based MCP Inspector)*
* **Docker** *(optional, for containerized HTTP mode)*
### 1. Clone & Install
```powershell
git clone https://github.com/soham04010/DevTrack-MCP-Server.git
cd DevTrack-MCP-Server
python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
```
*(macOS / Linux: use `source .venv/bin/activate` instead of `.\.venv\Scripts\activate`.)*
### 2. Run the Test Suite
```powershell
pytest -v
```
### 3. Try It Visually with MCP Inspector
Launch the interactive web tester directly against your virtual environment Python:
```powershell
npx @modelcontextprotocol/inspector "D:\MCP SERVER\.venv\Scripts\python.exe" "D:\MCP SERVER\server.py"
```
Open the local URL printed in your terminal, click **Connect**, and test the **Tools**, **Prompts**, and **Resources** tabs.
> **Note:** When running in ad-hoc CLI mode, MCP Inspector displays *"Server list is read-only for this session"* if you toggle UI settings like *Paginated*. Leave *Paginated* off; this does not affect server functionality.
---
## Connect to an AI Client
### Option A: Antigravity
Add the server block from [`antigravity_mcp_config.example.json`](./antigravity_mcp_config.example.json) to `~/.gemini/config/mcp_config.json` (on Windows: `C:\Users\<your-username>\.gemini\config\mcp_config.json`):
```json
{
"mcpServers": {
"devtrack-local": {
"command": "D:\\MCP SERVER\\.venv\\Scripts\\python.exe",
"args": [
"D:\\MCP SERVER\\server.py"
]
}
}
}
```
Verify it loaded in Antigravity under **Additional Options (`...`) > MCP Servers**.
### Option B: Docker (`Streamable HTTP`)
Start Docker Desktop, then run **once** using Docker Compose (or `docker run` without `--rm` so the container stays in Docker Desktop):
```powershell
docker compose up -d --build
```
After this, you don't need terminal commands—just open **Docker Desktop -> Containers** and click **Start / Stop** on `devtrack-mcp` anytime!
The `-v "${PWD}/data:/app/data"` / `./data:/app/data` volume keeps `data/devtrack.db` saved on your drive, and the remote MCP endpoint runs at `http://localhost:8000/mcp`.
---
## Example Prompts (Once Connected)
* *"Log my Stripe Software Engineer application as `applied` with URL `https://stripe.com/jobs`."*
* *"Show all DSA problems flagged for revision and summarize them by topic."*
* *"Find 5 open `good first issue` tickets in Python FastAPI repositories."*
* *"Scrape this job posting URL and score how well `C:\path\to\resume.pdf` matches it."*
* *"Run a SQL query showing how many applications I have in each status."*
---
## API Reference (13 Tools, 1 Resource, 2 Prompts)
<details>
<summary><strong>Click to expand full Tools, Resource & Prompts reference</strong></summary>
### Tools
| Tool | Description | Key Parameters |
| :--- | :--- | :--- |
| `add_job_application` | Insert a new job application into SQLite | `company`, `role`, `status`, `url`, `notes` |
| `update_application_status` | Update status and/or notes for an application ID | `app_id`, `status`, `notes` |
| `list_job_applications` | List applications with optional status filter | `status`, `limit` |
| `log_dsa_problem` | Log a coding/DSA problem into SQLite | `title`, `topic`, `difficulty`, `status`, `platform`, `url`, `notes`, `needs_revision` |
| `list_dsa_problems` | Filter DSA problems by topic, difficulty, or revision flag | `topic`, `difficulty`, `needs_revision_only`, `limit` |
| `query_tracker_sql` | Execute a validated read-only `SELECT`/`WITH` SQL query | `sql` |
| `get_github_repo_info` | Fetch stars, forks, language, topics, and open issues | `owner`, `repo` |
| `list_github_issues` | List open/closed issues (excluding pull requests) | `owner`, `repo`, `state`, `limit` |
| `search_github_repos` | Search public GitHub repositories sorted by stars | `query`, `limit` |
| `find_good_first_issues` | Find unassigned `good first issue` tickets by language/keyword | `language`, `query`, `limit` |
| `search_web` | Multi-engine DuckDuckGo web search (no API key required) | `query`, `limit` |
| `scrape_job_posting` | Fetch a public job URL and extract title, text, and skills | `url` |
| `match_resume_to_job` | Score a PDF resume or plain text against a job description | `job_description`, `resume_path`, `resume_text` |
### Resource
* **`tracker://summary`** — Returns live application & DSA summary counts along with SQLite table schemas.
### Prompts
* **`analyze_github_repo(owner, repo)`** — Guided workflow to summarize a repo's stack and beginner issues.
* **`tailor_resume_for_job(job_url, resume_path)`** — Guided workflow to scrape a job posting and score resume fit.
</details>
---
## Configuration (Optional)
Copy `.env.example` to `.env` if you want to customize settings:
```env
# Optional: Raises GitHub REST API rate limits from 60/hr to 5,000/hr
GITHUB_TOKEN=
# Optional: Override default SQLite database location (default: data/devtrack.db)
# DEVTRACK_DB_PATH=data/devtrack.db
```
---
## Project Structure
```text
.
├── .github/workflows/tests.yml # GitHub Actions CI running pytest on Python 3.11 & 3.12
├── server.py # MCPServer entrypoint & tool/resource/prompt definitions
├── src/
│ ├── __init__.py
│ ├── db.py # SQLite persistence & read-only SQL validator
│ ├── github_client.py # Async GitHub API client (httpx)
│ ├── web_tools.py # DuckDuckGo search + SSRF-safe HTML job scraper
│ └── resume_matcher.py # pypdf text extraction + TF-IDF & skill matcher
├── tests/
│ └── test_server.py # Unit & registration tests (pytest + MockTransport)
├── Dockerfile # Streamable HTTP container (port 8000)
├── docker-compose.yml # One-command persistent Docker setup
├── LICENSE # MIT License
├── requirements.txt
├── pyproject.toml
├── .env.example
├── .dockerignore
├── .gitignore
└── antigravity_mcp_config.example.json
```
---
## Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request:
1. Fork the repository and create a feature branch (`git checkout -b feat/your-feature`).
2. Add unit tests for new tools or parsers in `tests/test_server.py`.
3. Verify all tests pass with `pytest -v` before opening a PR.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues