Uses local Ollama LLMs to generate educational content, including multiple choice questions (MCQs), structured lesson plans, and flashcards.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EduChain MCP Servergenerate 5 MCQs on photosynthesis for a high school biology class"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ 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 |
| Generates MCQs for a given topic |
| Creates structured lesson plans |
| 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