- Docker and Docker Compose installed
- Slack Bot Token (get from https://api.slack.com/apps)
-
Set up environment variables:
# Create .env file echo "SLACK_BOT_TOKEN=xoxb-your-bot-token-here" > .env echo "PORT=3000" >> .env
-
Build and run with Docker Compose:
docker-compose up -d
-
Check if it's running:
docker-compose ps curl http://localhost:3000/health
-
Build the image:
docker build -t slack-mcp . -
Run the container:
docker run -d \ --name slack-mcp \ -p 3000:3000 \ -e SLACK_BOT_TOKEN=xoxb-your-bot-token-here \ slack-mcp
SLACK_BOT_TOKEN(required): Your Slack bot tokenPORT(optional): Server port, defaults to 3000
The container includes a health check that verifies the server is responding:
docker inspect slack-mcp | grep Health -A 10View container logs:
docker-compose logs -f slack-mcpdocker-compose downFor production, consider:
- Using Docker secrets for sensitive data
- Setting up proper logging
- Using a reverse proxy (nginx)
- Implementing proper monitoring