1. Conduid
  2. Cloud
  3. StacklokLabs/ocireg-mcp
MCP server · Cloud

StacklokLabs/ocireg-mcp

An MCP (Model Context Protocol) server that provides tools for querying OCI registries and image references.

Unclaimed Apache-2.0 cloud
64Good

Scored yesterday · breakdown

About StacklokLabs/ocireg-mcp

StacklokLabs/ocireg-mcp is an MCP server published by StacklokLabs in the Cloud category: an MCP (Model Context Protocol) server that provides tools for querying OCI registries and image references.

The repository has 13 stars and 4 forks, with the last commit 4 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/StacklokLabs/ocireg-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about StacklokLabs/ocireg-mcp

Powered by Claude · Grounded in docs

I know everything about StacklokLabs/ocireg-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.3.1v0.3.1 · 14 Oct 2026What's Changed fix(deps): update module github.com/mark3labs/mcp-go to v0.47.1 by @renovate[bot] in https://github.com/StacklokLabs/ocireg-mcp/pull/76 fix(deps): update module github.com/mark3labs/mcp-go to v0.48.0 by @renovate[bot] in…
v0.3.0v0.3.0 · 26 Mar 2026What's Changed fix(deps): update module github.com/mark3labs/mcp-go to v0.45.0 by @renovate[bot] in https://github.com/StacklokLabs/ocireg-mcp/pull/65 fix(deps): update module golang.org/x/mod to v0.34.0 by @renovate[bot] in…
v0.2.1v0.2.1 · 13 Mar 2026What's Changed fix: set destructiveHint to false on all read-only tools (#62) chore(deps): update docker/login-action action to v4 (#61) Full Changelog: https://github.com/StacklokLabs/ocireg-mcp/compare/v0.2.0...v0.2.1
v0.2.0v0.2.0 · 3 Mar 2026What's Changed Update sigstore/cosign-installer action to v4 by @renovate[bot] in https://github.com/StacklokLabs/ocireg-mcp/pull/44 Enable parallel runners for golangci-lint by @JAORMX in https://github.com/StacklokLabs/ocireg-mcp/pull/54…
v0.1.0v0.1.0 · 19 Jan 2026What's Changed Update sigstore/cosign-installer action to v3.10.1 by @renovate[bot] in https://github.com/StacklokLabs/ocireg-mcp/pull/43 Update module github.com/mark3labs/mcp-go to v0.42.0 by @renovate[bot] in…

README

OCI Registry MCP Server

Trust Score An MCP (Model Context Protocol) server that provides tools for querying OCI registries and image references.

Overview

This project implements an SSE-based MCP server that allows LLM-powered applications to interact with OCI registries. It provides tools for retrieving information about container images, listing tags, and more.

Features

  • Get information about OCI images
  • List tags for repositories
  • Get image manifests
  • Get image configs

MCP Tools

The server provides the following MCP tools:

get_image_info

Get information about an OCI image.

Input:

  • image_ref: The image reference (e.g., docker.io/library/alpine:latest)

Output:

  • Image information including digest, size, architecture, OS, creation date, and number of layers

list_tags

List tags for a repository.

Input:

  • repository: The repository name (e.g., docker.io/library/alpine)

Output:

  • List of tags for the repository

get_image_manifest

Get the manifest for an OCI image.

Input:

  • image_ref: The image reference (e.g., docker.io/library/alpine:latest)

Output:

  • The image manifest

get_image_config

Get the config for an OCI image.

Input:

  • image_ref: The image reference (e.g., docker.io/library/alpine:latest)

Output:

  • The image config

Usage

Running with ToolHive (Recommended)

The easiest way to run the OCI Registry MCP server is using ToolHive, which provides secure, containerized deployment of MCP servers:

# Install ToolHive (if not already installed)
# See: https://docs.stacklok.com/toolhive/guides-cli/install

# Register a supported client so ToolHive can auto-configure your environment
thv client setup
# Run the OCI Registry MCP server (packaged as 'oci-registry' in ToolHive)
thv run oci-registry

# List running servers
thv list

# Get detailed information about the server
thv registry info oci-registry

The server will be available to your MCP-compatible clients and can query OCI registries for image information.

Authentication with ToolHive

If you need to access private registries, you can provide authentication credentials using ToolHive's secret management:

# For bearer token authentication
thv secret set oci-token
# Enter your bearer token when prompted

thv run --secret oci-token,target=OCI_TOKEN oci-registry

# For username/password authentication
thv secret set oci-username
thv secret set oci-password
# Enter your credentials when prompted

thv run --secret oci-username,target=OCI_USERNAME --secret oci-password,target=OCI_PASSWORD oci-registry

Development

Prerequisites

  • Go 1.21 or later
  • Access to OCI registries

Authentication

The server supports the following authentication methods for accessing private OCI registries (in order of priority):

  1. HTTP Authorization Header (Highest Priority): Include a bearer token in the HTTP request's Authorization header:

    • Authorization: Bearer <your-token>
    • This method takes precedence over all other authentication methods
    • When present, environment variables and Docker config are ignored
  2. Bearer Token Environment Variable: Set the following environment variable:

    • OCI_TOKEN: Bearer token for registry authentication
  3. Username and Password: Set the following environment variables:

    • OCI_USERNAME: Username for registry authentication
    • OCI_PASSWORD: Password for registry authentication
  4. Docker Config (Lowest Priority): If no other authentication is provided, the server will use the default Docker keychain, which reads credentials from ~/.docker/config.json.

Examples:

# HTTP Authorization header (for per-request authentication)
# This is handled automatically by the MCP client when making requests
# Example: curl -H "Authorization: Bearer mytoken" http://localhost:8080/...

# Bearer token authentication via environment variable
export OCI_TOKEN=mytoken

# Username/password authentication via environment variables
export OCI_USERNAME=myuser
export OCI_PASSWORD=mypassword

Port Configuration

The server can be configured to listen on a specific port using either:

  1. Environment Variable:

    • MCP_PORT: The port number to listen on (must be between 0 and 65535)
    • If not set or invalid, defaults to port 8080
  2. Command-line Flag:

    • -port: Overrides the environment variable setting (must be between 0 and 65535)
    • If invalid port provided it defaults to port 8080
    • Example: ./ocireg-mcp -port 9090

Testing

go test ./...

Linting

golangci-lint run

Contributing

We welcome contributions to this MCP server! If you'd like to contribute, please review the CONTRIBUTING guide for details on how to get started.

If you run into a bug or have a feature request, please open an issue in the repository or join us in the #mcp-servers channel on our community Discord server.

License

This project is licensed under the Apache v2 License - see the LICENSE file for details.

README fetched from the repository yesterday. The original is authoritative.

Questions

About StacklokLabs/ocireg-mcp

How do I install StacklokLabs/ocireg-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is StacklokLabs/ocireg-mcp safe to use with an AI agent?

Its trust score is 64 out of 100 (good). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is StacklokLabs/ocireg-mcp still maintained?

Yes — the latest release is v0.3.1 (14 Oct 2026), and the last commit was 4 days ago. The repository has 13 stars and 3 open issues.