SuperAPI AI Directory

mirastack-redfish-mcp

🎖️ 🐍 ☁️ 📟 - Governed access to DMTF Redfish BMCs (iDRAC, iLO, XCC, OpenBMC) for power, thermal, firmware and BIOS management; read-only by default with tiered write modes.

Open website

About this tool

MIRASTACK Redfish MCP Server is a governed MCP server for managing BMCs (Baseboard Management Controllers) that conform to the DMTF Redfish specification, including iDRAC, iLO, XCC, OpenBMC, and compatible implementations. The project is built by MIRASTACK LABS and licensed under Apache-2.0.

Purpose and Design Motivation A BMC is an out-of-band control plane that sits before the operating system and has higher privileges than ordinary host-level root access. If autonomous agents are given access to a BMC without strong guardrails, it creates direct blast-radius risk across power, boot, firmware, and account boundaries. This server places dangerous operations behind a deliberate write-mode elevation and by default makes every change execute a dry-run first, so intent can be reviewed before it is applied. The result is a governed operations interface, not an always-armed remote control. Models can still act quickly on diagnostics, but privilege transitions become explicit and auditable.

Main Capabilities

  • Read-only by default: mutating tools are not registered unless write mode is explicitly elevated.
  • Safe write controls: layered registration plus a dry-run-first confirmation mechanism.
  • Protocol-correct Redfish behavior: session authentication, ETag/If-Match, 202 task polling, registry-based error presentation.
  • Supports MCP stdio and streamable-http transports, implemented via the official Python MCP SDK.
  • Uses distilled schema metadata from DMTF Redfish-Publications, pinned to version 2026.1 for reproducibility.
  • Multi-endpoint configuration support.
  • Tool registration configuration (profile) and toolset (toolsets) overrides.

Usage Quick start (no hardware, 60 seconds): run the local DMTF mockup, start the MCP server in read-only mode, and call a read tool.

Quick start (hardware, stdio) and quick start (streamable-http): the corresponding section headings are provided in the materials, but the specific command contents are not given and are not yet provided.

Canonical environment variables: use MIRASTACK_REDFISH_* variables:

  • MIRASTACK_REDFISH_HOST
  • MIRASTACK_REDFISH_USERNAME
  • MIRASTACK_REDFISH_PASSWORD or MIRASTACK_REDFISH_PASSWORD_FILE
  • Optional: MIRASTACK_REDFISH_VERIFY_SSL (default true), MIRASTACK_REDFISH_CA_BUNDLE, MIRASTACK_REDFISH_TIMEOUT_SEC, MIRASTACK_REDFISH_AUTH_MODE

Multi-endpoint configuration: set MIRASTACK_REDFISH_ENDPOINTS to inline JSON or a YAML/JSON file. Set MIRASTACK_REDFISH_DEFAULT_ENDPOINT to select the default endpoint. Legacy bare REDFISH_* environment variables are still read as a fallback, with a one-time deprecation warning for each variable.

Discovery mode: the server can start with zero endpoint credentials and still provide read-only tool discovery (for MCP scanner validation and metadata indexing). In this mode, schema/corpus-backed tools continue to work, while BMC connection tools return a configuration error and indicate the required environment variables. Discovery mode also covers a missing endpoint file: if MIRASTACK_REDFISH_ENDPOINTS points to a nonexistent path (the way container platforms and MCP catalog scanners inject placeholders), the server logs a warning to stderr and starts with zero endpoints. A file that exists but cannot be read or parsed is still a hard startup failure; a partially configured single endpoint (for example, MIRASTACK_REDFISH_HOST present but MIRASTACK_REDFISH_PASSWORD absent) still errors, so typos never silently downgrade a configured deployment.

Tool registration configuration

  • MIRASTACK_REDFISH_TOOL_PROFILE=full (default): allows all toolsets permitted by write mode.
  • MIRASTACK_REDFISH_TOOL_PROFILE=standard: excludes the raw write escape hatch.
  • MIRASTACK_REDFISH_TOOL_PROFILE=core: a curated 15-tool small-model interface.
  • MIRASTACK_REDFISH_TOOLSETS (comma-separated) overrides the profile with explicit toolsets.

In MIRASTACK_REDFISH_WRITE_MAnnounced tool schema payloads measured under ODE=full: core 20,795 bytes (15 tools), standard 43,669 bytes (33 tools), full 54,745 bytes (40 tools). Re-measure with python3 scripts/check_tool_metadata.py --sizes.

Write safety model

  • MIRASTACK_REDFISH_WRITE_MODE=off (default): mutation tools are not registered.
  • MIRASTACK_REDFISH_WRITE_MODE=power: registers power/reset/boot control tools.
  • MIRASTACK_REDFISH_WRITE_MODE=config: registers config-layer tools.
  • MIRASTACK_REDFISH_WRITE_MODE=full: registers full-layer tools.

Each mutation tool accepts a confirm parameter:

  • confirm=false: dry-run response (dry_run=true, applied=false) with next_step.
  • confirm=true: applies the operation.

Per-endpoint read_only=true overrides the global write mode and blocks all writes for that endpoint.

Tools by layer:

  • Power layer: set_power_state, set_boot_override, reset_manager, cancel_task
  • Config layer: set_bios_attributes, eject_virtual_media, redfish_patch, redfish_post, redfish_delete, redfish_invoke_action
  • Full layer: insert_virtual_media, clear_logs, manage_account, simple_update, reset_to_defaults

The schema index is generated from DMTF Redfish-Publications, pinned to a single version to guarantee reproducibility. See CONTRIBUTING.md for the refresh process.

Container and directory deployment The published image places the console script on PATH,so docker run ... mirastack-redfish-mcp --transport stdio works as-is. Some MCP directories ignore the repository Dockerfile and generate their own image from source. If the generated build installs with uv sync, the project lands in a virtual environment at /app/.venv, the console script is not on PATH, and therefore a launcher generated with the bare name fails with ENOENT. Point the launcher at the absolute path. The placeholder MIRASTACK_REDFISH_ENDPOINTS path that the platform never creates is safe—the server starts in discovery mode and provides a read-only tool interface.

Registry publishing notes server.json contains the PyPI and OCI package definitions for the MCP Registry. The README carries the required marker: mcp-name: ai.mirastacklabs/mirastack-redfish-mcp. The Docker image contains the io.modelcontextprotocol.server.name OCI label. Install the official publisher CLI via Homebrew: brew install mcp-publisher. Do not use npx mcp-publisher or pip install mcp-publisher for registry publishing.

Applicable scenarios Suitable for operations and automation scenarios that require governed access to DMTF Redfish-compatible BMCs, especially environments that want to let AI agents participate in power, cooling, firmware, and BIOS management while keeping write operations explicit, reviewable, and auditable.

Limitations and caveats

  • Read-only by default; mutation operations require explicitly elevating the write mode.
  • Binding to 0.0.0.0 exposes BMC control to every host that can reach the port; bind to the loopback address unless the listener is behind an authenticated proxy on a trusted management network.
  • A single endpoint that is partially configured reports an error and cannot silently degrade.
  • GitHub is a public read-only mirror: issues on GitHub are welcome, but pull requests opened on GitHub cannot be merged.
  • See SECURITY.md for the security policy.