mcp-beaker
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-beakerreserve a system for Fedora 38"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-beaker
MCP server for Beaker lab automation -- system provisioning, job management, distro discovery, and failure diagnosis.
Works with any Beaker server instance. Built on FastMCP v3 and designed for use with AI coding assistants (Cursor, Claude Desktop, etc.).
Features
25 tools covering the full Beaker lifecycle: systems, jobs, distros, tasks
Flexible auth: Kerberos (native GSSAPI/SPNEGO or
bkrCLI fallback) and password (XML-RPC)Job XML validation: auto-fills missing fields, infers distro families
Failure diagnosis: deep analysis with auto-retry on correctable failures
10 documentation topics exposed as MCP resources
2 workflow prompts for common tasks (reserve system, diagnose job)
Generic: works with any Beaker URL, configurable SSL/CA settings
Installation
Container (recommended)
The container image bundles everything -- no host dependencies beyond
podman (or docker). Kerberos authentication happens inside the container
via KRB5_PRINCIPAL and KRB5_PASSWORD environment variables.
# Pull the pre-built image from GHCR
podman pull ghcr.io/faizbawa/mcp-beaker:latest
# Or build locally from the repo
podman build -t mcp-beaker:latest -f Containerfile .Pip / uvx
# Using uv (recommended)
pip install uv
uvx mcp-beaker
# Using pip
pip install mcp-beaker
mcp-beaker
# With native Kerberos support (no bkr CLI needed -- requires krb5-devel on host)
pip install mcp-beaker[kerberos]
# Local development
uv run --directory /path/to/mcp-beaker mcp-beakerConfiguration
Cursor / VS Code
Add to your .cursor/mcp.json (or .vscode/mcp.json):
Container (recommended)
{
"mcpServers": {
"beaker": {
"command": "podman",
"args": [
"run", "--rm", "-i", "--network=host",
"-e", "BEAKER_URL=https://beaker.example.com",
"-e", "KRB5_PRINCIPAL=your-user@YOUR.REALM",
"-e", "KRB5_PASSWORD=your-kerberos-password",
"ghcr.io/faizbawa/mcp-beaker:latest"
]
}
}
}The container runs kinit internally -- no volume mounts, no host
dependencies. Use --network=host so the container can reach your
Kerberos KDC and Beaker server (especially over VPN).
SSL certificates: Many Beaker servers use internal CA certificates that are not in the container's default trust store. You have three options:
Disable verification (simplest, fine on a trusted corporate network):
"-e", "BEAKER_SSL_VERIFY=false",Pass CA cert inline via
BEAKER_CA_CERT_DATA(no volume mount needed):
"-e", "BEAKER_CA_CERT_DATA=-----BEGIN CERTIFICATE-----\nMIID...your-ca-cert...\n-----END CERTIFICATE-----",Mount a CA bundle (single file):
"-v", "/path/to/ca-bundle.crt:/tmp/ca-bundle.crt:ro",
"-e", "BEAKER_CA_CERT=/tmp/ca-bundle.crt",Pip / uvx
{
"mcpServers": {
"beaker": {
"command": "uvx",
"args": ["mcp-beaker[kerberos]"],
"env": {
"BEAKER_URL": "https://beaker.example.com",
"BEAKER_AUTH_METHOD": "kerberos",
"BEAKER_KERBEROS_BACKEND": "http"
}
}
}
}Streamable HTTP mode
uvx mcp-beaker --transport streamable-http --port 8000{
"mcpServers": {
"beaker": {
"url": "http://localhost:8000/mcp",
"type": "streamableHttp"
}
}
}Environment Variables
Variable | Required | Default | Description |
| Yes | -- | Base URL of your Beaker server |
| No |
|
|
| No |
|
|
| For password auth | -- | Beaker username |
| For password auth | -- | Beaker password |
| No |
| Default owner for job queries |
| No |
| Verify SSL certificates |
| No | -- | Path to CA certificate bundle |
| Container only | -- | Kerberos principal for |
| Container only | -- | Kerberos password for |
| Container only | -- | PEM-encoded CA certificate written to file at startup |
CLI Options
mcp-beaker [OPTIONS]
Options:
--transport [stdio|sse|streamable-http] Transport type (default: stdio)
--port INTEGER Port for HTTP transports (default: 8000)
--host TEXT Host for HTTP transports (default: 0.0.0.0)
--path TEXT Path for streamable-http (default: /mcp)
--beaker-url TEXT Beaker server URL
--ssl-verify / --no-ssl-verify Verify SSL certs (default: verify)
--ca-cert TEXT CA certificate bundle path
--auth-method [kerberos|password] Authentication method
--kerberos-backend [http|bkr] Kerberos backend (default: http)
--read-only Disable all write tools
--enabled-tools TEXT Comma-separated tools to enable
-v, --verbose Increase verbosity (-v info, -vv debug)
--version Show version
--help Show this messageTools
Read Tools (13)
Tool | Description |
| List systems by availability (all/available/free) |
| Hardware specs, ownership, status for a system |
| Activity history for a system |
| Supported OS families and architectures |
| Filter jobs by owner, status, whiteboard |
| Job status with failure diagnosis |
| Export job results as XML |
| List log files for a job/recipe/task |
| Search distros by name, family, arch, tags |
| List all known OS families |
| Show authenticated user info |
| List all lab controllers |
| Search the task library |
Write Tools (12)
Tool | Description |
| Submit a job from XML (with validation and auto-fill) |
| Clone and resubmit an existing job |
| Cancel a running/queued job |
| Poll until completion with failure analysis and auto-retry |
| Manually reserve a system |
| Release a manually reserved system |
| Grant a loan for a system to a user |
| Return a current system loan |
| Power on/off/reboot a system |
| Provision a reserved system with a distro |
| Extend a running task's watchdog timer |
| Ack/nak (waive) a recipe set result |
Authentication
Kerberos (recommended)
Ensure you have a valid ticket:
kinit your-username@YOUR.REALMThe server supports two Kerberos backends, controlled by BEAKER_KERBEROS_BACKEND:
Value | Backend | Install |
| Native GSSAPI/SPNEGO -- lightweight, pip-installable |
|
|
|
|
Both backends use the same Kerberos ticket from kinit.
Password
Set BEAKER_AUTH_METHOD=password along with BEAKER_USERNAME and BEAKER_PASSWORD. The server authenticates via the XML-RPC auth.login_password() method. Note: this requires server-side LDAP to be enabled.
Architecture
src/mcp_beaker/
__init__.py # Click CLI entry point
config.py # BeakerConfig dataclass
exceptions.py # Custom exceptions
client.py # BeakerClient (XML-RPC + REST)
models/ # Pydantic response models
servers/
__init__.py # FastMCP server, lifespan, DI helper
systems.py # System tools (4 read + 6 write)
jobs.py # Job tools (4 read + 6 write)
distros.py # Distro tools (2 read)
tasks.py # Task tools (1 read)
general.py # General tools (2 read)
prompts.py # Workflow prompt templates
resources.py # Beaker documentation resources
utils/
xml_validation.py # Job XML validation/auto-fill
diagnosis.py # Failure analysis engine
formatting.py # Human-readable formatters
bkr_cli.py # bkr CLI helpers
parsing.py # ID parsing utilitiesDevelopment
cd mcp-beaker
uv sync --dev
uv run pytest
uv run ruff check src/License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/faizbawa/mcp-beaker'
If you have feedback or need assistance with the MCP directory API, please join our Discord server