college-tools-mcp
Provides tools for querying a SQLite college management database, including retrieving student/faculty profiles, course details, enrollments, departmental course listings, course statistics, and executing read-only SQL queries.
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., "@college-tools-mcpShow me the roster for BIO 210"
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.
College Management AI Assistant (v5)
An intelligent college administrative assistant powered by Google Gemini and the Model Context Protocol (MCP). The assistant interacts with a relational SQLite database through structured FastMCP tools to answer inquiries regarding students, faculty, courses, enrollments, and academic performance.
Architecture Overview
+-------------------------------------------------------------+
| User / Client |
+-------------------------------------------------------------+
|
v
+-------------------------------------------------------------+
| Gemini LLM Assistant |
| (bot.py) |
+-------------------------------------------------------------+
|
MCP Protocol (stdio)
|
v
+-------------------------------------------------------------+
| FastMCP Server |
| (tooling.py) |
+-------------------------------------------------------------+
|
SQLite Queries
|
v
+-------------------------------------------------------------+
| College SQLite Database |
| (college.db) |
| - persons (students, faculty, staff) |
| - courses |
| - student_enrollments |
+-------------------------------------------------------------+Related MCP server: College AI Assistant
Features
Synthetic Data Generation: Creates realistic college records using
Fakerincluding students, faculty, courses, and grade histories.FastMCP Tooling: Exposes robust, schema-compliant MCP tools for querying academic records, courses, departments, and enrollment statistics.
Interactive Multi-turn Bot: Chat interface leveraging the Google GenAI SDK (
google-genai) with automatic tool call orchestration via MCP.Secure Configuration: Environment-based API key management with
.envsupport.
Project Structure
.
├── bot.py # Interactive Gemini chatbot integrating MCP tools via stdio
├── tooling.py # FastMCP Server exposing database querying tools
├── create_data.py # SQLite database schema initializer & synthetic data generator
├── college.db # SQLite database file (generated by create_data.py)
├── system_prompt.txt # System instruction prompt for the AI assistant
├── prompt.txt # Context and initial project design prompts
├── mcp_config.example.json # Example configuration for MCP client registration
├── requirements.txt # Python package dependencies
├── .env # Environment variables (GEMINI_API_KEY)
└── .gitignore # Git ignore file for Python, SQLite, and secretsDatabase Schema
The SQLite database (college.db) includes the following relational tables:
persons: Stores students, faculty, and staff profiles (ID, name, email, phone, DOB, gender, address, role).courses: Stores course listings (course ID, code, course name, department, credits, assigned instructor).student_enrollments: Stores enrollment details (enrollment ID, student ID, course ID, date, grade, semester).
Available MCP Tools (tooling.py)
get_student_info(student_id_or_name): Retrieve student profiles by ID, name, or email.get_course_details(course_code_or_name): Get course details and instructor info.get_student_enrollments(student_id_or_name): List all courses and grades for a student.get_students_by_course(course_code_or_name): List students enrolled in a given course.list_courses_by_department(department): List all courses in an academic department.get_courses_taught_by_faculty(faculty_id_or_name): List courses taught by a faculty member.search_persons(query, role): Search persons across roles (student, faculty, staff).get_course_statistics(course_code_or_name): Summary stats (total enrolled, grade distribution).list_all_courses(): Complete directory of all college courses.execute_custom_sql_query(query): Read-only query execution for complex aggregations.
Setup & Installation
1. Prerequisites
Python 3.10+ installed
Google Gemini API Key (Google AI Studio)
2. Install Dependencies
pip install -r requirements.txt3. Configure Environment Variables
Create or edit your .env file in the project root:
GEMINI_API_KEY=your_actual_gemini_api_key_here4. Generate Synthetic Database
Initialize the database with synthetic records:
python create_data.pyUsage
Run the Interactive AI Bot
python bot.pyType your academic or administrative questions (e.g., "Show me all courses in Computer Science" or "What grades did John Doe receive?"). Type exit or quit to end the session.
Connect as an MCP Server (e.g. IDE / Claude Desktop / Antigravity)
Reference mcp_config.example.json to register tooling.py in your MCP client configuration:
{
"mcpServers": {
"college-tools-mcp": {
"command": "python",
"args": [
"-Wignore",
"<FULL_PATH_TO>/tooling.py"
]
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
- dataOAuthco.thinair
Read-only PostgreSQL, MySQL, SQL Server access via MCP — 24 dialect-aware hosted tools.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables querying student information such as marks, attendance, pending assignments, and timetables from a MySQL database through MCP tools.-
- FlicenseNot gradedqualityCmaintenanceProvides MCP tools for searching student profiles, viewing marks/attendance, and finding low-attendance students. Enables AI assistants like Gemini to interact with college student data through natural language.-
- FlicenseNot gradedqualityBmaintenanceMCP server exposing a university course catalog with tools for searching courses, looking up prerequisites and instructors, and generating prerequisite graphs, plus resources and a prompt template for AI academic advisors.-
- FlicenseNot gradedqualityCmaintenanceEnables LLM agents to safely query educational administration databases through read-only MCP tools, enforcing SQL whitelisting, automatic LIMIT caps, parameterized queries, timeouts, token authentication, and audit logging.-