This is a submission for the Notion MCP Challenge
What I Built
I built an AI Study Planner that generates personalized day-by-day study schedules using Groq AI and automatically syncs them to Notion via Notion MCP.
Students enter:
- 📖 Exam name (e.g. JEE Mains, GATE, MBA)
- 📅 Number of study days
- ⏰ Hours available per day
- 🗓 Exam date
The AI (Groq LLaMA 3.3) generates a smart topic-by-topic study plan and pushes it directly into a Notion database — creating structured entries with Task, Date, Exam Date, Hours, and Subject columns filled automatically.
Video Demo
Show us the code
GitHub: https://github.com/sarveshm555/ai-study-planner
1. User fills the form
const res = await fetch("http://localhost:5000/add-task", {
method: "POST",
body: JSON.stringify({ subject, days, hours, examDate })
});
2. Groq AI generates the study plan
const aiResponse = await groq.chat.completions.create({
model: "llama-3.3-70b-versatile",
messages: [{
role: "user",
content: `Create a ${days}-day study plan for ${subject}.
Return ONLY a JSON array with day, topic, description.`
}]
});
3. Notion MCP creates pages automatically
await notion.pages.create({
parent: { database_id: DATABASE_ID },
properties: {
Task: { title: [{ text: { content: `Day ${item.day}: ${item.topic}` } }] },
Date: { date: { start: taskDate } },
"Exam Date": { date: { start: examDate } },
Hours: { number: parseInt(hours) },
Subject: { rich_text: [{ text: { content: subject } }] }
}
});
How I Used Notion MCP
Notion MCP is the core output layer of this project:
- ✅ Connects to Notion workspace database
- ✅ Creates structured pages for each study day
- ✅ Fills Task, Date, Exam Date, Hours, Subject columns
- ✅ Adds AI-generated descriptions inside each page
- ✅ Everything happens automatically — zero manual work!
Tech Stack
| Tool | Purpose |
|---|---|
| Groq AI (LLaMA 3.3) | Generate smart study topics |
| Notion MCP | Auto-sync plans to Notion |
| Node.js + Express | Backend server |
| HTML/CSS/JS | Beautiful dark UI |
What I Learned
- How to integrate Notion MCP with AI workflows
- How to structure AI prompts to return clean JSON
- How to build a full-stack AI automation tool
👨💻 Team Details
Solo Submission
- Name: Sarvesh M
- DEV Username: @sarveshofficial
- GitHub: https://github.com/sarveshm555
Built with ❤️ from India 🇮🇳
Top comments (0)