greenfield-school
Click on "Install 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., "@greenfield-schoolWho are the top 3 students in Mathematics?"
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.
Greenfield Public School — MCP Teaching & AI Chatbox Example
A comprehensive, classroom-ready demonstration of the Model Context Protocol (MCP) using a realistic school database as the domain. Designed for undergraduate students learning how AI systems connect to external tools and data sources via standard input/output (
stdio) pipes and JSON-RPC 2.0 messaging.
What Is MCP?
Model Context Protocol (MCP) is an open standard by Anthropic that defines how AI assistants (clients) communicate with external data sources and tools (servers). Think of it like a standardized API specifically designed for AI applications.
┌─────────────────────┐ JSON-RPC 2.0 ┌─────────────────────────┐
│ AI Application │ ◄──────────────────── ► │ MCP Server │
│ (MCP Client) │ over stdio/HTTP │ • Tools (functions) │
│ │ │ • Resources (data) │
│ e.g. OpenAI GPT, │ │ • Prompts (templates) │
│ Claude, Cursor │ │ │
└─────────────────────┘ └─────────────────────────┘Real-world MCP clients: Claude Desktop, Cursor IDE, Windsurf, custom AI apps (ai_chatbox.py).
Related MCP server: MCP-Server-CollageAI
Project Overview
This project simulates a school MCP server that manages:
Student marks (30 students × 5 subjects)
Enrollment records (roll numbers, admission dates)
School rules (norms and regulations document)
Awards policy (rank 1–5 award definitions)
Class statistics (class average, pass/fail breakdown, subject toppers)
The MCP server allows AI clients to query this data through a well-defined protocol.
Active Project Structure
c:\Satish_Files\MCP_Server\
├── data/
│ ├── students_marks.json # Marks for 30 students across 5 subjects
│ ├── enrollment.json # Roll numbers, admission dates, grade sections
│ ├── awards_policy.json # Rank-based (1-5) and subject-based awards policy
│ └── school_rules.txt # 10-section school norms and regulations document
│
├── server/
│ └── school_mcp_server.py # Core MCP Server (exposes 7 tools, 4 resources, 2 prompts)
│
├── ai_chatbox.py # AI Chatbox using OpenAI gpt-4o-mini function calling + MCP client
├── mcp_logger.py # Centralized, instant-flushing protocol logger (writes to logs/)
├── requirements.txt # Python dependencies (mcp, colorama, openai)
├── README.md # Setup guide, capabilities, and instructions (this file)
├── Project_structure.md # Architecture, component map, and execution flow
└── old_files.zip # Zip archive of legacy/redundant filesSetup & Installation
Step 1: Install Python 3.10+
Make sure you have Python 3.10 or newer:
python --versionStep 2: Create a Virtual Environment (Recommended)
cd c:\Satish_Files\MCP_Server
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # macOS / LinuxStep 3: Install Dependencies
pip install -r requirements.txtInstalled packages include
mcp[cli](v2.x),openai(v1.x), andcolorama.
Running the AI Chatbox
Run the main AI-powered Chatbox (OpenAI GPT-4o-mini + MCP Client):
python -X utf8 ai_chatbox.pyExample Queries to Ask in Plain English:
"How many students are in the class?"
"What are Meera Iyer's marks?"
"Who are the top 3 students in Mathematics?"
"Who are the top 3 students in Computer Science?"
"Who are the top 3 students overall?"
"When did Harshit Yadav enroll?"
"What award does rank 1 get?"
"What is the attendance policy?"
Inspect Converted OpenAI Tool Schemas:
Inside the interactive prompt of ai_chatbox.py, type:
You: toolsor
You: schemasIt will pretty-print the exact converted OpenAI function schemas (mcp_tools_to_openai) in the terminal.
Testing with MCP Inspector
The MCP SDK includes a built-in web-based inspector for testing server capabilities interactively:
mcp dev server/school_mcp_server.pyThis opens a browser UI where you can invoke tools and inspect resource URIs directly.
MCP Server Capabilities
🛠️ Tools (Callable Actions)
Tool Name | Arguments | What It Does |
|
| Returns marks, aggregate (out of 500), percentage, grade |
|
| Returns top N students by overall percentage |
|
| Returns top N students in a subject or total |
| (none) | Returns class summary, average (79.99%), pass/fail rates, grade breakdown |
|
| Returns enrollment number and date of admission |
| (none) | Returns complete rank and subject awards policy |
|
| Searches 10 sections of school norms document |
📂 Resources (Readable Data)
URI | Content Type | What It Contains |
| JSON | All 30 students with full marks data |
| JSON | All enrollment records |
| Text | Full school norms document |
| JSON | Complete awards policy |
💬 Prompts (Reusable Templates)
Prompt Name | Arguments | Purpose |
|
| Generates a student analysis prompt template |
| (none) | Generates a class overview prompt template |
Real-Time Protocol Logging
Every session generates an instant-flushing log file in logs/mcp_session_<timestamp>.log.
To View the Latest Session Log:
Get-ChildItem logs\ | Sort-Object LastWriteTime -Descending | Select-Object -First 1 | Get-ContentThe log records:
User Query
AI Intent Reasoning (Why GPT selected a specific tool and arguments)
JSON-RPC Protocol Request (
tools/call)Server Execution Result from school database
Final AI Answer
Connecting to Claude Desktop
To connect this server to Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"greenfield-school": {
"command": "python",
"args": ["c:/Satish_Files/MCP_Server/server/school_mcp_server.py"]
}
}
}Further Reading
Built for teaching MCP to undergraduate students | Greenfield Public School Example
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Let AI agents query data and act across all your business apps via MCP.
An agent-native database over MCP: shared, validated, structured records in every AI chat.
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAI-powered Teacher Assistance MCP Server for managing student records with PostgreSQL, enabling create and read operations via MCP tools.MIT
- FlicenseNot gradedqualityCmaintenanceProvides tools for querying student academic data such as subjects, marks, performance reports, timetable, exams, fees, events, holidays, and assignments via natural language.
- 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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Prince-0723/MCP_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server