educhain_mcp

thor-x-me/educhain_mcp

3.2

If you are the rightful owner of educhain_mcp 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.

MCP Server with EduChain Integration is designed to enhance educational content delivery by leveraging the capabilities of the EduChain platform.

Tools
2
Resources
0
Prompts
0

๐Ÿ“š Educhain AI Learning Companion

This is an Educhain MCP sever built using Educhain. It provides educational tools such as automated MCQ generation and lesson planning on any topic using Educahin SDK.


๐Ÿš€ Features

  • Generate MCQs: Automatically generate multiple-choice questions with explanations for any topic.
  • Create Lesson Plans: Get structured, in-depth lesson plans tailored to any subject.
  • Generate different kinds of questions (e.g. "True/False", "Fill in the Blank", or "Short Answer")

๐Ÿ› ๏ธ Setup

Note: We are using uv for managing this python project, visit uv installation steps for information about how to install uv on your system.

  1. Clone the repo and navigate to the project folder.

    git clone https://github.com/thor-x-me/educhain_mcp.git 
    
    cd educhain_mcp
    
  2. Create virtual environment and activate it:

    uv venv
    .venv\Scripts\activate
    
  3. Install dependencies:

    uv pip install .
    
  4. Set your API key: Create a .env file in root directory with:

    GOOGLE_API_KEY=your_google_genai_api_key
    

    Get your API key from Google AI Studio


๐Ÿงช How to Use

Install the server:

uv run mcp install main.py

This will add the required configuration in the MCP config file in Claude for Desktop

You can then interact with the MCP tools using Claude for Desktop:


Educhain MCP in Claude for Desktop

๐Ÿงฉ Available Tools

  • generate_mcqs(topic, number_of_questions) Generates MCQs for a given topic.

  • generate_lesson_plan(topic) Returns a structured lesson plan for any topic.

  • generate_different_types_of_question_from_educhain(topic, number_of_questions, question_type, difficulty_level) Generates different kinds of questions(e.g."True/False", "Fill in the Blank", or "Short Answer") with educhian SDK


๐Ÿ“ฆ Project Structure

.
โ”œโ”€โ”€ app.py               # Main entry script
โ”œโ”€โ”€ gemini_llm.py        # Educhain implementation using gemini api
โ”œโ”€โ”€ .env                 # Contains your Google API key
โ”œโ”€โ”€ pyproject.toml       # configuration file for the project
โ”œโ”€โ”€ uv.lock              # generated by uv to track dependencies 
โ”œโ”€โ”€ README.md            # Setup explanation for the project
โ”œโ”€โ”€ .gitignore           # files need not to be pushed on repository
โ”œโ”€โ”€ .python-version      # Generated by uv for tracking python version

๐Ÿ“š Dependencies

  • educhain
  • mcp[cli]
  • python-dotenv

Debugging

If you face any error accessing the tools from the Educahin MCP server it is most likely because of missing dependencies in config file, follow these steps:

Step 1. Go to settings Settings of Claude for Desktop

Step 2: Go to Developer and then Edit config Settings of Claude for Desktop

Step 3: Now open the file in Notepad Settings of Claude for Desktop

Step 4: Paste the following arguments in "Args" except the last line which is the address of the main script added by uv.

    "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with",
        "dotenv",
        "--with",
        "educhain",
        "mcp",
        "run",

Settings of Claude for Desktop

๐Ÿ‘ค Author

Abhishek Verma