interview-prep-mcp
An MCP server that acts as a personalized interview prep coach, tracking DSA problems, scheduling spaced-repetition revisions, and providing RAG-based concept explanations grounded in your own notes.
README
Interview Prep MCP Server
A personal MCP server that combines DSA problem tracking with spaced-repetition revision scheduling and RAG-based concept explanations, so Claude can act as a personalized interview prep coach grounded in your own solved problems and notes.
What it actually does
- Logs every DSA problem you solve, with topic, difficulty, and how confident you felt about it.
- Tells you which topics you're weakest in, based on real logged data, not guesses.
- Schedules revisions using the SM-2 algorithm (the same algorithm Anki is built on) - problems you struggled with come back sooner, problems you nailed come back later.
- Retrieves relevant concept notes (sliding window, DP, graphs, etc.) using TF-IDF based retrieval, so Claude explains concepts grounded in your own notes rather than purely from its general training knowledge.
Project structure
interview-prep-mcp/
server.py - MCP server entry point, defines all tools
database.py - SQLite schema and all DB operations
spaced_repetition.py - SM-2 algorithm implementation
rag_engine.py - chunks concept notes, builds TF-IDF index, retrieves
concepts/ - your concept notes as markdown files
sliding_window.md
dynamic_programming.md
graphs.md
arrays_and_strings.md
trees.md
greedy.md
seed_data.py - optional, populates realistic sample data for a demo
requirements.txt
Setup
- Create a virtual environment and install dependencies:
python -m venv venv
venv\Scripts\activate (Windows)
source venv/bin/activate (Mac/Linux)
pip install -r requirements.txt
- Test the server runs on its own (it should just hang waiting for input, that means it's working - press Ctrl+C to stop):
python server.py
- Connect it to Claude Desktop. Open (or create) the config file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - Mac:
~/Library/Application Support/Claude/claude_desktop_config.json
Add this (replace the path with the actual full path to server.py on your machine):
{
"mcpServers": {
"interview-prep": {
"command": "python",
"args": ["C:\\full\\path\\to\\interview-prep-mcp\\server.py"]
}
}
}
- Restart Claude Desktop completely. You should see a small tools icon showing the interview-prep server is connected.
Want to see it fully populated before showing someone?
Run this once to seed 25 realistic sample problems spread across array, sliding window, dp, graph, tree and greedy topics, with varied confidence levels so weak topics and a revision queue show up immediately:
python seed_data.py
This is entirely optional - skip it if you'd rather start from a real, empty
history and log your own problems from day one. You can always delete
interview_prep.db later to reset and go back to a clean slate.
Trying it out
Once connected, just talk to Claude normally:
- "I just solved Two Sum, array topic, easy, confidence 5, took me 8 minutes"
- "What are my weak topics?"
- "What's due for revision today?"
- "What's my plan for today?" (combines revision queue + weak topics in one view)
- "I just revised Longest Substring Without Repeating Characters, quality 4"
- "Explain sliding window to me based on my notes"
Extending it
- Add more concept notes: just drop more
.mdfiles intoconcepts/, using## Headingsections like the existing ones. The index rebuilds automatically next time a tool is called, since rag_engine.py hashes the concepts folder and only re-indexes when something changed. - Add more tools in server.py using the
@mcp.tool()decorator - for example, a tool that pulls your solved-problem history from LeetCode's public API automatically instead of manual logging.
Why TF-IDF instead of neural embeddings
For a small, fixed set of technical concept notes, TF-IDF with cosine similarity
retrieves accurately without needing a multi-gigabyte torch/CUDA install just to
run a personal tool. If the concept notes grow into a large, varied corpus later,
swap rag_engine.py for sentence-transformers + FAISS - the rest of the server
does not need to change, since retrieve(query, top_k) is the only function
the rest of the code depends on.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.