ScarletPlan
Local-first Rutgers course planning assistant that answers 'what should I take and when?' using a CP-SAT solver, real transcript data, and live SOC data, connected to Claude via MCP.
README
ScarletPlan
Local-first Rutgers course planning assistant. Answers "what should I take and when?" using a CP-SAT solver, your real transcript, and live SOC data — running entirely on your machine, connected to Claude Desktop or Claude Code via MCP.
Disclaimer: ScarletPlan is not an official Rutgers tool. Always verify plans with Degree Navigator and your academic advisor.
What it does
| Question | How |
|---|---|
| What courses am I eligible for? | Prereq tree evaluation against your transcript |
| Build me a conflict-free schedule | CP-SAT section optimizer with time/campus preferences |
| Plan my remaining semesters | CP-SAT degree planner against CS BS requirements |
| Will this section fill? | openSections fill-rate stats (grows over time) |
| Who's a good professor for 344? | Cached RateMyProfessors ratings with name matching |
Setup (5 commands)
Requirements: Python 3.11+, uv, Claude Desktop or Claude Code.
# 1. Clone and install
git clone https://github.com/heetshah15/scarletplan && cd scarletplan
uv sync
# 2. Build the database (ingest current + next term for NB)
uv run python scripts/setup.py
# 3. Start the MCP server (test it works)
uv run scarletplan-server
# 4. Add to Claude Desktop config (see below)
# 5. Start the openSections poller cron (see below)
Claude Desktop config
Add this to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"scarletplan": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/scarletplan", "scarletplan-server"],
"env": {
"SCARLETPLAN_DB": "/absolute/path/to/scarletplan/scarletplan.db"
}
}
}
}
Or see docs/claude_desktop_config.snippet.json for a ready-to-copy snippet.
Claude Code / Project Instructions
Paste this into your Claude project instructions (or .claude/instructions.md):
You are a Rutgers course planning assistant powered by ScarletPlan tools.
Rules:
- Always resolve course facts via tools, never from memory (SOC data changes).
- On first use: gather completed courses, target graduation, preferences via
set_user_profile so the student doesn't repeat themselves.
- Planning flow: get_requirements_progress → solve_degree_plan → present → iterate.
- Scheduling flow: solve_semester_schedule (k=3) → present tradeoffs →
validate_plan after any manual edits.
- Always surface caveats[] to the user, especially low-confidence ratings.
- End every degree plan with: "Verify this plan with Degree Navigator and your
academic advisor. ScarletPlan is not an official Rutgers tool."
- For professor ratings: always show match_confidence; flag anything below 85%.
openSections poller (start now)
The fill-rate stats dataset only grows if the poller runs during registration windows. Add this cron job so data starts accumulating:
# Edit crontab: crontab -e
*/5 * * * * cd /path/to/scarletplan && \
uv run python -m scarletplan.poller.poll_open \
--year 2026 --term 9 >> poller.log 2>&1
Key registration windows (when fill-rate data is most valuable):
- November 2026 — spring 2027 registration
- April 2027 — fall 2027 registration
- January / September — add/drop chaos
RateMyProfessors ratings (optional)
RMP uses an unofficial GraphQL endpoint. Isolated and optional — if it breaks, all other tools continue working.
# Scrape once per semester, cache in DB
uv run python -m scarletplan.ingest.rmp.rmp_scraper --year 2026 --term 9
# Dry run to check match quality first
uv run python -m scarletplan.ingest.rmp.rmp_scraper --year 2026 --term 9 --dry-run
Match confidence ≥0.85 is reliable. 0.70–0.85 is surfaced as low-confidence. Below 0.70 is not stored.
MCP tools
| Tool | What it does |
|---|---|
search_courses |
Full-text search the catalog |
get_course |
Full detail: prereqs, sections, core codes |
get_prereq_tree |
Prereq AST annotated with course titles |
check_eligibility |
Which courses you can take given your transcript |
get_sections |
Sections with meeting times, instructors, open status |
get_professor |
RMP rating + match confidence + courses they teach |
get_fill_stats |
Historical fill rate for a section index |
get_requirements_progress |
CS BS degree progress by bucket |
solve_semester_schedule |
Top-k conflict-free schedules with CP-SAT |
validate_plan |
Check a manually-edited schedule for conflicts |
solve_degree_plan |
Multi-semester degree plan with prereq ordering |
get_user_profile / set_user_profile |
Persistent student profile |
Dev
uv run pytest # all tests
uv run pytest -m "not network" # skip live SOC tests
uv run python scripts/report_parse_failures.py # see unparsed prereq strings
Tests use synthetic in-memory SQLite — no network, no real DB required.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。