Interview Coach MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Interview Coach MCP
An MCP server that runs mock technical interviews from your own study guides.
It asks you questions on DSA, low-level design and AI engineering, grades your answers with Gemini, and remembers your scores so the next session starts with your weakest topics.
Why
Reading notes feels like progress, but interviews test recall. This server turns a folder of markdown notes into an interviewer that:
asks one question at a time, grounded in your notes
grades the answer against the same notes, with strengths, gaps and a model answer
tracks a score per topic in SQLite and points you at what you have not practised yet
Related MCP server: InterviewDojo
How it works
MCP client (Cursor, Claude Desktop, ...)
│ prompt: mock_interview
▼
┌──────────────── interview-coach ─────────────────┐
│ get_progress ──► SQLite (db/coach.db) │
│ generate_question ─┐ │
│ grade_answer ──────┴─► Gemini ◄── topic notes │
│ (structured output) │
│ interview://topics ◄── data/guides/*.md │
└──────────────────────────────────────────────────┘The mock_interview prompt drives the loop:
get_progressfor the chosen guide.Suggest 3 topics: unseen first, then lowest average score.
You pick a topic and a difficulty.
generate_questionwrites the question. Key points stay hidden.You answer.
grade_answergrades it and saves the score.You choose: another topic, a harder question, or stop.
The user decides at every step. The model never picks a topic or moves on by itself.
Core parts:
Study guides: 8 markdown guides in
data/guides/. Each##heading is one topic.Grounding: every question and grade uses only the notes of that topic.
Structured output: Gemini returns
QuestionandGradePydantic models. The score is checked to be 0-10.SQLite: every graded answer is saved, so
get_progresscan rank topics.
Project structure
interview-coach-mcp/
├── data/guides/ # 8 markdown study guides, 124 topics
├── src/interview_coach/
│ ├── server.py # creates the FastMCP app and mounts the routers
│ ├── client.py # terminal interview app (MCP client)
│ ├── evals.py # runs the grading evaluation
│ ├── config/settings.py # pydantic-settings, reads .env
│ ├── routers/
│ │ ├── tools.py # get_progress, generate_question, grade_answer
│ │ ├── resources.py # interview://topics, interview://topics/{guide}/{slug}
│ │ └── prompts.py # mock_interview
│ └── app/
│ ├── models.py # Pydantic models: Topic, Question, Grade, TopicProgress
│ ├── guides.py # splits each guide into topics on "## " headings
│ ├── coach.py # Gemini calls with structured output
│ ├── gemini.py # Gemini client, traced by Opik when a key is set
│ ├── evaluation.py # eval dataset model and scoring
│ └── database.py # SQLite: save attempts, read progress
├── data/evals/ # 24 graded answers for the evaluation
├── tests/
├── Dockerfile
└── docker-compose.ymlThe routers only register MCP components. All logic lives in app/, so it can be tested without an MCP client. The course template also has tools/, resources/, prompts/ and utils/ folders. This project is small enough that app/ covers them.
Setup
Requirements
A Gemini API key
Docker (optional)
Install
git clone https://github.com/abhishekzipp/interview-coach-mcp.git
cd interview-coach-mcp
uv sync
cp .env.sample .envThen put your key in .env.
Environment variables
Variable | Required | Default | Description |
| yes | Get a free key at Google AI Studio. | |
| no |
| Any Gemini model that supports structured output. |
| no | Turns on tracing. Get a free key at Opik. | |
| no | Your Opik workspace name. | |
| no |
| Where the SQLite file is stored. |
| no |
| Folder of markdown guides. |
Never commit .env. It is in .gitignore.
Run
uv run interview-coachThe server talks over stdio, so it waits silently for a client. To try it in a browser with the MCP Inspector:
uv run fastmcp dev src/interview_coach/server.pyConnect from Cursor
Add this to ~/.cursor/mcp.json:
{
"mcpServers": {
"interview-coach": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/interview-coach-mcp",
"run",
"interview-coach"
],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}Then type /mock_interview in the chat and pass a guide name, for example lld.
Run with Docker
docker compose build
docker compose run --rm -T interview-coachScores are kept in the coach-db volume. To connect Cursor to the container:
{
"mcpServers": {
"interview-coach": {
"command": "docker",
"args": [
"compose",
"-f",
"/absolute/path/to/interview-coach-mcp/docker-compose.yml",
"run",
"--rm",
"-T",
"interview-coach"
]
}
}
}MCP reference
Tools
Tool | Parameters | Returns |
|
| Attempts and average score per topic, unseen and weakest first |
|
|
|
|
|
|
Resources
URI | Content |
| Every topic id and title |
| The notes for one topic, for example |
Prompts
Prompt | Parameters | Workflow |
|
| The 7-step loop in How it works |
Guides
dsa, lld, ml, deep_learning, transformers, llms, nlp_rag, llm_evals.
To add your own, drop a markdown file in data/guides/. Each ## heading becomes a topic. The file name becomes the guide name.
Required features
Feature | Where |
FastMCP server in Python |
|
Meaningful MCP tools | 3 tools in |
Prompt with an agentic workflow and user input |
|
Public GitHub repository | This repo |
uv project on Python 3.14 |
|
Organised | |
Settings with pydantic-settings |
|
|
|
Custom features
Feature | What it does | Run it |
Opik observability | Every Gemini call is traced in Opik with the prompt, the structured output, token usage and latency. | Set |
Evaluation layer | 24 hand-graded answers (strong, partial and wrong) across all 8 guides. A custom evaluator checks that |
|
MCP client app | A terminal interview that connects to the server over stdio. It plans each round itself: it ranks topics with |
|
Code quality and DevOps | ruff lint and format, pre-commit hooks, GitHub Actions CI, Dockerfile and docker-compose. |
|
Observability
Add OPIK_API_KEY and OPIK_WORKSPACE to .env. The server then wraps the Gemini client with Opik's track_genai, and each generate_question and grade_answer call shows up as a trace in the interview-coach project. Without the key, tracing is off.
Evaluation
uv run interview-coach-evalExample of the output format (the numbers depend on the model):
PASS score 9 expected 7-10 dsa/binary-search
FAIL score 4 expected 0-3 dsa/graphs
...
In band: 88% of 24 samples
Mean band error: 0.21 pointsIn band: the share of answers the grader scored inside the expected range.
Mean band error: how many points, on average, a score falls outside its range.
The command exits with code 1 if fewer than 80% of answers are in band, so it can gate a change to a prompt or a model.
Terminal client
uv run interview-coach-cli lldThe client starts the server itself. Its rules for picking a difficulty:
Topic history | Difficulty |
Never practised | easy |
Average below 7 | medium |
Average 7 or more | hard |
Development
uv run pre-commit install
uv run ruff check .
uv run ruff format --check .
uv run pytestAll checks pass in CI on every push.
Troubleshooting
Problem | Fix |
|
|
| Read |
Cursor shows no tools | Use an absolute path in |
| Set |
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Create private mock interviews from your notes, read reports and progress, and get a practice link.
AI interview practice and career preparation with user-controlled guidance.
Files what you learn into a personal wiki and quizzes you before you forget it.
Find interview guides and set up spoken rehearsal for software engineering behavioral interviews.
Related MCP Servers
- AlicenseAqualityDmaintenanceA technical interviewer that ingests GitHub repos, teaches you your own code, and conducts mock interviews with persistent memory of your weak spots.38845 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables Alexa+ to run spoken mock technical interviews by parsing a candidate's resume and target job description, generating tailored questions, and scoring each answer against Bar Raiser rubrics via Amazon Bedrock. It also produces a session report with score breakdowns, weak topics, and a concrete practice plan.MIT
- AlicenseAqualityBmaintenanceTurns Claude or ChatGPT into a live system design interviewer that watches a hand-drawn whiteboard, reads the diagram as structured data or an image, hears spoken answers, pins questions on components, and grades the session. Everything runs locally, so users can practice mock interviews on their own machine without API keys.1382 npm1MIT
- AlicenseAqualityNot gradedmaintenanceEnables users to practice graded AI Engineer and Investment Banking interview questions through tools for listing topics, retrieving questions and model answers, getting step-by-step answer frameworks and scoring rubrics, running randomized mock drills, and searching questions offline over stdio.5MIT