DIU Question Access
Allows Google Gemini Connected Apps to discover and use the server's tools for exploring DIU departments, courses, semesters, and exam types, searching available papers, collecting questions, and previewing exam pages.
Allows ChatGPT to integrate via a custom MCP plugin or Custom GPT Actions, enabling search, retrieval, transcription, and page preview of DIU examination question papers.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
DIU Question Access — Production MCP & REST Server
A high-performance Model Context Protocol (MCP) and FastAPI REST API server that dynamically discovers, indexes, streams, and delivers Daffodil International University (DIU) examination question papers from the OurDIU repository.
Engineered with a Dual-Protocol Engine for universal compatibility across:
Google Gemini (Connected Apps via Streamable HTTP JSON-RPC)
OpenAI ChatGPT (Custom MCP Plugin via SSE & Custom GPT Actions via OpenAPI)
Claude Desktop, Cursor, Windsurf (SSE & stdio)
Web Browsers & Mobile Clients (Interactive Swagger UI & REST APIs)
🌐 Live Service Endpoints
The server is deployed live on cloud infrastructure:
Endpoint | URL | Description |
Primary Root | Live status & index summary | |
Universal MCP Endpoint |
| Dual-mode MCP: SSE (GET) & JSON-RPC (POST) |
Interactive Docs | Interactive Swagger UI (test in browser) | |
OpenAPI Specification | OpenAPI 3.1 schema for ChatGPT Actions | |
Health Check | Uptime and database health probe |
Free Tier Cold Starts: Render spins down inactive instances. The very first request after inactivity may take ~30–50 seconds to wake up. Subsequent requests respond instantly.
Related MCP server: byrdocs-search-mcp
📖 How to Use (Integration Guide)
1. Connect to Google Gemini (Connected Apps / Custom MCP)
Google Gemini natively supports connecting to custom MCP servers via Streamable HTTP:
Open Google Gemini in your browser.
Click on Settings (or the Tools / Extensions / Connected Apps icon) $\to$ Select Connect to an MCP server.
In the dialog, enter the MCP server URL:
https://diu-question-access.onrender.com/mcpClick Next / Connect. (No authentication required — leave settings as default).
Gemini will automatically discover all 10 tools (
collect_questions,search_questions,list_departments,list_courses,preview_question_page, etc.).Ask Gemini directly in the chat:
"DIU CSE ডিপার্টমেন্টের Art of Living কোর্সের Final পরীক্ষার প্রশ্নপত্রগুলো দাও"
"Show me previous Midterm questions for Operating Systems at DIU"
2. Connect to ChatGPT as a Custom MCP Plugin
ChatGPT supports MCP servers via Server-Sent Events (SSE):
Open ChatGPT in your browser.
Go to Plugins / Developer Settings $\to$ Click Add custom MCP server.
Fill in the connection form:
Name:
DIU Question AccessDescription:
Search and retrieve DIU examination question papers with page previews.Connection: Select Server URL
Server URL:
https://diu-question-access.onrender.com/mcpAuthentication: Select No authentication (None)
Check the confirmation box: ☑️ "I understand and want to continue".
Click Create as a plugin.
The plugin will be created and activated immediately.
3. Connect to ChatGPT as a Custom GPT (Actions)
If you prefer building a dedicated Custom GPT with full control over system instructions:
In ChatGPT, navigate to Explore GPTs $\to$ Click + Create $\to$ Select Configure.
Configure general info:
Name:
DIU Exam AssistantDescription:
Search, transcribe, and preview past Daffodil International University question papers.
Scroll down to Actions $\to$ Click Create new action.
In the Import from URL input, paste:
https://diu-question-access.onrender.com/openapi.jsonClick Import. ChatGPT will auto-populate all endpoints.
Set Authentication:
None.Set Privacy Policy:
https://ourdiu.comIn the Instructions box, paste:
"You are an academic assistant for Daffodil International University (DIU) students. Use the DIU Question actions to search past question papers by department, course, and semester. Transcribe questions clearly, provide high-resolution page previews when diagrams or formulas are discussed, and share direct download links."
Click Save (or Publish).
4. Connect to Claude Desktop
Connect Claude Desktop to the cloud service via SSE or run locally via stdio:
Option A: Remote Cloud Connection (SSE)
Add to your Claude configuration (%APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"diu-question": {
"url": "https://diu-question-access.onrender.com/mcp"
}
}
}Option B: Local stdio Mode
{
"mcpServers": {
"diu-question": {
"command": "python",
"args": [
"c:\\Users\\tasin\\Downloads\\diu-question\\server.py",
"--transport",
"stdio"
],
"cwd": "c:\\Users\\tasin\\Downloads\\diu-question"
}
}
}5. Direct Browser Usage (Interactive Swagger UI)
You can explore and test all endpoints directly without any AI client:
Click on any endpoint (e.g.,
GET /api/departmentsorGET /api/courses).Click Try it out $\to$ Enter parameters $\to$ Click Execute.
View JSON data or rendered page images directly in your browser.
💬 Example Prompts to Try
Once connected to Gemini, ChatGPT, or Claude, try asking:
1. ডিপার্টমেন্ট ও কোর্সের প্রশ্ন খোঁজা (Department & Course Exploration)
"DIU তে কী কী ডিপার্টমেন্টের প্রশ্নব্যাংক আছে?"
"Show all courses under the Computer Science and Engineering (CSE) department."
2. সেমিস্টার ও পরীক্ষা অনুযায়ী প্রশ্ন বের করা (Finding Exam Papers)
"CSE ডিপার্টমেন্টের Art of Living কোর্সের Final পরীক্ষার সবগুলো প্রশ্ন দাও"
"Find previous Midterm exam questions for Operating Systems from Fall 2023 and Spring 2024."
"Are there any Final exam papers for 'Algorithms' in the Software Engineering department?"
3. ডায়াগ্রাম ও ছবির পেজ প্রিভিউ (Multimodal Vision Analysis)
"Database Systems পরীক্ষার প্রশ্নপত্রের ১ নম্বর পেজটি প্রিভিউ করে ER ডায়াগ্রামটি বিশ্লেষণ কর।"
"Show me the schematic or circuit diagram from question 3 of the Digital Logic Design exam paper." (The server renders the exact PDF page as a high-resolution PNG image on-the-fly, allowing vision AI to analyze circuits, flowcharts, math equations, and tables).
4. পরীক্ষার প্রস্তুতি ও সাজেশন (Exam Preparation & Analysis)
"Artificial Intelligence কোর্সের বিগত ৩টি সেমিস্টারের প্রশ্ন বিশ্লেষণ করে সবচেয়ে কমন টপিকগুলো বের কর।"
"Compiler Design পরীক্ষার Midterm প্রশ্নের ভিত্তিতে একটি প্র্যাকটিস কুইজ তৈরি করে দাও।"
5. সরাসরি PDF ডাউনলোড লিংক (Direct Download Links)
"Spring 2024 Object Oriented Programming Final পরীক্ষার অরিজিনাল PDF ডাউনলোড লিংক দাও।"
🛠️ MCP Tools Reference (10 Tools)
Tool Name | Parameters | Description |
|
| Returns all academic departments discovered from OurDIU. |
|
| Returns courses under a specific department. |
|
| Lists available semesters with existing papers for the course. |
|
| Lists exam categories (Midterm, Final, Quiz) for the course. |
|
| Queries available exams without downloading (preview mode). |
|
| Collects papers, verifies binary headers, and registers records. |
|
| Lists downloaded/indexed questions with file identifiers. |
|
| Returns question text transcription, direct link, and file path. |
|
| Renders a page as high-res PNG image in-memory for AI vision. |
|
| Returns statistics regarding files, sizes, and categories. |
📡 REST API Reference
Method | Route | Description |
|
| Service root status & documentation index. |
|
| Cloud orchestrator health check probe. |
|
| Service health status. |
|
| Interactive Swagger documentation. |
|
| OpenAPI 3.1 specification for ChatGPT Actions. |
|
| MCP Server-Sent Events (SSE) streaming endpoint (ChatGPT/Claude). |
|
| MCP Streamable HTTP JSON-RPC endpoint (Gemini). |
|
| Discovered department list. |
|
| Department courses by query parameter. |
|
| Available semesters for a given course. |
|
| Available exam categories for a given course. |
|
| Search papers without local disk storage. |
|
| Collect papers and record database entries. |
|
| List collected/indexed question files. |
|
| Retrieve metadata and question text. |
|
| Stream binary PDF directly to browser/client. |
|
| Stream page as PNG image for browser/vision AI. |
|
| Session collection summary. |
💻 Local Development & Testing
1. Installation
git clone https://github.com/mahmudulhasantasin/diu-question-access.git
cd diu-question-access
python -m venv .venv
source .venv/bin/activate # or .\.venv\Scripts\Activate.ps1 on Windows
pip install -r requirements.txt2. Automated Tests (38 Tests Passing 100%)
python -m pytest -v3. Run Locally
# REST API & MCP HTTP Server (Port 8000)
python server.py --transport http --host 0.0.0.0 --port 8000
# stdio mode (Claude Desktop)
python server.py --transport stdio📜 License
This project is open-source and licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
License-checked research archive and technical-spec search for AI agents. Pay per call via x402.
Academic papers, reference verification and research data for AI agents.
Ingest, manage, and retrieve documents for RAG-powered AI applications
Search papers from 36 AI conferences, including NeurIPS, ICLR, ICML, and CVPR.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables searching and retrieving CAIE past-paper questions with filters for subjects, years, and specific topics. It provides LLM-friendly responses including concise text previews and structured JSON data for single or multi-topic queries.71-
- FlicenseNot gradedqualityDmaintenanceEnables AI clients to search BUPT byrdocs materials, past exam papers, and freshmen knowledge base via natural language.-
- AlicenseBqualityDmaintenanceEnables AI assistants to search and retrieve CodeChef VIT university question papers from MongoDB, offering tools for paper search, metadata retrieval, and recent paper feeds.2ISC
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to search and read university web pages and PDF/Office documents, query live phone directory, food menu, academic calendar, announcements, and AKTS course plans, and return sourced answers with URLs and dates.MIT