Dsa Tracker Mcp Server

io.github.ashmitrrr由 GitHub 账号 ashmitrrr 发布v1.0.1更新于 Oct 25, 2026

Track DSA/LeetCode practice with spaced repetition, ships with NeetCode 150.

已验证STDIO仅桌面效率与工作流知识与记忆

概览

AI 生成的概览

一个本地 MCP 服务器,用间隔重复跟踪 DSA/LeetCode 刷题进度,内置 NeetCode 150 题目列表。

可以做什么
记录题目尝试,包含结果、信心度和用时,据此安排下次复习日期,并能把模糊输入的题名匹配到正确题目。获取下一道要做的题,优先安排逾期复习而非新题,可按分类筛选。查看总体统计:已解数量、分类明细、连续天数和总用时。按名称、分类、难度或状态搜索和筛选题目,并查看某题的全部尝试历史。读取进度和题目列表资源,并使用提示生成每日复习或讲解某分类的核心思路。
适用场景
适合正在按 NeetCode 150 等面试题单练习的人,希望助手决定下一步复习什么、以对话方式记录尝试,并汇报进度和连续天数。
运行要求
以 Python 包(PyPI 上的 dsa-tracker-mcp)在本地运行,通常用 uvx 启动或通过 pip 安装;文档中的客户端为 Claude Desktop。可选环境变量 DSA_TRACKER_DB(SQLite 数据库路径)和 DSA_TRACKER_PROBLEMS_FILE(自定义题目列表 JSON)可覆盖默认值。无需账号或 API 密钥。
安装前请注意
它会把练习数据写入本地 SQLite 数据库,请将 DSA_TRACKER_DB 指向你愿意长期保存的位置。自定义题目列表会从你指定的路径读取。未提及凭据、付费或向第三方发送数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Dsa Tracker Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

dsa-tracker-mcp

mcp-name: io.github.ashmitrrr/dsa-tracker-mcp-server

[PyPI]

This is an MCP server for tracking your progress through your DSA questions and comes loaded with a default list of NeetCode 150 (any custom DSA problem list can be switched per user) with built-in spaced repetition. Built with FastMCP and SQLite.

Talk to it naturally from Claude: "what should I work on next", "log that I solved Two Sum, confidence 4, took 12 minutes", "how's my progress", "show me my history on Contains Duplicate".

Features

  • Spaced repetition — problems you struggle with come back sooner, problems you nail come back later. Schedule is based on how you rated each attempt (gave up / struggled / solved) and your confidence (1-5).
  • List-agnostic — ships with the full NeetCode 150 (150 problems, 18 categories) but can load any custom problem list via a JSON file.
  • Fuzzy matching — log an attempt with a loosely-typed problem name ("two sum", "contains dupe") and it'll match the right problem.
  • Stats & streaks — solved counts, per-category breakdown, daily streak, total time spent.

Tools

ToolDescription
log_attemptLog an attempt at a problem (status, confidence 1-5, time spent). Schedules the next review.
get_next_problemGet what to work on next: an overdue review, or the next new problem in order. Optional category filter.
get_statsOverall progress summary — solved counts, per-category breakdown, streak, total time.
search_problemsSearch/filter problems by name, category, difficulty, or status.
get_problem_historyAll logged attempts for a given problem, chronological.

Resources

  • dsa://progress — current progress snapshot
  • dsa://problem-list — full list of tracked problems

Prompts

  • daily_review — generates a daily review session based on what's due
  • explain_pattern(category) — explains the core pattern/approach for a given category

Installation

dsa-tracker-mcp is published on PyPI, no manual cloning or virtual environments needed. The recommended way to run it is with uv, which downloads and runs the package on demand.

Claude Desktop

Add to your claude_desktop_config.json (Settings → Developer → Edit Config):

json
{  "mcpServers": {    "dsa-tracker": {      "command": "uvx",      "args": ["dsa-tracker-mcp"]    }  }}

Restart Claude Desktop completely after saving.

Alternative: pip install

If you'd rather install it directly:

bash
pip install dsa-tracker-mcp

Then point your config at the installed console script:

json
{  "mcpServers": {    "dsa-tracker": {      "command": "dsa-tracker-mcp"    }  }}

From source

bash
git clone https://github.com/ashmitrrr/dsa-tracker-mcp-server.gitcd dsa-tracker-mcp-serverpython3 -m venv .venvsource .venv/bin/activate   # on Windows: .venv\Scripts\activatepip install -e .

Environment variables (optional)

VariableDefaultDescription
DSA_TRACKER_DB~/.dsa_tracker_mcp/progress.dbPath to the SQLite database
DSA_TRACKER_PROBLEMS_FILE(none, uses built-in NeetCode 150)Path to a JSON file with a custom problem list

To set these with uvx, add an env block to your config:

json
{  "mcpServers": {    "dsa-tracker": {      "command": "uvx",      "args": ["dsa-tracker-mcp"],      "env": {        "DSA_TRACKER_PROBLEMS_FILE": "/absolute/path/to/my-problems.json"      }    }  }}

Custom problem list format

json
[  {    "name": "Two Sum",    "category": "Arrays & Hashing",    "difficulty": "Easy",    "url": "https://leetcode.com/problems/two-sum/"  }]

url and difficulty are optional and will be auto-filled where possible. order_index is assigned automatically based on list order.

Spaced repetition logic

OutcomeNext review
Gave up1 day
Struggled, confidence ≤ 22 days
Struggled, confidence ≥ 34 days
Solved, confidence ≤ 37 days
Solved, confidence ≥ 421 days

get_next_problem prioritizes overdue reviews before suggesting new problems.

Example prompts

  • "What should I work on next?"
  • "I just solved Valid Anagram, confidence 5, took 6 minutes, log it"
  • "How's my progress on Trees?"
  • "Show me my history on Two Sum"
  • "Give me a daily review"

License

MIT — see LICENSE.

来源:README.md,提交 cd14db9

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分