This repository contains a Docker image for running the Model Context Protocol (MCP) GitHub server with Server-Sent Events (SSE) support.
The Docker image is based on ghcr.io/sparfenyuk/mcp-proxy and sets up an environment to run the @modelcontextprotocol/server-github package using npx.
- Node.js and npm pre-installed
- Configurable port (default: 8000)
- Easy GitHub token configuration
- Uses mcp-proxy to manage SSE connections
docker build -t mcp-github-sse .
docker run -p 8000:8000 -e GITHUB_ACCESS_TOKEN="your_github_token" mcp-github-sse
You can specify a custom port by setting the PORT environment variable:
docker run -p 9000:9000 -e PORT=9000 -e GITHUB_ACCESS_TOKEN="your_github_token" mcp-github-sse
| Variable | Description | Required |
|---|---|---|
| GITHUB_ACCESS_TOKEN | Your GitHub personal access token | Yes |
| PORT | The port to expose the service (default: 8000) | No |
The Dockerfile performs the following steps:
- Uses the
ghcr.io/sparfenyuk/mcp-proxybase image - Installs Node.js and npm using Alpine package manager
- Sets the default port to 8000
- Copies the entrypoint script that runs mcp-proxy with the GitHub server
- Configures permissions and exposes the service port
- MCP Proxy - The base proxy server used for SSE connections
- MCP GitHub Server - The Model Context Protocol GitHub server implementation
See the LICENSE file for details.