Meet-official/Educhain_MCP_Server
If you are the rightful owner of Educhain_MCP_Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
EduChain MCP Server is a project that demonstrates the integration of the EduChain library with a Model Context Protocol (MCP) server to generate educational content.
generate_mcq
Generates multiple-choice questions based on a given topic and count.
lesson_plan
Returns a structured lesson plan for a specified subject.
EduChain MCP Server
Hello, My name is Meet Patel. This project demonstrates my ability to build a Model Context Protocol (MCP) server using the EduChain library and integrate it with external tools for educational content generation.
๐ Objective
Build an MCP-compliant server using the EduChain library that:
- Generates educational content (MCQs, lesson plans)
- Exposes them via HTTP endpoints
- Can integrate with tools like Claude Desktop (via MCP spec)
๐ Repository Structure
ai_intern_assignment/
โโโ test_educhain.py # Test EduChain integration
โโโ mcp_server.py # Main MCP server using Flask
โโโ test_api.py # Manual API testing script
โโโ Sample_Responses.txt # Example inputs & outputs
โโโ README.md # This file
โ ๏ธ IMPORTANT: For security reasons, my API key is not included. Please replace the placeholder in
mcp_server.py
andtest_educhain.py
with your own Gemini API key from https://aistudio.google.com/app/apikey
โ Task Breakdown
๐งฉ Task 1: Set Up the EduChain Environment
- โ Installed EduChain and dependencies
- โ Integrated EduChain using Gemini API (Google)
- โ
Tested generation of:
- Multiple-choice questions (MCQs)
- Lesson plans
- โ
Sample topic used:
"Python Programming Basics"
๐ Citation: EduChain documentation from satvik314/educhain
โ๏ธ Task 2: Build the MCP Server with EduChain
- โ Built Flask server in Python
- โ
Created two HTTP tools:
/generate_mcq
: Generates MCQs based on topic + count/lesson_plan
: Returns a structured lesson plan for a subject
- โ Responses are returned in clean JSON format
- โ Tools follow MCP-compatible input schema
๐ Citation: Claude MCP server logic adapted to HTTP-compatible endpoints (in absence of official Claude SDK)
๐งช Task 3: Test the MCP Server
- โ
Used Python's
requests
library to test endpoints manually - โ Verified server response matches expected EduChain outputs
- โ Claude Desktop was not tested due to system compatibility issues (not mandatory)
๐งพ Sample Commands & Responses
Refer to the file for:
- Input JSON requests for each tool
- JSON output from the server
๐ Bonus (Optional Points)
- MCP Server includes 2 tools (MCQ + Lesson Plan)
- Uses Gemini API (free) for educational content generation
- Video Walkthrough (Optional โ Not created due to time constraints)
๐งช Requirements Met
Requirement | Status |
---|---|
Code Documentation | โ Done |
Proper Citation | โ Done |
JSON-formatted Outputs | โ Done |
GitHub Repo with All Files | โ Done |
Sample Commands and Outputs | โ Done |
Claude Integration Attempted | โ Skipped |
๐ง Tools Used
- EduChain
- Flask
- Google Gemini API
- ChatGpt
- Python 3.11
- Visual Studio Code
๐ License
This project uses public open-source tools and APIs. EduChain is credited and linked. No proprietary code has been used.