mcp-server-hosting

mcp-server-hosting

3.2

If you are the rightful owner of mcp-server-hosting and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document provides details on setting up a Docker container for running a Model Context Protocol (MCP) server using Node.js and supergateway, designed for deployment on Choreo.

MCP Server Docker Image for Choreo

This Dockerfile creates a lightweight, secure, and production-ready Node.js-based server container that runs the Model Context Protocol (MCP) server using supergateway. The container is designed to be deployed as a service on Choreo.

Running the Container Locally

You can run the container using the following command:

docker run -p 8000:8000 \
  -e PORT=8000 \
  -e BASE_URL=http://localhost:8000 \
  -e SSE_PATH=/sse \
  -e MESSAGE_PATH=/message \
  -e DATA_FOLDER=/app/data \
  -e SERVER_TYPE=@modelcontextprotocol/server-github \
  mcp-server

Environment Variables

The container supports the following environment variables:

VariableDefault ValueDescription
PORT8000The port on which the server listens.
BASE_URLhttp://localhost:8000The base URL for the server.
SSE_PATH/ssePath for Server-Sent Events.
MESSAGE_PATH/messagePath for messaging.
DATA_FOLDER./dataDirectory for storing server data.
SERVER_TYPE@modelcontextprotocol/server-githubDefines the type of MCP server to run.

Exposed Ports

  • 8000: The main port where the MCP server runs.