Educhain_MCP_Server

Meet-official/Educhain_MCP_Server

3.2

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.

Tools
  1. generate_mcq

    Generates multiple-choice questions based on a given topic and count.

  2. 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 and test_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

RequirementStatus
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


๐Ÿ“œ License

This project uses public open-source tools and APIs. EduChain is credited and linked. No proprietary code has been used.