This document provides instructions for deploying the React Design Systems MCP server using Docker.
- Docker installed on your system
- Docker Compose (optional, for using docker-compose.yml)
The Docker image for this project is based on Node.js 24.0.1 Alpine (specifically node:24.0.1-alpine3.20). This provides:
- A lightweight container based on Alpine Linux 3.20
- Node.js 24.0.1 runtime environment
- npm 10.x package manager
- Minimal attack surface for improved security
- Clone this repository or download the source code
- Navigate to the project directory
- Run the following command:
docker-compose up -dThis will build the Docker image and start the container in detached mode.
- Clone this repository or download the source code
- Navigate to the project directory
- Build the Docker image:
docker build -t react-design-systems-mcp .- Run the Docker container:
docker run -d -p 3005:3005 --name react-design-systems-mcp react-design-systems-mcpOnce the container is running, the MCP server will be available via SSE (Server-Sent Events) at:
http://localhost:3005/sse
The following environment variables can be configured:
PORT: The port on which the server will listen (default: 3005)BIND: The address to bind to (default: 0.0.0.0)
Note: The server is configured to use SSE transport in Docker mode.
# Using Docker
docker logs react-design-systems-mcp
# Using Docker Compose
docker-compose logs# Using Docker
docker stop react-design-systems-mcp
# Using Docker Compose
docker-compose down# Using Docker
docker restart react-design-systems-mcp
# Using Docker Compose
docker-compose restartIf you encounter any issues with the Docker deployment, try the following:
- Check the container logs for error messages
- Verify that port 3005 is not being used by another application
- Ensure that Docker has sufficient resources allocated
- Try rebuilding the image with the
--no-cacheoption:
docker build --no-cache -t react-design-systems-mcp .If you encounter issues related to the Node.js version:
-
Verify that your Dockerfile is using the correct Node.js image:
FROM node:24.0.1-alpine3.20 -
Check for any compatibility issues with dependencies by reviewing the container logs
-
For detailed information about Node.js 24.0.1 compatibility, refer to the Node.js 24 Upgrade Guide
- The SSE endpoint does not require authentication by default
- The server is configured to listen on all interfaces (0.0.0.0)
- Consider using a reverse proxy with TLS for production deployments
- Node.js 24.0.1 includes security improvements over previous versions
The Docker image for this project can be published to GitHub Container Registry (ghcr.io). This allows for easier distribution and versioning of the Docker image.
For detailed instructions on building and publishing the Docker image, see Docker Publishing Guide.
Once published, you can use the image directly without building it locally:
# Pull the image
docker pull ghcr.io/agentience/react-design-systems-mcp:latest
# Run the container
docker run -d -p 3005:3005 --name react-design-systems-mcp ghcr.io/agentience/react-design-systems-mcp:latestOr in your docker-compose.yml:
services:
react-design-systems-mcp:
image: ghcr.io/agentience/react-design-systems-mcp:latest
# other configuration...