Skip to main content
Glama
Skmalik768
by Skmalik768

🧠 EduChain MCP Server (Claude + Ollama)

This project exposes educational AI tools like multiple choice question (MCQ) generation, lesson planning, and flashcard creation via the Model Context Protocol (MCP).

It connects:

  • βœ… Local Python MCP server

  • βœ… Local Ollama LLM (e.g., Gemma)

  • βœ… Claude for Desktop using claude_desktop_config.json


πŸš€ Features

Tool Name

Description

generate_mcqs

Generates MCQs for a given topic

generate_lesson_plan

Creates structured lesson plans

generate_flashcards

Builds flashcards from topics

Powered by Educhain and a local LLM from Ollama.


πŸ“ Project Structure

mcp-educhain-server/ β”œβ”€β”€ mcp_server.py # Main MCP server β”œβ”€β”€ educhain_content.py # AI tool logic using Educhain + Ollama β”œβ”€β”€ claude_desktop_config.json # Claude config (external) β”œβ”€β”€ README.md

yaml Copy Edit


βš™οΈ Requirements

  • Python 3.10+

  • Ollama (e.g., gemma, mistral)

  • Claude for Desktop

  • Dependencies:

    pip install educhain langchain_ollama

πŸ”Œ Claude Config (claude_desktop_config.json) Located at:

bash Copy Edit %APPDATA%\Claude\claude_desktop_config.json Use this format:

json Copy Edit { "mcpServers": { "educhain-server": { "command": "C:\Users\YourUsername\AppData\Local\Programs\Python\Python310\python.exe", "args": ["mcp_server.py"], "workingDirectory": "C:\Users\YourUsername\Desktop\mcp-educhain-server", "env": { "PYTHONIOENCODING": "utf-8" } } } } πŸ§ͺ Test Your Server In terminal:

bash Copy Edit cd mcp-educhain-server python mcp_server.py Check with:

bash Copy Edit echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | python mcp_server.py 🧠 Example Prompts in Claude "Generate 5 MCQs on Photosynthesis"

"Create a lesson plan for Algebra"

"Make flashcards for World War 2"

πŸ› Troubleshooting βœ… Use absolute paths in the config

βœ… Add PYTHONIOENCODING=utf-8

βœ… Print debug logs to stderr

Check Claude logs via β€œOpen Logs Folder”

πŸ“œ License MIT License

✨ Credits Educhain

Ollama

Claude Desktop

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Skmalik768/content-generator-using-educhain-lib'

If you have feedback or need assistance with the MCP directory API, please join our Discord server