offline-mcp-educational-server

offline-mcp-educational-server

Enables generation of educational content like MCQs, lesson plans, and flashcards without relying on external LLMs, fully offline and compatible with Claude Desktop.

Category
Visit Server

README

โœ… README.md

# Offline MCP Server โ€” EduChain Assignment Submission

This project implements an **offline MCP (Meta-Channel Protocol) server** that simulates educational content generation tools without using any external LLMs (e.g., OpenAI or Gemini). It is fully compatible with Claude Desktop or can be tested independently using browser, Postman, or cURL.

---

## ๐Ÿ“‚ Project Structure

. โ”œโ”€โ”€ run.py # Entry point to run the Flask server โ”œโ”€โ”€ requirements.txt # Dependencies (Flask) โ”œโ”€โ”€ claude_desktop_config.json # Claude Desktop configuration (optional) โ”œโ”€โ”€ Sample_Responses.txt # Sample API calls and responses โ”œโ”€โ”€ README.md # This file โ””โ”€โ”€ app/ โ”œโ”€โ”€ init.py # Initializes the Flask app โ”œโ”€โ”€ routes.py # Flask routes and UI form โ””โ”€โ”€ edu_utils.py # Core educational logic (MCQs, plans, flashcards)


---

## ๐Ÿš€ Features

| Tool             | Endpoint                | Description                                     |
|------------------|--------------------------|-------------------------------------------------|
| MCQ Generator    | `/generate-mcqs`         | Generates MCQs based on topic and count         |
| Lesson Plan Tool | `/get-lesson-plan`       | Returns a structured lesson plan for a subject  |
| Flashcards Tool  | `/generate-flashcards`   | Creates flashcards from topic keywords          |
| Test UI          | `/`                      | Browser form to test all routes easily          |

---

## ๐Ÿง  LLM-Free Design

Instead of calling real LLMs like OpenAI or Gemini, this project:
- Uses **handwritten logic**
- Returns **realistic educational content**
- Fully mimics JSON structure expected by Claude Desktop

---

## ๐Ÿ”ง Installation & Run

### Step 1: Install requirements

```bash
pip install -r requirements.txt

Step 2: Run the Flask server

python run.py

By default, the server runs on:

http://localhost:5001

๐ŸŒ Test the Server (Without Claude)

Visit in browser:

http://localhost:5001

Use the dropdowns and forms to test:

  • Generate MCQs
  • Get Lesson Plan
  • Create Flashcards

Or use Postman / curl.


๐Ÿงช Sample Request

POST /generate-mcqs

{
  "topic": "Python Basics",
  "count": 2
}

Sample Response

{
  "mcqs": [
    {
      "question": "Which keyword is used to define a function in Python?",
      "options": ["define", "def", "func", "lambda"],
      "answer": "def"
    },
    ...
  ]
}

๐Ÿ›  Claude Desktop Integration (Optional)

Use the claude_desktop_config.json file provided to connect this server to Claude Desktop. Restart Claude Desktop after configuring it.


๐Ÿ“ฅ Submission Checklist

  • [x] mcp_server.py โ†’ now modular: run.py + routes.py + utils.py
  • [x] claude_desktop_config.json
  • [x] Sample_Responses.txt
  • [x] README.md
  • [x] Uses NO LLMs (fully offline)
  • [x] Tested via browser, Postman, and curl

๐Ÿ“ง Author

Nihal Jaiswal B.Tech (2026) GitHub: [github.com/yourusername]

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
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
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
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
Qdrant Server

Qdrant Server

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

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