educhain-mcp-server

MandarKURUNDWADE/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 specialized server designed to facilitate secure and efficient communication between educational applications and services using the Model Context Protocol (MCP).

EduChain MCP Server

An MCP (Model Context Protocol) server that integrates the EduChain library with Google Gemini API to provide AI-powered educational content generation.

Features

  • šŸŽ“ Educational Content Generation

    • Multiple-choice questions (MCQs) on any academic topic
    • Comprehensive lesson plans with objectives and activities
    • Study flashcards (bonus feature)
  • šŸ¤– AI-Powered

    • Powered by Google Gemini's advanced language model
    • Customizable difficulty levels and learning objectives
    • Context-aware content generation
  • šŸ”Œ MCP Integration

    • Seamless integration with Claude Desktop
    • Standardized API endpoints for educational tools
    • Extensible architecture for additional features

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.8 or higher
  • Google Gemini API key
  • Claude Desktop installed (for testing)
  • Node.js (for MCP support in Claude Desktop)

Installation

To install EduChain MCP Server, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/educhain-mcp-server.git
    cd educhain-mcp-server
    
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install the dependencies:

    pip install -r requirements.txt
    
  4. Create a .env file:

    cp .env.example .env
    

    Then edit .env and add your Google Gemini API key.

Usage

Starting the Server

python educhain_mcp_server.py

Testing with Claude Desktop

  1. Configure Claude Desktop by editing claude_desktop_config.json
  2. Update the cwd path to your project directory
  3. Add your Google API key in the environment variables
  4. Restart Claude Desktop

Example Commands

  • Generate MCQs: "Create 5 multiple-choice questions about Python loops"
  • Get lesson plan: "Provide a 45-minute lesson plan on algebra for high school"
  • Create flashcards: "Make 10 definition flashcards about data structures"

Project Structure

educhain-mcp-server/
ā”œā”€ā”€ educhain_mcp_server.py      # Main server implementation
ā”œā”€ā”€ test_educhain.py            # Setup verification
ā”œā”€ā”€ requirements.txt            # Python dependencies
ā”œā”€ā”€ .env                        # Environment config (ignored)
ā”œā”€ā”€ .env.example                # Environment template
ā”œā”€ā”€ claude_desktop_config.json  # Claude config
ā”œā”€ā”€ README.md                   # This file
└── .gitignore                  # Git ignore rules

API Documentation

The server provides the following MCP endpoints:

Tools

  • generate_mcq(topic, num_questions, difficulty_level, custom_instructions)
  • generate_lesson_plan(topic, duration, grade_level, learning_objectives)
  • generate_flashcards(topic, num_cards, difficulty_level, card_type)

Resources

  • educhain://topic/{topic} - Get topic overview
  • educhain://questions/{topic} - Get sample questions

Troubleshooting

If you encounter issues:

  • Server not starting:

    • Verify Python is in your PATH
    • Check all dependencies are installed (pip list)
    • Ensure Google API key is valid
  • Tools not appearing in Claude:

    • Restart Claude Desktop completely
    • Check server logs for errors
    • Verify JSON configuration syntax

License

This project is licensed under the MIT License