EduChain MCP Server
Integrates the EduChain library with Claude Desktop to generate educational content such as multiple-choice questions, lesson plans, and flashcards. It utilizes Gemini LLMs through LangChain to provide local and secure content generation tools.
README
EduChain MCP Server for Claude Desktop
A local MCP (Model Context Protocol) server that integrates the EduChain educational content generation library with Claude Desktop, allowing users to generate MCQs, lesson plans, and flashcards using LLMs like Gemini (via LangChain).
๐ Features
- Multiple Choice Questions Generator
- Lesson Plan Generator
- Flashcard Generator
- Claude-compatible MCP server with
FastMCP - Fully local, secure, and extensible integration
๐ง Powered By
๐ Project Structure
โโโ server.py # Main MCP server script
โโโ get_educhain.py # LLM & EduChain config using Gemini
โโโ tools/
โ โโโ generate_mcqs.py
โ โโโ generate_lesson_plan.py
โ โโโ generate_flashcards.py
โโโ educhain/ # Cloned EduChain repo (not pushed)
โโโ .env # Contains GEMINI_API_KEY
โโโ requirements.txt
โโโ Educhain_McpReport.pdf
โโโ sample_output.txt # Sample response from all tools/resources
โโโ README.md
---
## โ๏ธ Installation
### 1. Clone and Install EduChain Locally
```bash
git clone https://github.com/satvik314/educhain.git
cd educhain
pip install .
2. Install Required Packages
pip install -r requirements.txt
3. Add your Gemini API key
Create a .env file:
GEMINI_API_KEY=your-gemini-api-key-here
๐งช Running the MCP Server
Option 1: Manual Run (for testing)
python server.py
Option 2: Claude-Managed (recommended)
Use the following claude_config.json:
{
"mcpServers": {
"educhain": {
"command": "python",
"args": ["server.py"],
"cwd": "C:/absolute/path/to/project",
"transport": "stdio",
"env": {
"DANGEROUSLY_OMIT_AUTH": "true"
}
}
}
}
Save it to:
C:/Users/YOURNAME/.claude/config.json
Then restart Claude Desktop and go to Developer โ Restart Server.
๐ Alternative: Use Auth Tokens for Collaboration
If you're working in a collaborative setup or want stricter control, you can remove the DANGEROUSLY_OMIT_AUTH setting and instead use the auth_token from the MCP Inspector like this:
{
"mcp_servers": [
{
"label": "EduChain Gemini Server",
"url": "http://127.0.0.1:6277",
"auth_token": "your-session-token"
}
]
}
This is useful when running the server via:
mcp dev server.py
It connects through the local proxy with full inspection/debug support.
๐งฐ Available Tools & Resources
| Name | Type | Description |
|---|---|---|
generate_mcq_tool |
Tool | Creates multiple-choice questions for a topic |
generate_flashcard_tool |
Tool | Generates flashcards for a topic |
lesson_plan_resource |
Resource | Provides a structured lesson plan |
๐ Troubleshooting
- If ports like
6277or6274are in use, kill conflicting processes - MCP Inspector (via
mcp dev server.py) may block Claude โ only run one at a time - Ensure
educhain/is installed but not committed (add it to.gitignore)
๐ก Contributions
This integration was created as part of an internship assignment to showcase:
- LLM tool integration
- MCP protocol understanding
- Custom tool chaining with LangChain
- Gemini API usage via LangChain adapters
๐ License
This repository is for educational and internship use. EduChain is used under its respective open license.
๐ Acknowledgements
- @satvik314 for EduChain
- Anthropic for Claude Desktop
- Google for Gemini
๐ Contact
Feel free to reach out via LinkedIn or email for collaboration or queries.
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.