教育内容生成服务器

EduChain MCP Server是一个本地教育内容服务器,集成EduChain库和Model Context Protocol (MCP),为Claude Desktop提供AI驱动的教育工具,包括多选题生成、课程计划和闪卡制作,专注于Python编程和代数。

  • by AyaanShaheer
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 ayaanshaheer/educhain-mcp-server

使用说明

# 🚀 EduChain MCP Server

The **EduChain MCP Server** integrates the [EduChain](https://github.com/satvik314/educhain) library with the [Model Context Protocol (MCP)](https://github.com/modelcontextprotocol/python-sdk) to build a local educational content server for **Claude Desktop**.  
It runs via `stdio` and leverages **Grok's free-tier** (xAI) to generate:

- ✅ Multiple-choice questions  
- 📚 Lesson plans  
- 💡 Flashcards  

Currently focused on **Python programming** and **Algebra**, this server provides AI-powered tools tailored to real-world educational scenarios.

---

## ⚙️ Setup Instructions (Windows + VS Code)

1. **Clone the Repository**
   ```bash
   git clone https://github.com/AyaanShaheer/EduChain-MCP-Server
   cd educhain-mcp-server
  1. 创建和激活虚拟环境

    python -m venv venv
    .\venv\Scripts\activate
    
  2. 再进行

    pip install mcp httpx educhain
    
  3. 运行MCP服务器

    python mcp_educhain_server.py
    

🖥️ Claude桌面配置

编辑配置文件:

📍 C:\Users\Ayaan\AppData\Roaming\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "EduChainServer": {
      "command": "C:\\Users\\Ayaan\\Desktop\\educhain-mcp-server\\venv\\Scripts\\python.exe",
      "args": ["C:\\Users\\Ayaan\\Desktop\\educhain-mcp-server\\mcp_educhain_server.py"],
      "env": {
        "PYTHONPATH": "C:\\Users\\Ayaan\\Desktop\\educhain-mcp-server"
      }
    }
  }
}

🔁 替换 <YourUsername> 使用您的实际Windows用户名。


✨ 特性

  • 🧠 多项选择题 生成带有选项、答案和解释的测验。

  • 🧑‍🏫 课程计划 制定结构化的教学计划(如代数)。

  • 🃏 闪卡 手动输出基于HTML的抽认卡(由于API限制)。


📌 使用示例

  1. 启动服务器
  2. 打开克劳德桌面
  3. 尝试以下命令:
"Generate 5 multiple-choice questions on Python loops."
"Provide a lesson plan for teaching algebra."
"Generate 5 flashcards on Python Programming Basics."

📂 响应保存在: Sample_Responses.txt


⚠️ 已知限制

  • 通过以下方式支持闪存卡 educhain 是实验性的。 在中使用手动生成的HTML版本 Sample_Responses.txt.

📅 项目状态

  • 🗓️ 上次更新时间: 2025年7月3日
  • ✅ 已验证 Windows+VS代码+克劳德桌面
  • 🧪 使用测试 Grok的免费LLM

📚 引用