LeetCode Tracker MCP
Provides tools for tracking LeetCode progress, including syncing accepted solutions, viewing statistics and streaks, logging attempts and notes, managing spaced-repetition reviews, analyzing weak topics, setting goals, and retrieving the daily challenge via LeetCode's unofficial API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LeetCode Tracker MCP Sync my LeetCode progress and show what changed this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LeetCode Tracker MCP
MCP-сервер для отслеживания прогресса на LeetCode: статистика, серии, цели, заметки и интервальные повторения.
Установка
Нужен Node.js 20 или новее.
npm install
npm run buildRelated MCP server: cf-analyser
Подключение
Claude Code (подставьте свой username и абсолютный путь к проекту):
claude mcp add leetcode-tracker --env LEETCODE_USERNAME=your_username -- node "C:/path/to/leetcode-tracker-mcp/dist/index.js"Claude Desktop и другие MCP-клиенты:
{
"mcpServers": {
"leetcode-tracker": {
"command": "node",
"args": ["C:/path/to/leetcode-tracker-mcp/dist/index.js"],
"env": { "LEETCODE_USERNAME": "your_username" }
}
}
}Настройки
Переменная | Обязательна | Назначение |
| Нет | Username по умолчанию |
| Нет | Путь к файлу данных, по умолчанию |
| Нет | Cookie сессии, нужна только для импорта всей истории |
| Нет | Cookie |
Cookie LEETCODE_SESSION даёт полный доступ к аккаунту. Не добавляйте её в git и не публикуйте конфиг с ней.
Инструменты
Инструмент | Что делает |
| Импортирует решения с LeetCode и сохраняет снимок прогресса за день |
| Показывает решённые задачи, рейтинг, серию, прирост за 7 и 30 дней, цели |
| Записывает попытку, время, уверенность 1–5 и заметку |
| Показывает историю попыток по задаче |
| Фильтрует задачи по статусу, сложности и теме |
| Показывает задачи, которые пора повторить |
| Находит слабые и малопрактикованные темы |
| Задаёт цель по числу решённых задач и дедлайн |
| Показывает задачу дня |
Примеры запросов
«Синхронизируй мой прогресс на LeetCode и покажи, что изменилось за неделю»
«Запиши: two-sum решил за 12 минут, уверенность 4, использовал хеш-таблицу»
«Что мне сегодня повторить?»
«Поставь цель 300 medium к 1 июня и посчитай нужный темп»
«Какие темы у меня самые слабые?»
Как работают повторения
Уверенность | Следующий интервал |
1–2 | 1 день |
3 | Текущий × 1,5, минимум 2 дня |
4 | Текущий × 2,5, минимум 4 дня |
5 | Текущий × 3,5, минимум 7 дней |
Максимальный интервал равен 180 дням. Решения старше 14 дней импортируются в историю, но не попадают в очередь повторений.
Ограничения
Без сессии LeetCode отдаёт только 20 последних принятых решений, поэтому синхронизируйте прогресс регулярно.
Сервер использует неофициальный API LeetCode, который может измениться без предупреждения.
Дни считаются по UTC, как и на LeetCode.
Разработка
npm test
node test/e2e.mjs <публичный_username>Available Tools
9 toolsanalyze_topicsCRead-only
Find the least practiced topics at each level and the topics with the highest local failure rate.
Inputs: limit, username.
get_daily_challengeARead-only
Show today's LeetCode daily challenge and whether it was solved before.
Inputs: no named parameters.
get_due_reviewsARead-only
List problems due for spaced-repetition review, most overdue first.
Inputs: limit, upcoming_days.
get_problem_historyBRead-only
Show one problem's details, attempts, notes and review schedule.
Inputs: problem (required).
get_progressBRead-only
Show solved counts by difficulty, ranking, streak, recent activity, weekly and monthly gains, goals and due reviews.
Inputs: username.
list_tracked_problemsBRead-only
List locally tracked problems, most recently attempted first.
Inputs: limit, topic, status, difficulty.
log_attemptA
Record a practice attempt with time, confidence and notes, then schedule the next spaced-repetition review.
Inputs: problem (required), accepted (required), note, minutes, +1 more.
set_goalB
Set a target for the total number of solved problems in a category. A target of 0 removes that goal.
Inputs: metric (required), target (required), deadline.
sync_progressA
Import accepted submissions from LeetCode and record today's progress snapshot. Without a session LeetCode exposes only the latest 20 accepted submissions, so sync regularly.
Inputs: username, full_history.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a distinct action-resource focus: listing tracked problems, listing due reviews, single-problem history, aggregate progress, topic analysis, syncing, logging, goal setting, and the daily challenge. The only mild overlap is between get_due_reviews and get_progress, which also reports due reviews, and between list_tracked_problems and get_problem_history, but the singular/plural and 'history' distinction makes boundaries clear enough.
Every tool follows a clean verb_noun snake_case pattern (list_*, get_*, log_*, sync_*, set_*, analyze_*). No camelCase or vague single-word verbs; the pattern is fully predictable.
Nine tools is well within the ideal 3-15 range and every tool maps to a real workflow: tracking, spaced repetition, syncing, stats, goals, and daily challenge. Nothing appears redundant or padded.
Core lifecycle is covered—sync submissions, log attempts, schedule reviews, view history, analyze topics, set goals, and fetch the daily challenge. Minor gaps exist: no way to edit or delete a logged attempt, and no explicit tool to selectively untrack or add a problem outside sync/log_attempt.
Maintenance
Related MCP Connectors
Research saved LinkedIn contacts, review monitored public activity, and prepare engagement campaigns. Four product/setup tools work anonymously. Company tools require OAuth or a scoped API key: explicitly sign in and refresh tools. Paid actions require a credit budget. MCP cannot post comments or start extension delivery. Setup and examples: https://opencomment.ai/mcp
Your planner in every AI chat: tasks, calendar, docs, habits, goals and memory, over MCP.
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude to fetch and analyze your public LeetCode submission history, weak areas, and daily challenge via a remote MCP server.12 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables analyzing Codeforces activity through local MCP tools, including weekly practice summaries, problem recommendations, user comparisons, weak-topic detection, contest tracking, and rating progress.-
- AlicenseAqualityCmaintenanceEnables integration with LeetCode APIs to retrieve problems, contests, solutions, and user data, support daily challenges and advanced searches, and perform authenticated actions such as running or submitting code and managing notes.9MIT
- AlicenseNot gradedqualityAmaintenanceEnables automated access to LeetCode's problems, contests, solutions, and public or authenticated user data across leetcode.com and leetcode.cn, with search, daily challenge, submission, notes, and progress tools.MIT