MandarKURUNDWADE/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 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:
-
Clone the repository:
git clone https://github.com/yourusername/educhain-mcp-server.git cd educhain-mcp-server
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the dependencies:
pip install -r requirements.txt
-
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
- Configure Claude Desktop by editing
claude_desktop_config.json
- Update the
cwd
path to your project directory - Add your Google API key in the environment variables
- 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 overvieweduchain://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