npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-redhat-subscription

v2.0.2

Published

MCP server for Red Hat Subscription Management API

Downloads

300

Readme

mcp-redhat-subscription

An MCP server for the Red Hat Subscription Management API. Full coverage of the RHSM API — subscriptions, systems, allocations, errata, packages, images, cloud access, and organization.

Tools

Subscriptions

| Tool | Description | |------|-------------| | listSubscriptions | List Red Hat subscriptions for the authenticated account | | getSubscription | Get details of a specific subscription including pools and consumed quantities | | listSubscriptionContentSets | List all content sets for a subscription | | listSubscriptionSystems | List all systems consuming a subscription |

Systems

| Tool | Description | |------|-------------| | listSystems | List systems registered with Red Hat Subscription Management | | getSystem | Get details of a specific registered system | | removeSystem | Remove a system profile | | attachSystemEntitlement | Attach an entitlement to a system from a pool | | removeSystemEntitlement | Remove an entitlement from a system | | listSystemErrata | List all applicable errata for a system | | listSystemPackages | List all packages for a system | | listSystemPools | List all pools for a system |

Allocations (Satellite Manifests)

| Tool | Description | |------|-------------| | listAllocations | List subscription allocations | | getAllocation | Get details of a specific allocation | | createAllocation | Create a new Satellite allocation | | updateAllocation | Update an allocation (name, version, SCA) | | removeAllocation | Remove an allocation (requires force) | | listAllocationVersions | List available Satellite versions | | listAllocationPools | List all pools for an allocation | | attachAllocationEntitlement | Attach an entitlement to an allocation | | updateAllocationEntitlement | Update entitlement quantity on an allocation | | removeAllocationEntitlement | Remove an entitlement from an allocation | | exportAllocation | Trigger manifest export | | getExportJobStatus | Check export job status | | downloadAllocationExport | Download a completed manifest export |

Errata

| Tool | Description | |------|-------------| | listErrata | List all errata applicable to the user's systems | | listErrataByContentSetArch | List errata for a content set and architecture | | getErratum | Get details of a specific advisory | | listErratumImages | List updated container images for an advisory | | listErratumPackages | List all packages for an advisory | | listErratumSystems | List all systems affected by an advisory |

Images

| Tool | Description | |------|-------------| | listImagesByContentSet | List available images in a content set | | listImageDownloads | List RHEL image downloads by version and architecture | | downloadImage | Download an image by SHA256 checksum |

Packages

| Tool | Description | |------|-------------| | listPackagesByContentSetArch | List packages for a content set and architecture | | getPackage | Get details of a package by checksum | | downloadPackage | Download a package by SHA256 checksum |

Cloud Access

| Tool | Description | |------|-------------| | listCloudAccessProviders | List enabled cloud access providers | | addCloudProviderAccounts | Add provider accounts (AWS, Azure, GCE) | | updateCloudProviderAccount | Update a provider account | | removeCloudProviderAccount | Remove a provider account | | removeCloudProviderAccountBySourceId | Remove a provider account by source ID | | verifyCloudProviderAccount | Verify a provider account | | enableGoldImages | Enable Gold image access for a provider |

Organization

| Tool | Description | |------|-------------| | getOrganization | Get organization details including SCA capability |

Prerequisites

Configuration

Set your Red Hat offline API token in your shell profile:

export REDHAT_TOKEN="your-offline-token-here"

In enterprise environments, provide REDHAT_TOKEN through your secrets management solution (e.g. HashiCorp Vault, Kubernetes secrets, or your CI platform's secret variables) rather than shell profiles.

Gemini CLI

Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "redhat-subscription": {
      "command": "npx",
      "args": ["-y", "mcp-redhat-subscription"],
      "env": {
        "REDHAT_TOKEN": "$REDHAT_TOKEN"
      }
    }
  }
}

watsonx Orchestrate

# Add a connection for the Red Hat API token
orchestrate connections add --app-id "redhat-subscription"
orchestrate connections configure --app-id redhat-subscription --env draft --kind key_value --type team --url "https://access.redhat.com"
orchestrate connections set-credentials --app-id "redhat-subscription" --env draft -e REDHAT_TOKEN=your-offline-token-here

# Import the MCP toolkit
orchestrate toolkits import --kind mcp \
  --name redhat-subscription \
  --description "Red Hat Subscription Management" \
  --command "npx -y mcp-redhat-subscription" \
  --tools "*" \
  --app-id redhat-subscription

Claude Code

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "redhat-subscription": {
      "command": "npx",
      "args": ["-y", "mcp-redhat-subscription"],
      "env": {
        "REDHAT_TOKEN": "${REDHAT_TOKEN}"
      }
    }
  }
}

VS Code / Cursor

Add to .vscode/mcp.json in your workspace:

{
  "mcpServers": {
    "redhat-subscription": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-redhat-subscription"],
      "env": {
        "REDHAT_TOKEN": "${REDHAT_TOKEN}"
      }
    }
  }
}

Authentication

The server exchanges your Red Hat offline API token for a short-lived bearer token via Red Hat SSO. Tokens are cached and refreshed automatically.

Related MCP Servers

License

MIT