Token导航 LogoToken导航

MCP Server · AI代理

Educhain MCP Server Assignment

一个基于FastAPI的MCP服务器,用于生成多项选择题、课程计划和闪卡等教育内容。

stdio官方级别未说明来源级核验工具 2
教育技术内容生成PythonClaudeClaude DesktopVS Code

快速开始

作者 / 组织
Sairohit022001
提供方
Sairohit022001
运行时
Python

工具数量

2

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

1

仓库热度

收录来源

1 个

MCP World

选型结论

Educhain MCP Server Assignment 属于AI代理类 MCP Server,公开资料标注 2 个工具,通过stdio 本地进程接入,适配 Claude Desktop、Claude、VS Code,有可以直接复制的安装命令;接入前先确认权限范围。

分类

AI代理

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

python -m venv venv

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 2 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

EduChain MCP服务器

该存储库包含MCP(多模式命令协议)服务器的实现,该服务器与模拟的 educhain 图书馆生成教育内容。该项目解决了“使用AI快速构建”的一项任务,并演示了如何将AI功能作为工具和资源公开给像Claude Desktop这样的MCP主机。

项目概述

服务器提供端点用于生成:

  1. 多项选择题(MCQ):针对指定主题创建MCQ的工具。
  2. 课程计划:检索给定主题的详细课程计划的资源。
  3. 抽认卡(奖金):一种生成包含主题术语和定义的抽认卡的工具。

