StudyPilot MCP Server

StudyPilot MCP Server

Provides tools to extract key facts from study notes, generate quizzes, and grade answers via JSON-RPC.

Category
Visit Server

README

šŸ“š StudyPilot AI

A secure, full-stack multi-agent study assistant — paste your notes, get a quiz, get graded, and track your progress over time. Built for the Google Ɨ Kaggle AI Agents: Intensive Vibe Coding Capstone Project (Freestyle Track).

Status Mode License


šŸŽÆ What It Does

StudyPilot AI turns raw study notes into a full learning loop:

  1. Paste or upload your notes in the Study Lab
  2. An agent pipeline sanitizes the input, extracts key facts, and generates a quiz
  3. Take the quiz — questions are built directly from real sentences in your notes
  4. Get graded instantly, with explanations that quote your original notes back to you
  5. Track your progress over time on the Dashboard, with full history of every attempt

Runs completely offline in high-fidelity Simulation Mode — no API key required. Optionally connect a free Gemini API key for live LLM-powered generation.


šŸ–¼ļø Screenshots

(Add your dashboard, quiz, and feedback screenshots here)

Dashboard Quiz Session Feedback Hub
Dashboard Quiz Feedback

🧠 Multi-Agent Architecture

StudyPilot AI is built on an ADK-style multi-agent system, where each agent has a single clear responsibility and hands off to the next:

 User Notes
     │
     ā–¼
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Notes Extractor     │  → validates, sanitizes, extracts key terms & facts
│  Agent               │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
          ā–¼
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Quiz Generator      │  → builds fact-based questions from real note content
│  Agent               │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
          ā–¼
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Grader / Feedback   │  → scores answers, explains mistakes using source text
│  Agent               │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
          ā–¼
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Progress Tracker    │  → logs attempts, tracks trends, flags weak topics
│  Agent               │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Key Concepts Demonstrated

Concept Implementation
Multi-Agent System (ADK) BaseAgent class + 4 specialized sub-agents coordinating in a pipeline
MCP Server mcp_server.py exposes agent capabilities (extract_notes, generate_quiz, grade_answers) as MCP tools over JSON-RPC
Security Features safety_filter.py — input size validation, prompt-injection heuristics, HTML/script sanitization before any content reaches an agent
Agent Skills Reusable skill modules (safety_filter, db_store) declared and used across agents
Deployability Single-command local deployment via Flask, localhost:3000

šŸ› ļø Tech Stack

  • Backend: Python, Flask
  • Frontend: HTML, CSS, vanilla JS, Chart.js
  • Data Storage: Lightweight JSON file store (db.json)
  • AI Integration: Optional Google Gemini API (google-genai), with full offline simulation fallback
  • Protocol: Model Context Protocol (MCP) server for agent tool exposure

šŸš€ Getting Started

Prerequisites

  • Python 3.9+
  • pip

Installation

git clone https://github.com/Anchal-Verma04/studypilot-ai.git
cd studypilot-ai
pip install -r requirements.txt

Run the app

python src/server.py

Then open your browser at:

http://localhost:3000

That's it — no API key needed. The app runs fully offline in Simulation Mode.

(Optional) Enable live Gemini AI

  1. Get a free API key at aistudio.google.com/apikey
  2. Copy .env.example to .env
  3. Add your key:
    GEMINI_API_KEY=your_key_here
    
  4. Restart the server

šŸ“‚ Project Structure

studypilot-ai/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ agents/
│   │   ā”œā”€ā”€ base_agent.py
│   │   ā”œā”€ā”€ notes_extractor_agent.py
│   │   ā”œā”€ā”€ quiz_generator_agent.py
│   │   ā”œā”€ā”€ grader_agent.py
│   │   └── progress_tracker_agent.py
│   ā”œā”€ā”€ skills/
│   │   ā”œā”€ā”€ safety_filter.py
│   │   └── db_store.py
│   ā”œā”€ā”€ public/
│   │   ā”œā”€ā”€ index.html
│   │   ā”œā”€ā”€ styles.css
│   │   └── app.js
│   ā”œā”€ā”€ mcp_server.py
│   ā”œā”€ā”€ server.py
│   └── test_agents.py
ā”œā”€ā”€ db.json
ā”œā”€ā”€ requirements.txt
ā”œā”€ā”€ .env.example
└── README.md

šŸ”’ Security Notes

  • All user-submitted notes pass through size validation and prompt-injection heuristics before reaching any agent
  • Content is HTML-sanitized to prevent script injection in the UI
  • No credentials are hardcoded — API keys are loaded from a local .env file (never committed to version control)

šŸ† About This Project

Built as the capstone project for Google & Kaggle's 5-Day AI Agents: Intensive Vibe Coding Course (Freestyle Track), demonstrating multi-agent orchestration, MCP server design, agent skills, and security-conscious agent architecture — developed using Antigravity IDE.


šŸ“„ License

MIT License — free to use, modify, and learn from.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured