github-mcp-server

by HelmForge

Helm chartv1.1.0App 1.9.0Apache-2.0Verified publisher

GitHub official MCP server in HTTP mode

About this chart

GitHub MCP Server Helm Chart

The GitHub MCP Server exposes GitHub APIs through the Model Context Protocol. This chart deploys the official ghcr.io/github/github-mcp-server:v1.9.0 image in streamable HTTP mode for internal agent platforms, IDE integrations, and automation gateways.

Features

  • Official pinned GitHub MCP Server image in streamable HTTP mode.
  • GitHub.com and GitHub Enterprise Server support.
  • Read-only mode, toolsets, explicit tool allow-list, and deny-list controls.
  • Existing Secret support for production token management.
  • Optional Ingress, Gateway API, NetworkPolicy, PDB, and persistence.
  • Opt-in compatible security profile with explicit override precedence.

Install

helm repo add helmforge https://repo.helmforge.dev
helm install github-mcp-server helmforge/github-mcp-server

The default deployment starts the server in HTTP mode on port 8082, read-only mode enabled, and the default toolset selected. The chart is stateless by default. If persistence is enabled and the Deployment is scaled above one replica, use ReadWriteMany storage or disable persistence to avoid sharing one ReadWriteOnce PVC across pods.

Ingress class rendering is optional. Set ingress.ingressClassName: "" to omit spec.ingressClassName. When networkPolicy.enabled=true, ingress is restricted to the configured peers. Setting networkPolicy.extraEgress also enables egress isolation with built-in DNS and HTTPS allowances, then appends the supplied proxy or API-server rules.

Token Configuration

Use a Kubernetes Secret for production:

github:
  existingSecret: github-mcp-token
  existingSecretKey: token
  requireToken: true

For GitHub Enterprise Server:

github:
  host: ghe.example.com

Use the bare Enterprise hostname in values; the chart passes it to the upstream server as an HTTPS API host.

Tool Selection

Limit tools exposed to agents:

github:
  readOnly: true
  toolsets: repos,issues,pull_requests
  excludeTools: create_issue,create_pull_request

Nonempty app.args replaces all generated arguments, including the chart's read-only and tool-selection flags. Use it only when you intend to own the complete upstream command line.

Upgrade Compatibility

The P2 baseline keeps the 1.0.4 default security render unchanged. securityProfile.enabled defaults to false, and templates tolerate the new map being absent during --reuse-values upgrades.

helm upgrade github-mcp-server helmforge/github-mcp-server --reuse-values
kubectl rollout status deployment/github-mcp-server --timeout=300s

Enable the profile only after the baseline upgrade is healthy:

securityProfile:
  enabled: true

The profile adds RuntimeDefault seccomp, a read-only root filesystem, disabled privilege escalation, and dropped capabilities. It does not force a numeric user because the official image metadata declares UID 0. Explicit podSecurityContext and securityContext values take precedence.

Configuration Highlights

KeyDefaultPurpose
app.port8082Real MCP HTTP listener port
github.readOnlytrueFilter write tools from generated arguments
github.toolsetsdefaultEnabled upstream toolsets
github.existingSecret""Production token Secret
serviceAccount.automountServiceAccountTokenfalseKeep Kubernetes credentials out of the pod
networkPolicy.enabledfalseEnable ingress policy
securityProfile.enabledfalseEnable compatible hardening defaults
replicaCount1HTTP server replicas
github.host""GitHub Enterprise hostname
github.tools""Explicit tool allow-list
github.excludeTools""Explicit tool deny-list
github.requireTokenfalseFail rendering without a token source
persistence.enabledfalseMount optional application storage
pdb.enabledfalseCreate a PodDisruptionBudget
ingress.enabledfalseCreate an Ingress
gateway.enabledfalseCreate a Gateway API HTTPRoute
service.port8082Cluster-facing Service port
probes.startup.enabledtrueGate startup on the TCP listener
resources{}Pod CPU and memory requests and limits
terminationGracePeriodSeconds30Graceful shutdown window

Examples

  • Simple internal server keeps the endpoint private and uses the default read-only tool surface.
  • Production server demonstrates an existing token Secret, bounded resources, availability controls, and private exposure.

Render an example before applying it:

helm template github-mcp-server ./charts/github-mcp-server \
  --values ./charts/github-mcp-server/examples/production.yaml

Architecture

MCP clients reach a ClusterIP Service or an authenticated Ingress/Gateway. The Deployment reads a GitHub credential from a Secret and calls GitHub.com or GHES over HTTPS. The runtime is stateless by default, so replicas can scale without shared storage. See DESIGN.md for trust boundaries and operations for rollout and scaling guidance.

Troubleshooting

  • If the server starts without the expected restrictions, verify that app.args is empty so chart-generated flags are active.
  • If GitHub returns authentication errors, verify the Secret key and token scopes without printing the credential.
  • If GHES is unreachable under egress isolation, add its destination to networkPolicy.extraEgress.
  • If the hardened profile blocks a custom binary or writable path, add the smallest explicit securityContext exception after review.

Security Scan: github-mcp-server

FrameworkScore
Overall75.76%
MITRE100.00%
NSA65.00%
SOC280.00%

Security posture acceptable.

Documentation

Deploy github-mcp-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has github-mcp-server on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgithub-mcp-server is pinned at v1.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply