mcp-educhain-assignment

jkpraveena/mcp-educhain-assignment

3.2

If you are the rightful owner of mcp-educhain-assignment 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 Integration is a project that implements an MCP server using the EduChain library to generate educational content.

READ IN CODE VIEW FOR BETTER FORMAT

mcp-educhain-assignment

EduChain MCP Server Integration – This project implements an MCP server using the EduChain library to generate educational content such as multiple-choice questions, lesson plans, and flashcards. The server is fully compatible with Claude Desktop and demonstrates tool/resource integration via the Model Context Protocol (MCP).

πŸ“š EduChain MCP Server Integration with Claude Desktop

This project demonstrates how to build a Model Context Protocol (MCP) server using the EduChain library and integrate it with Claude Desktop. The server provides tools and resources to generate educational content such as MCQs and lesson plans on demand.

πŸš€ Features β€’ βœ… MCP-compliant server using Python β€’ βœ… Educational content generation using EduChain β€’ βœ… Seamless integration with Claude Desktop via claude_desktop_config.json β€’ βœ… Tools: β€’ Generate Multiple-Choice Questions (MCQs) and Flashcards β€’ βœ… Resources: β€’ Generate Lesson Plan β€’ βœ… Bonus: β€’ Sample content generator script β€’ Sample responses exported as .txt

πŸ—οΈ Project Structure

mcp-educhain-assignment/ β”œβ”€β”€ mcp_server.py # Main MCP server β”œβ”€β”€ .env # Environment file with your OPENAI_API_KEY β”œβ”€β”€ claude_desktop_config.json # Claude Desktop config (excluded in .gitignore) β”œβ”€β”€ README.md # You're reading it! β”œβ”€β”€ (task 1)generate_content.py # Script to generate lesson plan and MCQs │── (task 1)sample_responses.txt # Saved responses in plain text Proofs of final outcome is added in the form screenshots and videos in the directory

βΈ»

πŸ§ͺ Setup Instructions

  1. Clone the repo

git clone https://https://github.com/jkpraveena/mcp-educhain-assignment.git cd mcp-educhain-assignment

  1. Set up environment

Create a .env file with your OpenAI API key:

OPENAI_API_KEY=your_openai_api_key

  1. Run the MCP server

python mcp_server.py

  1. Configure Claude Desktop

Update your claude_desktop_config.json:

{ "command": "/path/to/python3", "args": ["/path/to/mcp_server.py"] }

πŸ’‘ For security, this config is excluded from GitHub via .gitignore.