OpenShift Filesystem MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OpenShift Filesystem MCP
Model Context Protocol (MCP) server that exposes read-only access to OpenShift node host paths (/etc, /sys, /proc, /usr) over HTTP/SSE. Intended for use with AI assistants and tools that speak MCP and need to inspect host-level configuration and system state on an OpenShift cluster.
Overview
MCP server: @modelcontextprotocol/server-filesystem runs inside a Node.js container with host paths mounted at
/host/etc,/host/sys,/host/proc,/host/usr.Two-container architecture:
Images: UBI9 Node.js 22 (backend), UBI9 Python 3.12 (proxy); built from
backend/Containerfileandproxy/Containerfile.
Related MCP server: corporate-mcp-system-inspector
Prerequisites
OpenShift cluster (or Kubernetes with host path mounts and appropriate security context).
kubectlandocin your path.Container tool: podman (default) or docker.
For building from the Containerfiles: access to
registry.access.redhat.com(UBI base images; see Registry credentials if pull fails).
Quick Start
Create and grant the custom read-only SCC (once per cluster)
The deployment uses a custom SCChostpath-readonly(similar tohostmount-anyuidbut requires read-only root filesystem). Create it, then grant it to the ServiceAccount:make apply-scc make grant-sccBuild, push, and deploy
Builds both images; overrideQUAY_WORKSPACEorIMG_BACKEND/IMG_PROXYas needed:make container-build container-push deployGet the MCP URL
After deploy, the Route hostname is shown by:oc get route openshift-filesystem-mcp -n openshift-filesystem-mcp -o jsonpath='{.spec.host}'Use
https://<route-host>(orhttp://if edge termination allows) as the MCP server URL in your client (e.g. Cursor, Claude Desktop).
OpenShift Lightspeed (OLS)
To use this MCP server with OpenShift Lightspeed, add it under spec.mcpServers in your OLSConfig custom resource (streamable HTTP on /mcp). Edit the cluster OLSConfig with oc edit olsconfig cluster and add the following under spec (alongside your existing llm, ols, etc.):
spec:
featureGates:
- MCPServer
mcpServers:
- name: openshift-filesystem-mcp
streamableHTTP:
url: http://openshift-filesystem-mcp.openshift-filesystem-mcp.svc.cluster.local:8080/mcp
timeout: 60
sseReadTimeout: 0
enableSSE: falseIn-cluster URL: Use the above when OLS runs in the same cluster (e.g. in the same or another namespace). The service is
openshift-filesystem-mcpin namespaceopenshift-filesystem-mcp, port 8080.Via Route: If OLS reaches the cluster via the OpenShift Route, set
urltohttps://<route-host>/mcp(get the host withoc get route openshift-filesystem-mcp -n openshift-filesystem-mcp -o jsonpath='{.spec.host}').Feature gate: The
MCPServerfeature gate (shown above underspec.featureGates) must be enabled for MCP servers to be used.
Make Targets
Target | Description |
| Build both container images (backend + proxy) |
| Push both images to the registry |
| Deploy to OpenShift with Kustomize (sets both images) |
| Remove the deployment from the cluster |
| Build and run Node.js backend locally (no proxy; raw tools, host paths read-only) |
| Stop the locally running MCP server container (if run in background) |
| Create dummy content in |
| Create the custom |
| Grant |
| Create |
| Run all linters (yamllint, hadolint, mdlint) |
| Lint YAML files (config: |
| Lint Containerfiles |
| Lint Markdown files (config: |
| Show all targets and variables |
Variables
IMG_BACKEND — Backend image (default:
quay.io/$(USER)/openshift-filesystem-mcp-backend:$(VERSION)).IMG_PROXY — Proxy image (default:
quay.io/$(USER)/openshift-filesystem-mcp-proxy:$(VERSION)).CONTAINER_ENGINE —
podman(default) ordocker.PLATFORM — Build platform (default:
linux/amd64).VERSION — Image tag (default:
git describeorlatest).
Example workflow
# One-time: create SCC, grant to ServiceAccount, and (if needed) registry credentials
make apply-scc
make grant-scc
make setup-registry-credentials # if base image pull fails
# Build, push, deploy (both images)
make container-build container-push deployVerifying local deployment
After running make deploy-local-dirs and make deploy-local, the MCP server listens at http://localhost:8080. Use these steps to confirm it is working.
1. Check the container is running
In another terminal (the one that ran make deploy-local keeps the server in the foreground):
# With podman (default)
podman ps
# Or with docker
docker psYou should see one running container with port 8080 mapped (look for openshift-filesystem-mcp or your IMG_BACKEND name).
2. Check the HTTP endpoint responds
The MCP server exposes /sse (SSE) and /mcp (streamable HTTP). A simple request should get a response (status or body depends on the server):
curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8080/sse
# Expect a numeric HTTP status (e.g. 200 or 404); non-empty means the server is upcurl -s -i http://localhost:8080/sse
# Shows headers and start of SSE stream; confirms the MCP server is serving3. Use an MCP client to list and read files
Configure your MCP client with the server URL http://localhost:8080 (or http://localhost:8080/sse if the client expects an SSE path). Then use the client’s filesystem tools to:
List directories: e.g.
/host/proc,/host/sys,/host/etc,/host/usrRead files: e.g.
/host/proc/version,/host/proc/cpuinfo,/host/sys/kernel/version,/host/usr/share/containers/policy.json
In Cursor: See Configuring Cursor below.
With MCP Inspector (optional CLI-style check):
npx @modelcontextprotocol/inspectorIn the inspector, connect with transport HTTP/SSE and URL http://localhost:8080/sse. Use the “Filesystem” tools to list and read under /host/proc, /host/sys, /host/etc, and /host/usr.
4. Sanity-check the dummy content (macOS)
On macOS, deploy-local uses dummy content from .local-mcp-host/ for /host/sys, /host/proc, and /host/usr. After connecting with an MCP client, reading /host/proc/version should return a line like:
Linux version 5.0.0-dummy (local-mcp-host) #1 SMP ...
and /host/sys/kernel/version should contain local-mcp-host. That confirms the server is serving the staged files correctly.
Configuring Cursor
To use the MCP server in Cursor (with make deploy-local running), add the server via MCP settings or a project-level config file.
Option 1: UI (Settings)
Open Cursor Settings (⌘, on macOS, Ctrl+, on Windows/Linux).
Search for MCP or go to Features → MCP.
Click Add new MCP server (or edit the config file link).
Add a remote server with:
Name: e.g.
openshift-filesystem-mcpURL:
http://localhost:8080/sse(SSE) orhttp://localhost:8080/mcp(Streamable HTTP)
Save and ensure the server is enabled. Start the server with make deploy-local in a terminal before using it in chat.
Option 2: Project config file
Create or edit .cursor/mcp.json in this project:
{
"mcpServers": {
"openshift-filesystem-mcp": {
"url": "http://localhost:8080/sse"
}
}
}Cursor loads project MCP config from .cursor/mcp.json. Use http://localhost:8080/sse for SSE or http://localhost:8080/mcp for Streamable HTTP. The server must be running (make deploy-local) when you use it.
Using the server in chat
Once configured, the MCP server appears under Available Tools in chat. You can ask the AI to:
“List the contents of /host/proc”
“Read /host/proc/version”
“What’s in /host/sys/kernel?”
“Read /host/etc/hosts” (or other files under
/host/etc)“List /host/usr/share/containers” (e.g. CRI-O config)
The AI will use the filesystem tools provided by the server to list and read under /host/etc, /host/sys, /host/proc, and /host/usr.
CI (GitHub Actions)
Two workflows run on every push to main and on every pull request targeting main:
Workflow | Description |
Lint | Runs |
Container build | Runs |
Config: .github/workflows/lint.yaml, .github/workflows/container-build.yaml.
Registry credentials
The Containerfiles use UBI base images from registry.access.redhat.com (backend: ubi9/nodejs-22, proxy: ubi9/python-312). If your cluster can pull images via the global pull-secret, no extra step is needed. Otherwise, create a secret in the deployment namespace from the OpenShift pull-secret:
make setup-registry-credentialsThen ensure the Deployment’s imagePullSecrets (or default service account) references registry-credentials if required by your setup.
Security
No write access to the host. Host paths are mounted read-only (
readOnly: true). Both containers use a read-only root filesystem; the only writable area is an in-memory/tmp(emptyDir). The backend runs as root (runAsUser: 0) withseLinuxOptions.type: spc_tso it can read host paths under SELinux; the proxy runs as non-root (runAsUser: 1001) and does not mount host paths. The proxy hides write/edit tools (write_file,edit_file,create_directory,move_file) from clients so they are not exposed. SetMCP_EXPOSE_WRITE_TOOLS=trueto expose them (e.g. for local testing with writable dirs).The deployment uses a custom hostpath-readonly SCC (see
deploy/scc-hostpath-readonly.yaml), which allows hostPath volumes but requires read-only root filesystem. The SCC usesrunAsUser: RunAsAnyandseLinuxContext: RunAsAnyso the backend can run as root and setspc_tfor host path access; only the openshift-filesystem-mcp ServiceAccount is granted that SCC. Restrict who can create or use this deployment and namespace.The pod sets
seccompProfile.type: RuntimeDefault. The Route uses edge TLS; treat the MCP endpoint as sensitive and limit access (network policies, auth, or cluster visibility) as appropriate for your environment.
Tool description overrides
The proxy applies ToolTransform using proxy/tools.yaml so MCP clients (e.g. Cursor, Claude Desktop, OpenShift Lightspeed) see OpenShift-specific descriptions. It also hides write tools (write_file, edit_file, create_directory, move_file) by default; set MCP_EXPOSE_WRITE_TOOLS=true to expose them.
YAML file (per-tool descriptions)
The proxy image includes proxy/tools.yaml with OpenShift-specific descriptions for all read-only tools. It is used by default via MCP_TOOL_DESCRIPTIONS_FILE. Descriptions are based on the upstream server-filesystem.
Project layout
.
├── backend/ # Node.js backend container (mcp-proxy + server-filesystem)
│ ├── Containerfile
│ ├── .containerignore
│ ├── Makefile
│ ├── package.json
│ └── package-lock.json
├── proxy/ # MCP proxy with transforms (FastMCP, YAML tool overrides)
│ ├── Containerfile
│ ├── .containerignore
│ ├── Makefile
│ ├── server.py
│ ├── requirements.txt
│ └── tools.yaml # Tool config: descriptions, renames (baked into proxy image)
├── .github/workflows/
│ ├── lint.yaml # CI: make lint on push/PR to main
│ └── container-build.yaml # CI: make container-build on push/PR to main
├── .pymarkdownlnt.json # Markdown linter config
├── .yamllint.yaml # YAML linter config
├── Makefile # Build, push, deploy, lint, apply-scc, grant-scc, help
├── README.md
├── requirements.txt # Linter deps (yamllint, hadolint, pymarkdownlnt)
└── deploy/
├── kustomization.yaml
├── namespace.yaml
├── scc-hostpath-readonly.yaml # Custom SCC for read-only host path mounts
├── deployment.yaml # Two-container pod (backend + proxy)
├── service.yaml
├── route.yaml # OpenShift Route for HTTP/SSE
└── serviceaccount.yamlLicense
This project is licensed under the Apache License 2.0. See LICENSE for the full text.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Guarded MCP server for agent-readable business truth, provenance, readiness, and discovery.
Read-only Linux server and Docker monitoring for AI assistants: CPU, memory, disk, network.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables read-only observability of a Linux host via MCP, exposing allowlisted systemd, docker, nginx, logs, disk, and cert info without shell access.MIT
- FlicenseAqualityDmaintenanceEnables observation-only system inspection through MCP, exposing system identity, resources, process summary, and network summary without any mutation or command execution.4-
- AlicenseNot gradedqualityBmaintenanceEnables read-only, allowlisted filesystem and Git inspection of explicitly configured local repositories through MCP, with bounded reads and no arbitrary path or write access.10 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only access to private filesystem workspaces through MCP, allowing clients to list, inspect, read, and search files without uploading the workspace or opening inbound firewall ports.1MIT