Deployment and upgradesOfficial documentation6 min read版本解读

Deploy FastGPT MCP Server for Self-Hosted Upgrades

This article records configuration and changes from a historical FastGPT release.

This article records configuration and changes from a historical FastGPT release. Use it to understand that release, and consult the release notes for your installed and target versions before applying dependencies, configuration, or migration steps.

This document provides standardized deployment instructions for the FastGPT MCP Server service, aligned with official FastGPT v4.9.6 specifications.

Docker Compose Deployment

Add the dedicated fastgpt-mcp-server service block to your existing docker-compose.yml file. Use the exact configuration provided below:

fastgpt-mcp-server:
  container_name: fastgpt-mcp-server
  image: ghcr.io/labring/fastgpt-mcp_server:v4.9.6
  ports:
    - 3005:3000
  networks:
    - fastgpt
  restart: always
  environment:
    - FASTGPT_ENDPOINT=http://fastgpt:3000

This service block defines a persistent, network-connected container for the MCP server, with host port 3005 exposed for external service access.

Sealos Cloud Deployment

For deployments managed via Sealos, follow these exact steps:

  1. Navigate to the App Management dashboard.
  2. Create a new application with the name fastgpt-mcp-server.
  3. Set the application container image to ghcr.io/labring/fastgpt-mcp_server:v4.9.6.
  4. Configure the required environment variable FASTGPT_ENDPOINT using your organization’s official FastGPT access URL.

Key Configuration Parameters

The following table lists all mandatory and critical parameters for FastGPT MCP Server deployment, as specified in the official documentation:

ParameterRequiredDefault ValuePurpose
container_nameYesfastgpt-mcp-serverUnique identifier for the MCP server container
imageYesghcr.io/labring/fastgpt-mcp_server:v4.9.6Pinned official container image for FastGPT MCP Server v4.9.6
portsYes3005:3000Maps host port 3005 to container port 3000 for service communication
networksYesfastgptAttaches the container to the shared FastGPT network for core service integration
restartYesalwaysConfigures automatic container restart on failure or host reboot
FASTGPT_ENDPOINTYeshttp://fastgpt:3000 (Docker) / Custom URLSpecifies the endpoint for the core FastGPT service to enable MCP server connectivity

Source: FastGPT official documentation and source