Red Hat Lightspeed MCP
io.github.RedHatInsights由 GitHub 账号 RedHatInsights 发布v1.0.108+c7eb91fc更新于 Nov 7, 2026
Model Context Protocol server for Red Hat Lightspeed - advisor, image builder, inventory, and more
概览
自托管的 MCP 服务器,让助手连接 Red Hat Lightspeed 服务,查询 RHEL 与 OpenShift 的清单、顾问、镜像构建等。
- 可以做什么
- 用自然语言查询 Red Hat Lightspeed 的 Advisor、OCP Advisor、Inventory、Vulnerability 与 Planning 服务。
- 查看内容源与仓库,并构建托管镜像。
- 查看修复方案(Remediations)与 RHSM 激活密钥。
- 默认只读运行;创建蓝图、运行 compose 等写入工具需通过 --all-tools 参数启用。
- 适用场景
- 当你管理 Red Hat 订阅,希望助手能就所在组织的 Hybrid Cloud Console 账户中的主机、公告、漏洞、镜像或修复方案回答问题时可使用。
- 运行要求
- 需要本地容器运行时(podman 或 docker)以 stdio 方式运行已发布镜像,或采用 HTTP/SSE 部署。需要具备 LIGHTSPEED_CLIENT_ID 与 LIGHTSPEED_CLIENT_SECRET 的 Red Hat 服务账户,HTTP 传输也可改用 JWT Bearer 令牌。服务账户需由组织管理员为所用工具集分配相应角色。
安装
在 SourceWeft 中
- 打开 控制台中的 Red Hat Lightspeed MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Red Hat Lightspeed MCP
(formerly known as Insights MCP)
Red Hat Lightspeed Model Context Protocol (MCP) server is a lightweight, self-hosted solution that connects LLM-based agents - such as Claude Desktop and other MCP-compatible tools - to Red Hat Lightspeed services.
Features
- Supports read-only operations: The server runs in read-only mode by default. Use
--all-toolsto enable write tools (e.g. create blueprints, run composes). RBAC permissions can also restrict access. - Provides natural language prompts: provides an ability to use natural language for querying Red Hat Lightspeed services
Supported Lightspeed Services
- Advisor
- Content sources (repositories)
- Hosted image builder
- Inventory
- OCP advisor
- Planning
- Remediations
- RHSM (activation keys)
- Vulnerability
Setup and usage
Authentication
Note: Authentication is only required for accessing Red Hat Lightspeed APIs. The MCP server itself does not require authentication.
There are two ways to authenticate:
- Service Account (client_id + client_secret) — create a service account and provide the credentials via environment variables or HTTP headers.
- JWT Bearer Token — provide a pre-existing JWT token via the
Authorization: Bearer <token>HTTP header (SSE/HTTP transports only).
Service Account Setup
- Go to https://console.redhat.com → Click Settings (⚙️ Gear Icon) → "Service Accounts"
- Create a service account and remember
Client IDandClient secretfor later.
See below in the integration instructions, there they are respectively referred to asLIGHTSPEED_CLIENT_IDandLIGHTSPEED_CLIENT_SECRET.
Required Permissions by Toolset
Different toolsets require specific roles for your service account:
- Advisor tools:
RHEL Advisor viewer,Inventory Hosts viewer - OCP Advisor tools:
OCP Advisor administrator - Inventory tools:
Inventory Hosts viewer,Workspace viewer - Vulnerability tools:
Vulnerability viewer,Inventory Hosts viewer - Remediation tools:
Remediations user - Image Builder tools:
Repositories viewer - RHSM tools:
RHC user - Content Sources tools:
Repositories viewer - Planning tools:
Inventory Hosts viewer
These names are Hybrid Cloud Console User Access display names. Do not copy role detail URLs between accounts; they contain tenant-specific identifiers. The consolidated RHEL viewer role can substitute for several of the viewer roles above.
Granting Permissions to Service Accounts
By default, service accounts have no access. An organization administrator must assign permissions. The MCP server will only be able to perform tasks that it has permission to perform. For example, if the user wants to allow read-only operations and deny write operations, this can be accomplished via the permissions system.
For detailed step-by-step instructions, see this video tutorial: Service Account Permissions Setup
-
Log in as Organization Administrator with User Access administrator role
-
Navigate to User Access Settings: Click Settings (⚙️ Gear Icon) → "User Access" → "Groups"
-
Assign permissions (choose one option):
Option A - Create New Group:
- Create new group (e.g.,
mcp-service-accounts) - Add required roles (e.g., RHEL Advisor viewer, Inventory Hosts viewer, etc.)
- Add your service account to this group
Option B - Use Existing Group:
- Open existing group with necessary roles
- Go to "Service accounts" tab
- Add your service account to the group
- Create new group (e.g.,
Your service account will inherit all roles from the assigned group.
⚠️ Security Remarks ⚠️
If you start this MCP server locally (with podman or docker) make sure the container is not exposed to the internet. In this scenario it's probably fine to use LIGHTSPEED_CLIENT_ID and LIGHTSPEED_CLIENT_SECRET although your MCP Client (e.g. VSCode, Cursor, etc.) can get your LIGHTSPEED_CLIENT_ID and LIGHTSPEED_CLIENT_SECRET.
For a deployment where you connect to this MCP server from a different machine, you should consider that LIGHTSPEED_CLIENT_ID and LIGHTSPEED_CLIENT_SECRET (or your JWT Bearer token) are transferred to the MCP server and you are trusting the remote MCP server not to leak them.
In both cases if you are in doubt, please disable/remove the LIGHTSPEED_CLIENT_ID and LIGHTSPEED_CLIENT_SECRET from your account after you are done using the MCP server.
Security & Incident Response (Emergency Revocation)
To ensure safe AI operations and compliance with security standards, operators must be able to rapidly sever the connected LLM's access to Red Hat Lightspeed in the event of abnormal AI behavior, unexpected data exposure, or suspected token compromise.
Emergency "Kill Switch" Procedure:
If you need to immediately revoke AI access to the toolsets, execute the following steps:
- Terminate the Server: Stop the MCP container or local process immediately (e.g., run
podman psto find the container, thenpodman stop <container_id>). - Revoke Credentials: Invalidate the Red Hat Client ID used by the MCP server to authenticate with Red Hat services. Go to the "Service Accounts" page and
DeleteorResetthe credentials.
Additionally you can remove the MCP server entry (e.g., lightspeed-mcp in your client's mcp.json) from your local LLM client's configuration to prevent the client from attempting to restart or reconnect to the server.
If credential compromise or data exposure is suspected, assess breach notification obligations under applicable law (e.g., GDPR). For logging, debug mode, and compliance details, see HACKING.md - Logging and Compliance.
Technical Info
Toolsets
See toolsets.md for the toolsets available in the MCP server.
Integrations
Prerequisites
Make sure you have podman installed.
(Docker is fine too but the commands below have to be adapted accordingly)
You can install it with sudo dnf install podman on Fedora/RHEL/CentOS,
or on macOS follow the instructions of Podman Desktop or Podman.
⚠️ Note if you use Podman on macOS, you sometimes need to set the path to podman explicitly.
E.g. replace podman with the full path. Should be something like
/usr/local/bin/podman/opt/homebrew/bin/podman- …
You can find the path by running which podman in your terminal.
Goose Desktop
First check the prerequisites section.
Option 1: One-click installation (easiest)
The badge uses an HTTPS redirect (goose-docs.ai/extension?...) that opens Goose Desktop's extension install flow.
(Note: this uses the quay.io container image and docker as the command — Goose deeplinks only support docker, not podman. Use the manual install below if you rely on Podman.)
After clicking, Goose prompts for LIGHTSPEED_CLIENT_ID and LIGHTSPEED_CLIENT_SECRET, then installs the extension. Start a new chat session to use it.
Option 2: Manual STDIO installation
- Click the button in the top-left to open the sidebar.
- Click the
Extensionsbutton on the sidebar. - Under
Extensions, clickAdd custom extension. - On the
Add custom extensionmodal, enter:- Type:
Standard IO - ID:
red-hat-lightspeed-mcp - Name:
Red Hat Lightspeed MCP - Description:
Red Hat Lightspeed MCP server integration - Command:
podman run --env LIGHTSPEED_CLIENT_ID --env LIGHTSPEED_CLIENT_SECRET --interactive --rm ghcr.io/redhatinsights/red-hat-lightspeed-mcp:latest - Environment variables: click
Addfor each:LIGHTSPEED_CLIENT_ID— Red Hat Lightspeed Client IDLIGHTSPEED_CLIENT_SECRET— Red Hat Lightspeed Client Secret
- Timeout: leave default (300s) unless needed
- Type:
- Click
Add.
Docker users can replace podman with docker in the command. On macOS, if Goose cannot find podman, use the full path from which podman (see prerequisites).
Cursor
First check the prerequisites section.
Option 1: One-click installation (easiest)
⚠️ Use Ctrl/Cmd-click to open in a new tab.
Otherwise the tab will close after installation and you won't see the documentation anymore.
[Install with Podman in Cursor]
(Note: this uses the quay.io container image)
Option 2: Manual STDIO installation
Cursor doesn't seem to support inputs you need to add your credentials in the config file.
To start the integration create a file ~/.cursor/mcp.json with
If you see the error Some tools have naming issues and may be filtered out., see Known Issues.
Option 3: Manual Streamable HTTP installation (advanced)
start the server:
then integrate using service account credentials:
or alternatively using a JWT Bearer token:
VSCode
First check the prerequisites section.
Option 1: One-click installation (easiest)
[Install with Podman in VS Code]
(Note: this uses the quay.io container image)
Option 2: Manual STDIO installation
For the usage in your project, create a file called .vscode/mcp.json with
the following content.
Gemini CLI
First check the prerequisites section.
Option 1: Manual STDIO installation
To start the integration create a file ~/.gemini/settings.json with the following command:
Option 2: Manual Streamable HTTP installation (advanced)
start the server:
then integrate using service account credentials:
or alternatively using a JWT Bearer token:
Claude Desktop
First check the prerequisites section.
For Claude Desktop there is an extension file in the release section of the project.
Just download the red-hat-lightspeed-mcp*.mcpb file (or red-hat-lightspeed-mcp*.dxt for legacy format) and add this in Claude Desktop with
Settings -> Extensions -> Advanced Extensions Settings -> Install Extension…
CLine with VSCode
First check the prerequisites section.
First off, start the SSE server with sse argument:
In the CLine -> Manage MCP Servers interface, add a new server name and URL:
http://localhost:9000/sse. It shall create the following config:
Ensure the type is sse as CLine does not support HTTP transport yet.
Generic STDIO
First check the prerequisites section.
For generic integration into other tools via STDIO, you should set the environment variables
LIGHTSPEED_CLIENT_ID and LIGHTSPEED_CLIENT_SECRET and use this command for an
integration using podman:
It is the MCP API what is exposed through standard input, not a chat interface.
You need an MCP client with "agent capabilities" to connect to the red-hat-lightspeed-mcp server and really use it.
Claude Code
First check the prerequisites section.
Claude Code requires a slight change to the podman command, as the host environment is not
available when it runs. The credentials must be copied into the configuration instead, which
can be done with the following command after setting LIGHTSPEED_CLIENT_ID and
LIGHTSPEED_CLIENT_SECRET environment variables:
or just set the variables in the command directly:
To verify setup was successful, within the Claude terminal execute the command:
If successful, you should see red-hat-lightspeed-mcp listed under Manage MCP servers with a green check mark connected status besides it.
URL overrides
If you are using a non-standard RH Lightspeed URL, set the environment variables
LIGHTSPEED_BASE_URLLIGHTSPEED_SSO_BASE_URLLIGHTSPEED_PROXY_URLaccordingly.
Agent Skills
This project includes Agent Skills — portable instructions that teach AI assistants how to set up and use Red Hat Lightspeed MCP. Skills are loaded automatically when you open the project in a supported assistant (Cursor, Claude Code, etc.).
Install with Lola
Lola is a universal AI Context Package Manager. Use it to install Lightspeed MCP skills into any supported AI assistant without cloning the full repo:
Available skills are in the .agents/skills/ directory.
Examples
This blog post has a few examples on how to use the RH Lightspeed MCP server.
You can also ask LLM you just attached to the MCP server to. e.g.
For example questions specific to each toolset please have a look at the test files:
image-builder-mcpinventory-mcpplanning-mcpremediations-mcpadvisor-mcpocp-advisor-mcpvulnerability-mcprhsm-mcpcontent-sources-mcprbac-mcp
CLI
For some use cases it might be needed to use the MCP server directly from the command line. See usage.md for the usage of the MCP server.
Releases
There are two container images published for this MCP server.
ghcr.io/redhatinsights/red-hat-lightspeed-mcp:latestquay.io/redhat-services-prod/insights-management-tenant/insights-mcp/red-hat-lightspeed-mcp:latest
They are both based on main branch and you can use either of them.
Insights-branded images are deprecated but still available for a while but might be removed in the future.
ghcr.io/redhatinsights/insights-mcp:latestquay.io/redhat-services-prod/insights-management-tenant/insights-mcp/insights-mcp:latest
Known Issues
Cursor
When using Cursor with the MCP server, you might encounter the following error:
Please rename your MCP server name in the MCP configuration file (mcp.json) to a shorter name.
Disclaimer
This software is provided "as is" without warranty of any kind, either express or implied. Use at your own risk. The authors and contributors are not liable for any damages or issues that may arise from using this software.
Shared auth package
The OAuth/JWT auth provider used by this server for HTTP transport deployments is provided by
rh-fastmcp-server-commons, a PyPI package
shared across Red Hat FastMCP servers. See HACKING.md
for usage and environment variable reference.
Contributing
Please refer to the hacking guide to learn more.
来源:README.md,提交 6d55802
工具
0版本历史
24- v1.0.108+c7eb91fc最新Nov 7, 2026
- v1.0.106+c9253783Nov 5, 2026
- v1.0.105+7fde9279Nov 5, 2026
- v1.0.104+12cf2d96Nov 4, 2026
- v1.0.100+995fb961Nov 3, 2026
- v1.0.98+7d0f9728Oct 29, 2026
- v1.0.92+6d558022Oct 22, 2026
- v1.0.89+b4b1c822Oct 21, 2026
- v1.0.88+6a10a25cOct 20, 2026
- v1.0.82+628258bfOct 16, 2026
- v1.0.81+9469d15aOct 14, 2026
- v1.0.79+1fef0929Oct 13, 2026
- v1.0.77+68dc71d2Oct 8, 2026
- v1.0.76+592deb2bOct 8, 2026
- v1.0.75+11028500Oct 6, 2026
- v1.0.74+541f10d8Oct 2, 2026
- v1.0.73+ae97aecbSep 30, 2026
- v1.0.70+10d74102Sep 29, 2026
- v1.0.66+723fdd13Sep 24, 2026
- v1.0.65+338c9348Sep 23, 2026
- v1.0.64+bf5d49b1Sep 23, 2026
- v1.0.63+89b3ef05Sep 22, 2026
- v1.0.61+660385c8Sep 17, 2026
- v1.0.60+62e7ca51Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分