Token导航 LogoToken导航TokenDH.com
React Agents Rag Based Chatbot logo
搜索检索stdio官方级别未说明来源级核验

React Agents Rag Based Chatbot

MCP Server

一个基于MCP服务器自定义工具和检索增强生成(RAG)技术的智能聊天机器人,具有代理推理能力和用户友好的Streamlit界面。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
Python搜索文档处理

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Maheshs171

提供方

Maheshs171

最后核验

2026/5/17 20:21

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python -m venv venv

详细介绍

MCP服务器React Agents基于RAG的聊天机器人

这个项目是一个 代理聊天机器人 使用 自定义MCP工具 来自MCP服务器,与 检索增强生成(RAG) 用于上下文感知响应。它包括一个FastAPI后端、一个基于FastMCP的工具服务器和一个基于Streamlit的用户交互UI。

______________________________________________________________________

🚀 特性

  • ✅ 基于代理的推理使用 LangChain反应剂
  • 🔧 与以下人员沟通 自定义MCP工具 超过 streamable_http
  • 📚 合并 检索增强生成 用于增强知识检索
  • 🖥️ 界面友好 流线型UI
  • ⚡ 模块化且易于运行的组件

______________________________________________________________________

📦 安装说明

1.克隆存储库

git clone https://github.com/your-username/MCP-server-React-Agents-RAG-based-chatbot.git
cd MCP-server-React-Agents-RAG-based-chatbot

### 2. Create & Activate a Virtual Environment

python -m venv venv

# Activate it

# On Windows:
venv\Scripts\activate

# On Mac/Linux:
source venv/bin/activate

### 3. Install Requirements

pip install -r requirements.txt

📁 Main Components & How to Run
🔹 app.py - Agent Server (FastAPI)
This is the main entry point for your agent. It connects to the MCP server and invokes tools to perform actions based on the user input.

Run with:

uvicorn app:app --reload --port 8001
🔹 server.py - MCP Tool Server (FastMCP)
This file defines your custom MCP tools that are called by the agent in app.py via streamable_http transport.

Run with:

python server.py

🔹 ui.py - User Interface (Streamlit)
Provides a simple Streamlit web interface for interacting with the agent.

Run with:

streamlit run ui.py --server.port 8502
Then open http://localhost:8502 in your browser.

✅ Execution Order

Start the MCP Tool Server:

python server.py

Start the Agent Server:

uvicorn app:app --reload --port 8001

Start the Streamlit UI:

streamlit run ui.py --server.port 8502

📁 Directory Structure

MCP-server-React-Agents-RAG-based-chatbot/
│
├── app.py          # FastAPI agent using MCP tools
├── server.py       # FastMCP tool server
├── ui.py           # Streamlit UI
├── requirements.txt
└── README.md

💡 Tips

Make sure all ports (8001 and 8502) are free before starting.
You can customize your tools in server.py to extend functionality.
Update the agent logic in app.py to adjust behavior or tools used.

🛠️ Requirements

Python 3.9+
FastAPI
FastMCP
LangChain
Streamlit
Uvicorn
Other dependencies listed in requirements.txt

📝 License
This project is licensed under the MIT License. See the LICENSE file for more details.

目录标签

目录标签

Python搜索文档处理智能聊天机器人本地部署RAG技术MCP工具FastAPI后端Streamlit界面

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

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

来源信息

继续浏览同类 MCP