Skip to main content

MIRASTACK Redfish MCP Server

Governed MCP server for DMTF Redfish-compliant BMCs — iDRAC, iLO, XCC, OpenBMC and compatible implementations. Read-only by default: mutating tools are not registered unless you explicitly raise the write mode, and every mutation is a dry-run until confirmed.

Built by MIRASTACK LABS. Apache-2.0.

Highlights

  • MCP stdio and streamable-http transports via the official Python MCP SDK.
  • Distilled schema metadata from DMTF Redfish-Publications, pinned to release 2026.1.
  • Protocol-correct Redfish behavior: session auth, ETag/If-Match, 202 task polling, and registry-backed error rendering.
  • Safe write controls: tiered registration plus dry-run-first confirmations.

Why this exists

A BMC is a pre-OS, out-of-band control plane with authority above normal host-level root access. Giving an autonomous agent BMC access without strong guardrails creates immediate blast-radius risk across power, boot, firmware, and account boundaries. This server forces dangerous actions behind deliberate write-mode elevation, and keeps every mutation dry-run by default so intent can be reviewed before application. The result is a governed operational interface rather than an always-armed remote control. The model can still move fast on diagnostics, but privilege transitions become explicit and auditable.

Installation

pip install mirastack-redfish-mcp

Try it in 60 seconds (no hardware)

Run a local DMTF mockup, start the MCP server in read-only mode, and call a read tool:

docker compose -f examples/mockup/docker-compose.yml up -d
export MIRASTACK_REDFISH_HOST="http://127.0.0.1:18000"
export MIRASTACK_REDFISH_USERNAME="<bmc-username>"
export MIRASTACK_REDFISH_PASSWORD="<bmc-password>"
export MIRASTACK_REDFISH_WRITE_MODE="off"
mirastack-redfish-mcp --transport stdio

Example tool call:

{"tool":"service_info","arguments":{}}

Expected output shape:

{
  "endpoint": "default",
  "service_root": {
    "@odata.id": "/redfish/v1"
  },
  "capabilities": {
    "redfish_version": "..."
  }
}

Quick Start (hardware, stdio)

export MIRASTACK_REDFISH_HOST="https://192.0.2.10"
export MIRASTACK_REDFISH_USERNAME="<bmc-username>"
export MIRASTACK_REDFISH_PASSWORD="<bmc-password>"
export MIRASTACK_REDFISH_WRITE_MODE="off"
mirastack-redfish-mcp --transport stdio

Quick Start (streamable-http)

mirastack-redfish-mcp \
  --transport streamable-http \
  --host 127.0.0.1 \
  --port 8000 \
  --path /mcp \
  --stateless-http \
  --json-response

Warning: binding to 0.0.0.0 exposes BMC control to every host that can reach this port. Bind to loopback unless the listener sits behind an authenticating proxy on a trusted management network.

Configuration

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:

{
  "idrac-prod": {
    "base_url": "https://192.0.2.10",
    "username": "<bmc-username>",
    "password_file": "/run/secrets/idrac_password",
    "verify_ssl": true,
    "read_only": true
  },
  "ilo-lab": {
    "base_url": "https://192.0.2.11",
    "username": "<bmc-username>",
    "password": "<bmc-password>",
    "verify_ssl": true
  }
}

Lab-only override (not recommended for production):

{
  "ilo-lab": {
    "verify_ssl": false
  }
}

Set MIRASTACK_REDFISH_DEFAULT_ENDPOINT to choose the default endpoint.

Compatibility

Legacy bare REDFISH_* environment variables are still read as a fallback, with a one-time deprecation warning per variable.

Tool registration profile

  • MIRASTACK_REDFISH_TOOL_PROFILE=full (default): all toolsets allowed by write mode.
  • MIRASTACK_REDFISH_TOOL_PROFILE=standard: excludes raw write escape hatches.
  • MIRASTACK_REDFISH_TOOL_PROFILE=core: curated 15-tool small-model surface.
  • MIRASTACK_REDFISH_TOOLSETS (comma-separated) overrides profiles with explicit toolsets.

Measured advertised tool-schema payload at MIRASTACK_REDFISH_WRITE_MODE=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): mutating tools are not registered.
  • MIRASTACK_REDFISH_WRITE_MODE=power: power/reset/boot control tools are registered.
  • MIRASTACK_REDFISH_WRITE_MODE=config: config-tier tools are registered.
  • MIRASTACK_REDFISH_WRITE_MODE=full: full-tier tools are registered.

Every mutating tool accepts confirm:

  • confirm=false: dry-run response (dry_run=true, applied=false) with next_step.
  • confirm=true: action is applied.

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

Tier contract

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

Development

python3 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]
make build-index
make verify

The schema index is generated from DMTF Redfish-Publications, pinned to one release for reproducibility. See CONTRIBUTING.md for refresh procedure.

Registry Publishing Notes

  • server.json includes PyPI and OCI package definitions for MCP Registry.
  • This README carries the required marker: mcp-name: ai.mirastacklabs/mirastack-redfish-mcp.
  • Docker image includes 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.

Contributing

GitHub is a public read-only mirror. Issues are welcome on GitHub, but pull requests opened on GitHub cannot be merged. See CONTRIBUTING.md for accepted contribution paths.

Security

See SECURITY.md.

License

Apache-2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mirastack_redfish_mcp-0.1.0.tar.gz (524.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mirastack_redfish_mcp-0.1.0-py3-none-any.whl (515.4 kB view details)

Uploaded Python 3

File details

Details for the file mirastack_redfish_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: mirastack_redfish_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 524.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mirastack_redfish_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 54539273d14af330a334a9ef7d09138bc2b0a8cfe4ecb569eeb453069cf69a56
MD5 a5ccdff39e2873f12bf7d934e6ef3503
BLAKE2b-256 48b782b4df8594995e595a125d37ed891070c4e39861c233f22c378a704604a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirastack_redfish_mcp-0.1.0.tar.gz:

Publisher: release.yaml on mirastacklabs-ai/mirastack-redfish-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mirastack_redfish_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mirastack_redfish_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7304ffe6a7f9b3beede7e474736540bf72293907579c94934caff78770d5b286
MD5 f8d165fa231f5cec514ea5627ccb386f
BLAKE2b-256 37c33df90afd597dd6fcecf63142bd8b15a7bbfe90d049edcc08c8953455a25a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mirastack_redfish_mcp-0.1.0-py3-none-any.whl:

Publisher: release.yaml on mirastacklabs-ai/mirastack-redfish-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page