EduChain MCP Server

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.

Category
Visit Server

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 6277 or 6274 are 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured