EduChain MCP Server
Enables the generation of educational content such as multiple choice questions, lesson plans, and flashcards by connecting local Ollama models to Claude. It leverages the Educhain library to provide structured AI-powered learning tools through the Model Context Protocol.
README
π§ 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.