教育链MCP服务器

一个基于FastAPI和EduChain构建的MCP兼容服务器,提供MCQ生成、课程计划制定和闪卡创建功能。

  • by RANJANA12-SHUKLA
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 ranjana12-shukla/educhain-mcp-assignment

使用说明

├── educhain/                      # Cloned EduChain library (from satvik314/educhain)
│   └── ...  #                     
├── mcp_server.py                  #  Main FastAPI MCP server (Task 2)
├── test_mcq.py                    #  Script to test EduChain MCQ generation (Task 1)
├── claude_desktop_config.json     #  Simulated Claude Desktop configuration (Task 3)
├── Sample_Responses.txt           #  Task 3 output: input/output samples
├── README.md                      #  Clear, well-documented project overview
├── requirements.txt               #  Auto-generated list of dependencies
├── .env.template                  #  Placeholder for environment variables
├── .gitignore                     #  Tells Git what to ignore (like env folders, cache)
# EduChain MCP Server Assignment

此存储库包含我使用EduChain和FastAPI构建MCP兼容服务器的实习任务。

特性

  • generate_mcq --从主题生成MCQ
  • lesson_plan --返回某个主题的课程大纲
  • generate_flashcards --奖励:创建主题抽认卡

项目文件

  • mcp_server.py --使用FastAPI构建的MCP服务器
  • test_mcq.py --EduChain测试脚本
  • claude_desktop_config.json --Claude Desktop集成配置(模拟)
  • Sample_Responses.txt --测试提示和输出示例
  • .env.template -env文件示例(不带API密钥)

测试

使用Swagger UI: http://127.0.0.1:8000/docs

奖金视频演练

📹 单击此处观看演练

备注

未提供Claude Desktop。使用Swagger和curl进行本地测试,模拟MCP客户端行为。

如何运行服务器

克隆此存储库

bash 克隆https://github.com/RANJANA12-SHUKLA/educhain-mcp-assignment.git cd教育链mcp分配

0.激活虚拟环境:

bash 源educhain_env/Scripts/activate

1:安装依赖项

pip安装-r要求.txt

2.运行MCP服务器:

python mcpserver.py

3.在浏览器中打开API:

http://127.0.0.1:8000/docs