Student Assistant MCP Server
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., "@Student Assistant MCP Server Calculate my CGPA for SGPAs 8.5, 8.9, and 9.1"
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.
Student Assistant MCP Server
A local Model Context Protocol (MCP) server built with Python that allows AI assistants to calculate CGPA, view assignment deadlines, and search subject notes.
Features
Calculate CGPA from semester SGPA values
Read assignment deadlines from a JSON file
Filter deadlines by subject
Search local subject notes
Connect with MCP-compatible clients such as VS Code
Test tools using MCP Inspector
Related MCP server: Student MCP Server
Tech Stack
Python 3.10+
MCP Python SDK
uv package manager
JSON and text files
MCP Inspector
Visual Studio Code
Project Structure
student-assistant-mcp/
├── .vscode/
│ └── mcp.json
├── notes/
│ ├── daa.txt
│ └── dbms.txt
├── src/
│ └── student_assistant_mcp/
│ ├── __init__.py
│ └── server.py
├── .gitignore
├── .python-version
├── deadlines.json
├── pyproject.toml
├── README.md
└── uv.lockAvailable MCP Tools
calculate_cgpa
Calculates an estimated CGPA from a list of semester SGPA values.
Example input:
{
"semester_sgpas": [8.5, 8.9, 9.1]
}Example output:
Your estimated CGPA is 8.83.The current calculation treats every semester as having equal weight.
get_upcoming_deadlines
Reads deadlines from deadlines.json and optionally filters them by subject.
Example input:
{
"subject": "DAA"
}Example output:
DAA: Complete Assignment 4 — 2026-09-15search_notes
Searches for a word or phrase inside a subject's text file.
Example input:
{
"subject": "DAA",
"query": "negative"
}Example output:
It does not work correctly with negative edge weights.Installation
1. Clone the repository
git clone https://github.com/apurva8255/student-assistant-mcp.git
cd student-assistant-mcp2. Install uv
Follow the installation guide at:
https://docs.astral.sh/uv/getting-started/installation/
On Windows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Restart the terminal after installation.
3. Install dependencies
uv syncRunning the MCP Server
uv run python -m student_assistant_mcp.serverThe terminal may remain blank because the server communicates through standard input and output and waits for an MCP client.
Press Ctrl + C to stop the server.
Testing with MCP Inspector
Node.js 22.19 or newer is required for the current MCP Inspector.
Run:
npx @modelcontextprotocol/inspector uv run python -m student_assistant_mcp.serverOpen the local URL shown in the terminal, connect to the server, and select Tools → List Tools.
Connecting to VS Code
Create .vscode/mcp.json with the following configuration:
{
"servers": {
"studentAssistant": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"python",
"-m",
"student_assistant_mcp.server"
],
"cwd": "${workspaceFolder}"
}
}
}In VS Code:
Open the Command Palette using
Ctrl + Shift + P.Run
MCP: List Servers.Select
studentAssistant.Start the server.
Open VS Code Chat in Agent mode.
Example prompts:
Calculate my CGPA for SGPAs 8.5, 8.9 and 9.1.
Show my DAA deadlines.
Search my DAA notes for negative edge weights.How It Works
The AI assistant discovers the tools exposed by the MCP server. When a user asks a relevant question, the AI selects a tool and supplies the required arguments.
The Python server executes the function, reads any required local data, and returns the result to the AI assistant.
User → AI assistant → MCP server → Python tool
User ← AI response ← Tool result ←─────────Future Improvements
Credit-weighted CGPA calculation
Automatic deadline sorting
Completed-task tracking
PDF and DOCX note search
Semantic search using embeddings
SQLite database integration
Google Calendar integration
Deadline reminders
Remote deployment with authentication
Author
Apurva Sidhawar
B.Tech Computer Science and Engineering — Artificial Intelligence and Machine Learning
Vishwakarma Institute of Technology, Pune
Available Tools
3 toolscalculate_cgpaC
Calculate CGPA from semester SGPA values.
Args: semester_sgpas: List of SGPA values.
Inputs: semester_sgpas (required). Returns: result
get_upcoming_deadlinesC
Get college assignment deadlines.
Args: subject: Optional subject name used to filter deadlines.
Inputs: subject. Returns: result
search_notesB
Search for a word or phrase in subject notes.
Args: subject: Subject name, such as DAA or DBMS. query: Word or phrase to search for.
Inputs: query (required), subject (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: grade calculation, deadline retrieval, and note search. An agent can easily tell which tool applies to a given student query.
All tools follow a consistent snake_case verb_noun pattern: calculate_cgpa, get_upcoming_deadlines, search_notes. The convention is predictable and readable.
Three tools is a lean but reasonable set for a narrow student assistant scope. It could slightly benefit from additional tools for common tasks, but no tool feels redundant.
The surface is read/calculate-only: no tools to add or update deadlines, save/edit notes, or record semester grades. Common student assistant workflows like creating reminders or managing notes would hit dead ends.
Maintenance
Related MCP Connectors
Lets Claude, ChatGPT, and Muse read and update your beckett tasks, notes, calendar, and lists.
Notes and actions in one app. Let Claude or ChatGPT read and update them.
Turn any recording or document into notes, flashcards and quizzes your agent can read and act on
Manage tasks, Focus Zone, notes, projects, and task history from compatible AI assistants.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables University of Toronto students to access academic data from ACORN and Quercus via AI assistants. It provides tools to retrieve course schedules, enrollment details, syllabi, assignments, and announcements.-
- FlicenseNot gradedqualityDmaintenanceEnables an AI assistant to help students by providing tools for math calculations, attendance tracking, marks analysis, reading PDF notes, searching lecture notes, and checking college regulations.-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read courses, upcoming deadlines, assignment details, grades, announcements, modules, files, inbox, and timetable from U of T Quercus and ACORN through read-only tools.1MIT
- AlicenseAqualityBmaintenanceEnables AI apps to compute GPAs from courses and credits, convert between letter and percentage grades, determine the score needed on a final exam, analyze weighted course grades, and plan the GPA required for a target cumulative result.8198 npmMIT