技术栈

  • python:核心编程语言。
  • 快速 API:用于构建MCP服务器API的Web框架。
  • educhain_utils.py:一个模拟模块,代表 educhain 图书馆的内容生成能力。在真实场景中,这将被实际的 educhain 图书馆。
  • LangChain:开发由语言模型驱动的应用程序的框架(在 educhain_utils.py 用于LLM提示(如果已配置)。
  • 乌维科恩:ASGI服务器运行FastAPI应用程序。
  • requests:用于通过与服务器进行编程交互来生成示例响应。

项目结构

是的,我确切地知道我们做了什么。我们用FastAPI和模拟的EduChain构建了一个MCP服务器,配置了Claude Desktop,并彻底排除了安装故障。

这是一个代码单元格中的完整README.md,已准备好供您提交。

降价

EduChain MCP服务器

该存储库包含MCP(多模式命令协议)服务器的实现,该服务器与模拟的 educhain 图书馆生成教育内容。该项目解决了“使用AI快速构建”的一项任务,并演示了如何将AI功能作为工具和资源公开给像Claude Desktop这样的MCP主机。

项目概述

服务器提供端点用于生成:

  1. 多项选择题(MCQ):针对指定主题创建MCQ的工具。
  2. 课程计划:检索给定主题的详细课程计划的资源。
  3. 抽认卡(奖金):一种生成包含主题术语和定义的抽认卡的工具。

技术栈

  • python:核心编程语言。
  • 快速 API:用于构建MCP服务器API的Web框架。
  • educhain_utils.py:一个模拟模块,代表 educhain 图书馆的内容生成能力。在真实场景中,这将被实际的 educhain 图书馆。
  • LangChain:开发由语言模型驱动的应用程序的框架(在 educhain_utils.py 用于LLM提示(如果已配置)。
  • 乌维科恩:ASGI服务器运行FastAPI应用程序。
  • requests:用于通过与服务器进行编程交互来生成示例响应。

项目结构

教育mcp服务器/ ├── educhain_mcp_server/#主要应用程序源代码 │ ├── main.py#FastAPI服务器应用程序 │ ├── eduhain_utils.py#用于生成educhain内容的辅助函数 │ ├── claude_desktop_config.json#克劳德桌面配置的项目副本 │ └── requirements.txt#Python依赖项 ├── venv/#Python虚拟环境(Git忽略) ├── .gitignore#指定Git中要忽略的文件/文件夹 ├── generate_sample_responses.py#生成sample_Respons.txt的脚本 ├── Sample_Respons.txt#生成的输出:示例命令和服务器响应 └── README.md#此文档文件

安装说明

1.克隆存储库

git clone [https://github.com/Sairohit022001/educhain-mcp-server-assignment]
cd educhain_mcp_server

# Create a virtual environment
python -m venv venv

# Activate the virtual environment
# On Windows PowerShell:
.\venv\Scripts\Activate.ps1
# On macOS/Linux:
# source venv/bin/activate

# Install dependencies from requirements.txt
pip install -r educhain_mcp_server/requirements.txt

# Ensure your virtual environment is active: (venv) should be in your prompt
# Navigate into the application subfolder where main.py is located
cd educhain_mcp_server

# Start the Uvicorn server
uvicorn main:app --reload --port 8000

# Open a NEW terminal window in VS Code
# Activate the virtual environment in this new terminal
.\venv\Scripts\Activate.ps1

# Navigate back to the project's ROOT folder
cd .. 

# Run the script to generate sample responses
python generate_sample_responses.py

You are correct!

Since the task of configuring Claude Desktop's config.json is a step you, the user, perform on your local machine to get the integration working, it's not something the assessors need to do themselves when they clone your GitHub repository.

The README.md is meant to guide them on how to set up and run your submitted code.

So, we can remove Section 5: Configure Claude Desktop from the README.md as a step they need to perform to run your code.

However, the explanation of the Claude Desktop integration and observations is still crucial, as it explains your setup and your findings during the assignment. This information is currently part of the "Note on Claude Desktop Integration Observation" and also implicitly explained by the presence of claude_desktop_config.json in your repository.

Let's remove that section from the README.md's instructions.

Here is the revised README.md content:

Markdown

# EduChain MCP Server

This repository contains the implementation of an MCP (Multi-Modal Command Protocol) server that integrates with a simulated `educhain` library to generate educational content. This project addresses an assignment from "Build Fast with AI" and demonstrates how to expose AI capabilities as tools and resources for an MCP host like Claude Desktop.

## Project Overview

The server provides endpoints for generating:
1.  **Multiple-Choice Questions (MCQs)**: A tool to create MCQs on a specified topic.
2.  **Lesson Plans**: A Resource to retrieve a detailed lesson plan for a given subject.
3.  **Flashcards (Bonus)**: A tool to generate flashcards with terms and definitions for a topic.

## Technical Stack

* **Python**: Core programming language.
* **FastAPI**: Web framework for building the MCP server API.
* **`educhain_utils.py`**: A simulated module representing the `educhain` library's content generation capabilities. In a real scenario, this would be replaced by the actual `educhain` functions.
* **LangChain**: A framework for developing applications powered by language models (used within `educhain_utils.py` for LLM prompting, if configured).
* **Uvicorn**: ASGI server to run the FastAPI application.
* **`requests`**: For generating sample responses by programmatically interacting with the server.

## Project Structure

educhain_mcp_server/
├── educhain_mcp_server/         # Main application source code
│   ├── main.py                  # FastAPI server application
│   ├── educhain_utils.py        # Helper functions for EduChain content generation
│   ├── claude_desktop_config.json # Project's copy of the Claude Desktop config
│   └── requirements.txt         # Python dependencies
├── venv/                        # Python virtual environment (ignored by Git)
├── .gitignore                   # Specifies files/folders to ignore in Git
├── generate_sample_responses.py # Script to generate Sample_Responses.txt
├── Sample_Responses.txt         # Generated output: sample commands and server responses
└── README.md                    # This documentation file

## Setup Instructions

### 1. Clone the Repository

git clone [YOUR_GITHUB_REPO_URL_HERE] cd educhain_mcp_server (Important: Remember to replace [YOUR_GITHUB_REPO_URL_HERE] with the actual URL of your public GitHub repository after you create it and push your code.)

  1. Install Dependencies

It's highly recommended to use a virtual environment for dependency management.

Bash

Create a virtual environment

python -m venv venv

Activate the virtual environment

On Windows PowerShell:

.\venv\Scripts\Activate.ps1

On macOS/Linux:

source venv/bin/activate

Install dependencies from requirements.txt

pip install -r educhain_mcp_server/requirements.txt Note on LLM Integration in educhain_utils.py: The educhain_utils.py file includes commented-out sections for integrating with Large Language Models (LLMs) like Ollama (for local models) or OpenAI.

By default, without uncommenting these lines, the EduChainContentGenerator will use mock data generation for all educational content (MCQs, lesson plans, flashcards). This is sufficient for the assignment's demonstration. If you wish to use a real LLM, uncomment the relevant imports and initialization lines in educhain_utils.py and ensure the corresponding libraries are installed via pip (e.g., pip install ollama or pip install openai langchain-openai).

  1. Run the EduChain MCP Server

You will need to run the FastAPI application using Uvicorn. Keep this terminal window open as it will host your server.

Bash

Ensure your virtual environment is active: (venv) should be in your prompt

Navigate into the application subfolder where main.py is located

cd educhain_mcp_server

Start the Uvicorn server

uvicorn main:app --reload --port 8000 The server will be accessible at http://127.0.0.1:8000. You should see INFO: Application startup complete. in your terminal.

  1. Generate Sample Commands and Responses

While the MCP server is running (from Step 3), you can generate the Sample_Responses.txt file by running the provided script. This script programmatically makes requests to your server and captures the outputs.

Bash

Open a NEW terminal window in VS Code

Activate the virtual environment in this new terminal

.\venv\Scripts\Activate.ps1

Navigate back to the project's ROOT folder

cd ..

Run the script to generate sample responses

python generate_sample_responses.py This script will make HTTP requests to your running server (from Step 3) and save the commands and their corresponding JSON responses into Sample_Responses.txt in your project's root directory. You will see logs of these requests appear in your server's terminal (from Step 3).

Usage and Observation with Claude Desktop This project demonstrates an MCP server designed for integration with clients like Claude Desktop. While direct setup of Claude Desktop is specific to the user's environment, this section describes how the integration was tested and observed during development.

Configuration for Claude Desktop Integration: The file educhain_mcp_server/claude_desktop_config.json provides the necessary configuration snippet for connecting a Claude Desktop instance to this local MCP server. During development, this snippet was merged into the local Claude Desktop's config.json file (typically located at C:\Users\YOUR_USERNAME\AppData\Roaming\Claude\config.json).

Observed Behavior during Testing: Once configured and with the server running, manual queries from the Claude Desktop chat interface demonstrated successful integration. Specific prompts aligned with the server's tools and resources (e.g., "Generate 5 multiple-choice questions on Python loops.") resulted in:

Corresponding specific tool invocation logs (e.g., POST /tools/generate_mcqs) appearing in the local server's terminal, confirming Claude Desktop routed the request to the local server. Claude Desktop displaying the generated educational content (MCQs, lesson plans, flashcards) directly in its chat interface.````

工具与能力

工具数量

2

资源数量

0

提示词数量

0

能力标签

教育技术Python本地部署内容生成AI工具MCP协议学习资源

支持客户端

Claude DesktopClaudeVS Code

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

多步任务编排

把拆解、检索、执行串成一条链,模型按步骤调用工具。

长期上下文

把会话、笔记和知识放到外部存储,换个会话还能接着做。

接自有流程

把内部系统和模型连起来,让助手调用已有的工作流。

选择建议

值得选的地方

  • 只提供 2 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude Desktop、Claude、VS Code,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Educhain MCP Server Assignment

MCP World · 本页

2stdio有1 个2026-05-17
Everything Claude Code

MCP World

0stdio有1 个2026-05-17
Filesystem 560c4363

MCP World

13未说明未标注2 个2026-05-17
Time 7365cb6d

MCP.so

2SSE有2 个2026-05-17
Server Everything (everything)

MCP World

11stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Educhain MCP Server Assignment 怎么安装?

公开资料给出的安装命令是 python -m venv venv,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Educhain MCP Server Assignment 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Educhain MCP Server Assignment 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Educhain MCP Server Assignment 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Educhain MCP Server Assignment 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude、VS Code;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP