LibreChat MCP Servers
Okay, here's a translation of instructions for setting up SuperGateway MCP servers in Docker containers for Docker deployments of LibreChat: **Title: 在 Docker 容器中设置 SuperGateway MCP 服务器,用于 LibreChat 的 Docker 部署** **Instructions:** This document outlines the steps to set up SuperGateway MCP (Message Control Plane) servers within Docker containers for use with Docker deployments of LibreChat. This setup allows for scalable and robust message handling within your LibreChat environment. **1. Prerequisites (先决条件):** * **Docker and Docker Compose:** Ensure you have Docker and Docker Compose installed on your system. Refer to the official Docker documentation for installation instructions: [https://docs.docker.com/](https://docs.docker.com/) * **Docker 和 Docker Compose:** 确保您的系统上已安装 Docker 和 Docker Compose。 请参阅官方 Docker 文档以获取安装说明:[https://docs.docker.com/](https://docs.docker.com/) * **LibreChat Docker Deployment:** You should already have a working LibreChat Docker deployment. These instructions assume you are extending an existing setup. * **LibreChat Docker 部署:** 您应该已经有一个可以正常运行的 LibreChat Docker 部署。 这些说明假定您正在扩展现有设置。 **2. Create a Docker Compose File (创建 Docker Compose 文件):** Create a `docker-compose.override.yml` file (or modify your existing `docker-compose.yml` if you prefer) to define the MCP services. This file will define the MCP containers and their configuration. Here's an example: ```yaml version: "3.9" services: mcp1: image: ghcr.io/danny-dann/supergateway:latest # Replace with the correct SuperGateway image container_name: mcp1 ports: - "3001:3000" # Map host port 3001 to container port 3000 environment: - NODE_ENV=production - PORT=3000 - REDIS_HOST=redis # Assuming your Redis service is named 'redis' in your docker-compose file - REDIS_PORT=6379 - MCP_ID=mcp1 # Unique identifier for this MCP instance depends_on: - redis mcp2: image: ghcr.io/danny-dann/supergateway:latest # Replace with the correct SuperGateway image container_name: mcp2 ports: - "3002:3000" # Map host port 3002 to container port 3000 environment: - NODE_ENV=production - PORT=3000 - REDIS_HOST=redis # Assuming your Redis service is named 'redis' in your docker-compose file - REDIS_PORT=6379 - MCP_ID=mcp2 # Unique identifier for this MCP instance depends_on: - redis ``` * **创建 Docker Compose 文件:** 创建一个 `docker-compose.override.yml` 文件(或者如果您愿意,修改您现有的 `docker-compose.yml` 文件)来定义 MCP 服务。 此文件将定义 MCP 容器及其配置。 这是一个例子: ```yaml version: "3.9" services: mcp1: image: ghcr.io/danny-dann/supergateway:latest # 替换为正确的 SuperGateway 镜像 container_name: mcp1 ports: - "3001:3000" # 将主机端口 3001 映射到容器端口 3000 environment: - NODE_ENV=production - PORT=3000 - REDIS_HOST=redis # 假设您的 Redis 服务在您的 docker-compose 文件中命名为“redis” - REDIS_PORT=6379 - MCP_ID=mcp1 # 此 MCP 实例的唯一标识符 depends_on: - redis mcp2: image: ghcr.io/danny-dann/supergateway:latest # 替换为正确的 SuperGateway 镜像 container_name: mcp2 ports: - "3002:3000" # 将主机端口 3002 映射到容器端口 3000 environment: - NODE_ENV=production - PORT=3000 - REDIS_HOST=redis # 假设您的 Redis 服务在您的 docker-compose 文件中命名为“redis” - REDIS_PORT=6379 - MCP_ID=mcp2 # 此 MCP 实例的唯一标识符 depends_on: - redis ``` **Explanation (说明):** * **`version: "3.9"`:** Specifies the Docker Compose file version. * **`version: "3.9"`:** 指定 Docker Compose 文件版本。 * **`services:`:** Defines the services (containers) to be created. * **`services:`:** 定义要创建的服务(容器)。 * **`mcp1` and `mcp2`:** Define two MCP service instances. You can create more instances for increased redundancy and scalability. * **`mcp1` 和 `mcp2`:** 定义两个 MCP 服务实例。 您可以创建更多实例以提高冗余和可扩展性。 * **`image: ghcr.io/danny-dann/supergateway:latest`:** Specifies the Docker image to use for the MCP server. **Important:** Replace this with the correct and up-to-date SuperGateway image name and tag. * **`image: ghcr.io/danny-dann/supergateway:latest`:** 指定用于 MCP 服务器的 Docker 镜像。 **重要提示:** 将其替换为正确且最新的 SuperGateway 镜像名称和标签。 * **`container_name`:** Sets the name of the container. * **`container_name`:** 设置容器的名称。 * **`ports`:** Maps ports from the host machine to the container. Make sure these ports are not already in use. Each MCP instance should have a unique host port. * **`ports`:** 将端口从主机映射到容器。 确保这些端口尚未被使用。 每个 MCP 实例都应该有一个唯一的主机端口。 * **`environment`:** Sets environment variables for the container. * **`environment`:** 设置容器的环境变量。 * **`NODE_ENV=production`:** Sets the Node.js environment to production. * **`NODE_ENV=production`:** 将 Node.js 环境设置为生产环境。 * **`PORT=3000`:** Specifies the port the MCP server listens on within the container. This should match the port exposed by the SuperGateway image. * **`PORT=3000`:** 指定 MCP 服务器在容器中侦听的端口。 这应该与 SuperGateway 镜像公开的端口匹配。 * **`REDIS_HOST=redis`:** Specifies the hostname of the Redis server. This assumes your Redis service is named `redis` in your `docker-compose.yml` file. Adjust this if your Redis service has a different name. * **`REDIS_HOST=redis`:** 指定 Redis 服务器的主机名。 这假设您的 Redis 服务在您的 `docker-compose.yml` 文件中命名为 `redis`。 如果您的 Redis 服务具有不同的名称,请进行调整。 * **`REDIS_PORT=6379`:** Specifies the port of the Redis server. * **`REDIS_PORT=6379`:** 指定 Redis 服务器的端口。 * **`MCP_ID=mcp1` (and `MCP_ID=mcp2`):** A unique identifier for each MCP instance. This is important for the MCP servers to distinguish themselves. * **`MCP_ID=mcp1`(和 `MCP_ID=mcp2`):** 每个 MCP 实例的唯一标识符。 这对于 MCP 服务器区分自身非常重要。 * **`depends_on: - redis`:** Ensures that the Redis service is started before the MCP services. * **`depends_on: - redis`:** 确保 Redis 服务在 MCP 服务之前启动。 **3. Update LibreChat Configuration (更新 LibreChat 配置):** You need to configure LibreChat to use the MCP servers. This typically involves setting environment variables in your LibreChat Docker container. Consult the LibreChat documentation for the specific environment variables related to SuperGateway/MCP integration. Example variables might include: * `SUPERGATEWAY_ENABLED=true` * `SUPERGATEWAY_URLS=http://localhost:3001,http://localhost:3002` (or the appropriate URLs based on your setup) * **更新 LibreChat 配置:** 您需要配置 LibreChat 以使用 MCP 服务器。 这通常涉及在您的 LibreChat Docker 容器中设置环境变量。 请查阅 LibreChat 文档,了解与 SuperGateway/MCP 集成相关的特定环境变量。 示例变量可能包括: * `SUPERGATEWAY_ENABLED=true` * `SUPERGATEWAY_URLS=http://localhost:3001,http://localhost:3002`(或基于您的设置的相应 URL) **4. Start the Services (启动服务):** Run the following command in the directory containing your `docker-compose.yml` and `docker-compose.override.yml` files: ```bash docker-compose up -d ``` This will start all the services defined in your Docker Compose files, including the MCP servers. * **启动服务:** 在包含您的 `docker-compose.yml` 和 `docker-compose.override.yml` 文件的目录中运行以下命令: ```bash docker-compose up -d ``` 这将启动您的 Docker Compose 文件中定义的所有服务,包括 MCP 服务器。 **5. Verify the Setup (验证设置):** * Check the logs of the MCP containers to ensure they are starting up correctly and connecting to Redis. You can use the following command: ```bash docker logs mcp1 docker logs mcp2 ``` * Verify that LibreChat is able to connect to the MCP servers and that messages are being routed correctly. This may involve testing different message types and observing the behavior of the system. * **验证设置:** * 检查 MCP 容器的日志,以确保它们正确启动并连接到 Redis。 您可以使用以下命令: ```bash docker logs mcp1 docker logs mcp2 ``` * 验证 LibreChat 是否能够连接到 MCP 服务器,以及消息是否正确路由。 这可能涉及测试不同的消息类型并观察系统的行为。 **Important Considerations (重要注意事项):** * **SuperGateway Image:** Always use the latest stable version of the SuperGateway image. Check the SuperGateway repository for updates. * **SuperGateway 镜像:** 始终使用最新稳定版本的 SuperGateway 镜像。 检查 SuperGateway 存储库以获取更新。 * **Networking:** Ensure that the MCP containers and the LibreChat container are on the same Docker network so they can communicate with each other. This is usually handled automatically by Docker Compose. * **网络:** 确保 MCP 容器和 LibreChat 容器位于同一个 Docker 网络上,以便它们可以相互通信。 这通常由 Docker Compose 自动处理。 * **Redis:** The MCP servers rely on Redis for message queuing and coordination. Ensure that your Redis server is properly configured and accessible to the MCP containers. * **Redis:** MCP 服务器依赖 Redis 进行消息排队和协调。 确保您的 Redis 服务器已正确配置并且 MCP 容器可以访问。 * **Scalability:** You can scale the number of MCP instances to handle increased message traffic. Simply add more MCP service definitions to your `docker-compose.yml` file and update the `SUPERGATEWAY_URLS` in your LibreChat configuration accordingly. * **可扩展性:** 您可以扩展 MCP 实例的数量以处理增加的消息流量。 只需将更多 MCP 服务定义添加到您的 `docker-compose.yml` 文件,并相应地更新 LibreChat 配置中的 `SUPERGATEWAY_URLS`。 * **Security:** Consider security implications, especially if exposing the MCP servers to the internet. Use appropriate security measures such as firewalls and authentication. * **安全性:** 考虑安全影响,尤其是在将 MCP 服务器暴露于互联网时。 使用适当的安全措施,例如防火墙和身份验证。 This translation should provide a clear and accurate guide for setting up SuperGateway MCP servers in Docker for LibreChat deployments. Remember to consult the official LibreChat and SuperGateway documentation for the most up-to-date information and specific configuration options. Good luck!
wally-kroeker
README
推荐服务器
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
MCP Package Docs Server
促进大型语言模型高效访问和获取 Go、Python 和 NPM 包的结构化文档,通过多语言支持和性能优化来增强软件开发。
Claude Code MCP
一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。
@kazuph/mcp-taskmanager
用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。
mermaid-mcp-server
一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。
Jira-Context-MCP
MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。

Linear MCP Server
一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。

Sequential Thinking MCP Server
这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。
Curri MCP Server
通过管理文本笔记、提供笔记创建工具以及使用结构化提示生成摘要,从而实现与 Curri API 的交互。