教育链MCP服务器

一个基于Python的模块化命令平台服务器,集成了多选题生成和课程计划生成功能,适用于教育资源的动态生成。

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

使用说明

🧠 EduChain MCP服务器

该项目是一个使用Python构建的模块化命令平台(MCP)服务器,集成了EduChain工具,如 MCQ生成 和 教学计划它旨在与AI平台进行交互,例如 克劳德桌面 动态提供智能教育资源。


🚀 特性

  • ✅ 基于Python MCP服务器
  • 🛠️ 集成了两个工具:
    • 生成MCQ –为给定主题生成多项选择题
    • 制定课程计划 –为任何科目生成结构化的课程计划
  • 🤝 通过JSON配置与Claude Desktop配合使用
  • 🧩 易于扩展(支持闪存卡等其他工具)

🗂️ 项目结构

📦 educhain mcp服务器/ ├── main.py#运行MCP服务器并注册工具 ├── educhain.py#包含MCQGenerator和LessonPlanGenerator类 ├── requirements.txt#必需的Python包 ├── claude_desktop_config.json#可选:claude集成配置 ├── Sample_Respons.txt#测试查询和输出 ├── README.md#项目文档 ├── .gitignore#Git排除项

格式 复制代码


💻 安装说明

1.️⃣ 克隆存储库

git clone https://github.com/MohammedRayan11/educhain-mcp-server.git
cd educhain-mcp-server
2️⃣ Create and Activate a Virtual Environment
bash
Copy code
python -m venv .venv
.venv\Scripts\activate  # On Windows
3️⃣ Install Dependencies
bash
Copy code
pip install -r requirements.txt
⚠️ If mcp_sdk isn't available on PyPI, use this instead:

bash
Copy code
pip install -e .
▶️ Running the Server
bash
Copy code
python main.py
You should see:

less
Copy code
[MCPServer] Running EduChainMCP: MCP Server using EduChain tools.
[Tool] generate_mcqs - Generate MCQs for a given topic.
[Tool] generate_lesson_plan - Generate a lesson plan for a given subject.
🧪 Testing with Claude Desktop
Install Claude Desktop from Anthropic.

Update your claude_desktop_config.json to point to your local MCP server.

Run main.py and open Claude Desktop.

Try prompts like:

nginx
Copy code
Generate 5 multiple-choice questions on Python loops.
Provide a lesson plan for teaching algebra.
Claude will fetch results from the MCP server and display them.