oCIS MCP Server - Model Context Protocol server for ownCloud Infinite Scale
933
Docker image for the oCIS MCP Server — a Model Context Protocol server that exposes ownCloud Infinite Scale (oCIS) to AI assistants as 80+ tools (users, groups, spaces, files, shares, search and more), using only the public oCIS APIs. This repo builds and publishes the image; the application source lives in owncloud/ocis-mcp-server.
Build & maintenance: see how these images are built, scanned, updated and published.
By default the server speaks MCP over stdio: the MCP client starts the container and
talks to it through stdin/stdout. -i is required — without it stdin is closed and the
server exits immediately. For the same reason a detached (-d) or Compose container in
stdio mode exits at once with status 0; to run the server as a long-lived service, use the
HTTP transport.
docker run -i --rm \
-e OCIS_MCP_OCIS_URL=https://ocis.example.com \
-e OCIS_MCP_APP_TOKEN_USER=alice \
-e OCIS_MCP_APP_TOKEN_VALUE=<app-token> \
owncloud/ocis-mcp-server:1.1.0
Create the app token in the oCIS web UI under Settings > Security > App tokens (oCIS
needs OCIS_ADD_RUN_SERVICES=auth-app and PROXY_ENABLE_APP_AUTH=true). The server
acts with that user's permissions.
Most MCP clients (Claude Desktop, Claude Code, mcphost, …) accept a command to launch.
Pass the variable names with -e NAME and their values through the client's env, so
the token does not appear in the command line:
{
"mcpServers": {
"ocis": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "OCIS_MCP_OCIS_URL",
"-e", "OCIS_MCP_APP_TOKEN_USER",
"-e", "OCIS_MCP_APP_TOKEN_VALUE",
"owncloud/ocis-mcp-server:1.1.0"
],
"env": {
"OCIS_MCP_OCIS_URL": "https://ocis.example.com",
"OCIS_MCP_APP_TOKEN_USER": "alice",
"OCIS_MCP_APP_TOKEN_VALUE": "<app-token>"
}
}
}
}
To run the server as a long-lived service that clients reach over the network, switch to
the streamable HTTP transport. The endpoint is /mcp, and every request must carry
Authorization: Bearer <OCIS_MCP_HTTP_SECRET>:
umask 077
printf 'OCIS_MCP_HTTP_SECRET=%s\nOCIS_MCP_APP_TOKEN_VALUE=%s\n' "$(openssl rand -hex 32)" '<app-token>' > mcp.env
docker run -d --name ocis-mcp-server \
--env-file mcp.env \
-e OCIS_MCP_TRANSPORT=http \
-e OCIS_MCP_OCIS_URL=https://ocis.example.com \
-e OCIS_MCP_APP_TOKEN_USER=alice \
-p 127.0.0.1:8090:8090 \
--read-only \
owncloud/ocis-mcp-server:1.1.0
The image listens on 0.0.0.0:8090 so the port can be published, and the server
refuses to start in HTTP mode without OCIS_MCP_HTTP_SECRET. Anyone holding the
secret can use every tool with the configured oCIS credentials: put TLS in front of it
and do not expose it publicly. See upstream's
Securing the HTTP transport.
All settings are environment variables:
| Variable | Default | Purpose |
|---|---|---|
OCIS_MCP_OCIS_URL | — (required) | Base URL of oCIS, e.g. https://ocis.example.com |
OCIS_MCP_AUTH_MODE | auto-detected | app-token or oidc; required only when both kinds of credentials are set |
OCIS_MCP_APP_TOKEN_USER | — | oCIS user the app token belongs to |
OCIS_MCP_APP_TOKEN_VALUE | — | The app token (recommended authentication) |
OCIS_MCP_OIDC_ACCESS_TOKEN | — | OIDC access token (alternative authentication) |
OCIS_MCP_OIDC_ISSUER, OCIS_MCP_OIDC_CLIENT_ID, OCIS_MCP_OIDC_CLIENT_SECRET | — | OIDC client settings |
OCIS_MCP_EDUCATION_ACCESS_TOKEN | — | Optional token for the oCIS Education API tools |
OCIS_MCP_TRANSPORT | stdio | stdio or http |
OCIS_MCP_HTTP_ADDR | 0.0.0.0:8090 in this image | Listen address of the HTTP transport (upstream default 127.0.0.1:8090) |
OCIS_MCP_HTTP_SECRET | — | Bearer token required on /mcp; mandatory in HTTP mode on a non-loopback address |
OCIS_MCP_LOG_LEVEL | info | debug, info, warn or error (logs go to stderr) |
OCIS_MCP_HTTP_TIMEOUT | 30s | Timeout of requests to oCIS (Go duration) |
OCIS_MCP_INSECURE | false | Allow a plaintext http:// oCIS URL (development only) |
OCIS_MCP_TLS_SKIP_VERIFY | false | Skip TLS certificate verification towards oCIS (development only) |
See the upstream README and Getting Started guide for authentication details and the full tool inventory.
| Tag | Meaning |
|---|---|
latest | The highest released version |
X.Y.Z | A specific release (e.g. 1.1.0), rebuilt in place while it is the newest one |
X.Y.Z-YYYYMMDD | The build of a release on a given day (e.g. 1.1.0-20261125); never touched again after that day |
Note: Only plain
vX.Y.Zupstream release tags are built; there are no floatingX.YorXtags. Images start at1.1.0:1.0.0has no authentication on its HTTP transport, so it is not published. For production, pin anX.Y.ZorX.Y.Z-YYYYMMDDtag instead oflatest. A second rebuild on the same day replaces that day'sX.Y.Z-YYYYMMDDtag; pin by digest if you need the exact bytes.
docker pull owncloud/ocis-mcp-server:latest
workflow_dispatch) instead of waiting.None. The server keeps no state; the container can run with --read-only.
| Port | Protocol | Purpose |
|---|---|---|
8090 | TCP | MCP streamable HTTP endpoint /mcp — only with OCIS_MCP_TRANSPORT=http |
In the default stdio mode no port is opened. There is no health endpoint and no
HEALTHCHECK. In HTTP mode, probe the port over TCP (e.g. a Kubernetes tcpSocket
probe on 8090): an HTTP probe fails, because /mcp answers 401 without the bearer
token and / answers 404.
The image is based on Alpine Linux and runs as uid/gid 10001 (mcp). The binary is
/usr/local/bin/ocis-mcp-server; the licence is in /usr/share/doc/ocis-mcp-server/.
| ARG | Default | Purpose |
|---|---|---|
GIT_REF | main | ocis-mcp-server git ref (tag or branch) to clone and build, e.g. v1.1.0 |
GIT_SHA | "" | Optional exact commit to check out after cloning GIT_REF. CI passes the commit the verified tag points to |
VERSION | "" | Version reported by the server (dev when empty) and embedded in the OCI labels, e.g. 1.1.0 |
REVISION | "" | Git commit embedded in the OCI labels |
TARGETARCH | set by buildx | Target architecture (amd64, arm64) |
The image is built entirely from source via a three-stage Dockerfile.multiarch:
source — clones ocis-mcp-server at ${GIT_REF}, pinned to ${GIT_SHA} when set.
build — compiles the static Go binary (cmd/ocis-mcp-server) with
CGO_ENABLED=0 for the target architecture, embedding ${VERSION}.
Runtime — Alpine with the binary, CA certificates and the licence.
docker buildx build -f Dockerfile.multiarch \
--build-arg GIT_REF=v1.1.0 \
--build-arg VERSION=1.1.0 \
-t ocis-mcp-server:test .
The GitHub Actions workflow (.github/workflows/main.yml) runs on pull requests,
pushes to main, a schedule and by hand:
main while there is none, or it does not verify), without publishing it.linux/amd64, linux/arm64), built natively on each
architecture..trivyignore.initialize request over stdio and checks that the
server reports the version being built.See SUPPORT.md for the full list of support channels.
We welcome contributions! Please read the Contributing Guidelines and our Code of Conduct before getting started.
Signed-off-by line (git commit -S -s).owncloud,
created by GitHub (actions/*), or verified in the GitHub Marketplace, pinned
to a full commit SHA.Note: bug reports and feature requests for the oCIS MCP Server itself belong upstream in
owncloud/ocis-mcp-server — this repository
tracks only the Docker packaging.
Do not open a public GitHub issue for security vulnerabilities.
Report vulnerabilities at https://security.owncloud.com — see SECURITY.md.
The Kiteworks Open Source Program Office, operating under the ownCloud brand, launched on May 5, 2026, to steward the open source ecosystem around ownCloud's products. The OSPO ensures transparent governance, license compliance, community health, and sustainable collaboration between the open source community and Kiteworks, which acquired ownCloud in 2023.
For questions about the OSPO or licensing, contact [email protected].
This repository is licensed under the Apache License 2.0, which is the license the OSPO is adopting across the ecosystem. No relicensing is required.
Apache-2.0 — see LICENSE.
docker pull owncloud/ocis-mcp-server:latest