# Ai Doctor

> 🧑‍⚕️ Ai智能医生聊天助手-这是一个前端基于Vue3、TS、后端基于Nest.js、MongoDB、Redis、Milvus并结合大模型、RAG等技术实现的医疗库智能问答系统，能结合大模型的生成能力和上传的专业医疗领域知识库针对提问给出专业回答。同时具备工具调用能力，可使用MCP集成网页爬取能力让大模型根据网址对应的医疗领域文章进行分析和输出。

- **Type:** MCP server
- **Install:** `agentstack add mcp-jevon-zhong-ai-doctor`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Jevon-Zhong](https://agentstack.voostack.com/s/jevon-zhong)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Jevon-Zhong](https://github.com/Jevon-Zhong)
- **Source:** https://github.com/Jevon-Zhong/Ai-doctor

## Install

```sh
agentstack add mcp-jevon-zhong-ai-doctor
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 🧑‍⚕️ Ai智能医生聊天助手
这是一个前端基于Vue3、TS、后端基于Nest.js、MongoDB、Redis、Milvus并结合大模型、RAG等技术实现的医疗库智能问答系统，能结合大模型的生成能力和上传的专业医疗领域知识库针对提问给出专业回答。同时具备工具调用能力，可使用MCP集成网页爬取能力让大模型根据网址对应的医疗领域文章进行分析和输出。

## ✨ 主要功能

### 🔐 登陆注册

- 保留和区分每个账号的对话记录
- 可注册/登陆/退出账号

### 💬 流式输出回答

- 使用流式输出形式回复问题
- MD格式展示
- 回复附带严谨提示（仅供参考，具体应遵医嘱）

### 📚 知识库管理

- 上传/删除知识库中的文件（pdf/docx）

### 💡 基于知识库内容回答

- 点击知识库问答按钮可基于上传知识库文件相关内容进行分析回复
- 检索知识库中相关内容，显示具体检索到的文章列表

### 🗂️ 基于上传的文档回答

- 用户可上传pdf/docx文档，然后提问，大模型会结合问题与文档内容进行总结输出

### 🩻 基于上传的图片回答

- 用户可上传图片，然后提问，大模型会使用多模态能力结合问题与图片内容进行总结输出

### 🔨 MCP工具调用

- 可选择工具列表中的工具来进行特殊功能操作（如图例的爬取网页内容操作）

## 🛠️ 技术架构

- **前端**：Vue3 + Ts + Pinia + Element plus
- **后端**：NestJs + Ts
- **MCP服务端**：Express
- **数据库**：Milvus + Redis + Mongo
- **大模型**：通义千问系列

## 🕹️ 运行环境

- **Node.Js**：v20.18.0
- **milvusdb/milvus**：v2.6.1
- **redis**：8.0
- **mongo**：8.0.9

## 🚀 项目运行

### 目录介绍

- **ai-doctor-client**：项目前端
- **ai-doctor-server**：项目后端
- **mcp-server**：mcp服务器
- **mcp-client-demo**：mcp客户端demo（仅用于测试mcp服务器连接）

### 安装数据库

- 下载docker https://docs.docker.com/get-started/get-docker/
- 安装Milvus 具体安装文档参考 https://milvus.io/docs/zh/prerequisite-docker.md 
- 安装 mongodb 
- 安装 redis

### 运行项目

1. **克隆项目**

   ```bash
   git clone https://github.com/Jevon-Zhong/Ai-doctor.git
   cd Ai-doctor
   ```

2.  **运行mcp-server**

   在项目根目录创建.env文件，然后粘贴以下内容

   ```bash
   # 数据库地址
   MONGODB_URI=mongodb://user:user123@127.0.0.1:27017/ai_doctor?authSource=admin
   
   # 对登陆密码加密密钥
   PASSWORD_KEY=abcdefg
   
   # jwt密钥
   JWT_SECRET=aidoctor123
   
   # 向量数据库
   MILVUS_ADDRESS=127.0.0.1:19530
   
   #通义千问apikey，填写自己的api key
   QWEN_API_KEY=sk-xxx
   
   #redis地址
   REDIS_HOST=127.0.0.1
   REDIS_PORT=6379
   
   #ip地址
   IP_ADDR=http://127.0.0.1:3000
   ```

   ```bash
   cd mcp-server
   npm i
   npm run start
   ```

3. **运行ai-doctor-server**

   ```bash
   cd ai-doctor-server
   npm i
   npm run start
   ```

4. **运行ai-doctor-client**

   ```bash
   cd ai-doctor-client
   npm i
   npm run dev
   ```

## 🔑 **License**

本项目采用 [MIT License](https://github.com/JustForSO/Sentra-Agent/blob/main/LICENSE) 开源协议。

你可以自由地使用、修改、分发本项目，但是禁止商业化。

## 📩 联系我

- **QQ**：1035684305

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Jevon-Zhong](https://github.com/Jevon-Zhong)
- **Source:** [Jevon-Zhong/Ai-doctor](https://github.com/Jevon-Zhong/Ai-doctor)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-jevon-zhong-ai-doctor
- Seller: https://agentstack.voostack.com/s/jevon-zhong
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
