Talos Linux MCP Server
Lists running containers on Talos nodes, defaulting to the Kubernetes (k8s.io) namespace.
Queries etcd cluster state: list members and check status through the Talos API.
Monitors Kubernetes cluster health, including API server readiness and node status.
Manages Talos Linux clusters: query resources, services, logs, events; perform upgrades, reboots, and configuration patches via the Talos gRPC API.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
talos-mcp
An MCP server that exposes Talos Linux cluster management to AI agents (Claude Code, OpenAI Codex, and any MCP-compatible client). Instead of pasting talosctl output into chat, the agent calls structured tools that return machine-readable JSON directly from the Talos gRPC API — zero token cost for intermediate output.
Connects to your cluster via the native Talos gRPC API using the same mTLS credentials as talosctl (~/.talos/config).
Installation
Via npm (no Go required, Linux/macOS, amd64/arm64):
npx talos-mcpVia npm (global install) for persistent invocation from $PATH:
npm install -g talos-mcpInstalls the binary as <npm-prefix>/bin/talos-mcp. Verify with:
which talos-mcp # path
talos-mcp --version # version + commit hash
npm list -g talos-mcp # npm's view of the installed versionUpgrade to the latest published release:
npm install -g talos-mcp@latestNew releases appear on npmjs.com within minutes of every feat: / fix: / perf: (or breaking) merge to main — see CONTRIBUTING.md § Post-merge release pipeline for the mechanism.
Download binary (Linux/macOS, amd64/arm64):
Download the latest release from GitHub Releases, extract, and place the binary in your $PATH.
Build from source (Go version as set in go.mod; tools via mise):
git clone https://github.com/Nosmoht/talos-mcp-server
cd talos-mcp-server
make buildRelated MCP server: MCP Manager
Configuration
Reads ~/.talos/config by default (the same file talosctl uses). Override via environment variables:
Variable | Default | Description |
|
| Path to talosconfig file |
| active context | Context name to use |
| from config | Comma-separated endpoint overrides |
|
| Set to |
| (unset) | If set (e.g. |
| (unset) | Required bearer token when HTTP mode is active |
| (unset) | Comma-separated IPs, hostnames, and CIDR ranges permitted as tool targets. Unset allows all. |
| (all) | Comma-separated path prefixes allowed for |
|
| Set to |
|
| Unlock |
| (unset) | Comma-separated IPs / CIDRs permitted as maintenance-mode endpoints. Required when |
| (none) | Comma-separated META keys (decimal or |
| (unset) | Comma-separated dot-paths (e.g. |
| (unset) |
|
|
| HTTP mode: token-bucket refill rate (requests/second, float) |
|
| HTTP mode: token-bucket burst capacity (int) |
|
| HTTP mode: max POST request body size in bytes (4 MiB default) |
|
| HTTP mode: max concurrent POST handlers (fail-fast 503 on overload) |
|
| Minimum interval between delivered |
|
| Initial notification burst per |
The boolean TALOS_MCP_* flags accept the Go strconv.ParseBool spellings 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False; any other value, an empty one included, stops the server at startup.
Compatibility
This server is tested against Talos Linux v1.9.x through v1.14.x.
talos-mcp | Talos Linux | machinery SDK | MCP go-sdk |
v0.x (current) | v1.9.0 – v1.14.x | v1.14.5 | v1.8.0 |
The server logs a startup warning if the connected cluster's Talos version is outside the tested range. All gRPC methods used have been stable since Talos v1.9.
MCP protocol revisions
Stdio mode serves MCP protocol revision 2026-07-28 and the legacy revisions up to 2025-11-25 (initialize handshake).
Streamable HTTP mode is stateful and serves legacy revisions up to 2025-11-25 only; 2026-07-28 clients negotiate down to 2025-11-25 or receive a JSON-RPC error.
Upgrade path validation
Before it sends the upgrade, the talos_upgrade tool checks the path from the node's current version to the image's version against the same machinery rules the target installer enforces on the node. The installer runs its own check only after it has drained the node and stopped its services. The tool refuses an upgrade when the path is not allowed, when the node's version cannot be read, or when the target version is newer than the machinery compiled into this server knows. Paths the target release accepts pass, including some that skip a minor version, some downgrades and reinstalls of the same version.
If the image tag carries no version (e.g. :latest), the path cannot be checked: the tool logs a warning and proceeds. To bypass the check, set TALOS_MCP_SKIP_VERSION_CHECK=true.
Client Setup
Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"talos": {
"command": "npx",
"args": ["-y", "talos-mcp"]
}
}
}Or globally in ~/.claude.json under "mcpServers". If you prefer a local binary, replace "command": "npx" with the path to the binary.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"talos": {
"command": "npx",
"args": ["-y", "talos-mcp"]
}
}
}OpenAI Codex
Add to .codex/config.toml (project) or ~/.codex/config.toml (global):
[mcp_servers.talos]
command = "npx"
args = ["-y", "talos-mcp"]
[mcp_servers.talos.env]
TALOSCONFIG = "/path/to/talosconfig"Generic MCP client
The server speaks the MCP protocol over stdio:
./talos-mcpServer logs go to stderr only; the server sends no MCP notifications/message log notifications and does not advertise the logging capability.
Tools
Read-only
Tool | Description |
| List all available resource types and their aliases. Call this first to discover what can be queried. |
| Get or list any COSI resource by type (e.g. |
| Get Talos version info from target nodes. Supports maintenance-mode ( |
| List all Talos services and their current state (running, stopped, health). |
| List containers in a namespace (default: |
| List running processes on target nodes. |
| Check cluster health (etcd, Kubernetes API, node readiness). Supports |
| Fetch recent service logs (last N lines, no follow). |
| Read kernel ring buffer messages. |
| Fetch recent Talos runtime events (service changes, config changes). |
| Query etcd cluster: |
| List files and directories on a node filesystem. |
| Read the contents of a single file from exactly one target node's filesystem (e.g. /etc/os-release, /etc/machine-config.yaml). Passing more than one node is rejected. To browse directories first use talos_list_files. |
| Validate a machine config (YAML/JSON) offline — no cluster connection. |
| Read a META partition key from one node, including gated maintenance-mode reads. |
Mutating
These tools modify cluster state and have explicit safety guards.
Tool | Description | Guards |
| Write an etcd snapshot to a new local file on the MCP server host; does not change Talos cluster state. | Unavailable in read-only mode; exactly one control-plane node; refuses existing files |
| Start, stop, or restart a Talos service (note: restarting |
|
| Reboot target nodes. Supports |
|
| Upgrade Talos on target nodes. Supports |
|
| Roll back the last upgrade on target nodes. |
|
| Apply a targeted machine config patch (strategic-merge or RFC 6902 JSON Patch). |
|
| Wipe and factory-reset target nodes (irreversible). |
|
| Apply a complete machine config to a single node. Supports maintenance-mode ( |
|
| Legacy combined META read/write/delete interface; prefer |
|
All tools accept an optional nodes field (list of node IPs or hostnames), except that talos_read_file, talos_get, talos_patch_config, talos_apply_config and talos_meta with action=read accept at most one node, and talos_etcd_snapshot requires exactly one. When omitted, the active context from talosconfig is used.
Maintenance-mode (--insecure) operations
talos_apply_config, talos_get, talos_version, and talos_meta accept an insecure=true flag that targets a node in maintenance mode (booted but not yet configured). The transport is TLS-encrypted but bypasses mTLS — there is no client certificate and (by default) no server-certificate verification. This is required for bootstrapping fresh nodes (talosctl apply-config --insecure equivalent).
Operator opt-in required. Set
TALOS_MCP_ENABLE_INSECURE=true(or use theexpertsafety profile). Without it, everyinsecure=truecall is refused.Endpoint allowlist required. Set
TALOS_MCP_INSECURE_ALLOWED_NODESto a comma-separated list of permitted maintenance-mode IPs / CIDRs. The startup is aborted if it is missing or contains0.0.0.0/0,::/0, an IPv4 mask<16, or an IPv6 mask<48. Use/28or narrower in production.Endpoint must be a bare IP. No hostnames, no
host:port, no scheme, no IPv6 zone. Link-local (incl.169.254.169.254IMDS), loopback, multicast, and unspecified addresses are rejected.MITM mitigation via TOFU pinning. Pass
cert_fingerprint=<64-hex>(server SHA-256 fingerprint, copied from the Talos console banner) to enable leaf-cert verification. Without it, the connection is MITMable by anyone on-path between the MCP server and the target node.META write/delete safelist.
talos_metawrite/delete is restricted tometa.UserReserved1/2/3. Privileged keys (Upgrade,StateEncryptionConfig, …) must be enumerated inTALOS_MCP_META_PRIVILEGED_KEYS(per-key, not a blanket flag).
Prompts
Prompt | Description |
| Guided diagnosis workflow for a single node. |
| Focused investigation of an etcd cluster anomaly. |
| Service-specific diagnostic workflow (kubelet, containerd, etcd, …). |
| Pre-flight verification before a Talos upgrade. |
| Guided flow for applying a machine config patch (registered only when |
Resources and Subscriptions
The server exposes Talos COSI resources as MCP resources:
talos://cluster/version— static cluster version info.talos://cluster/resource-definitions— discover resource types.talos://{node}/resource/{namespace}/{type}[/{id}]— list or get COSI resources on a specific node.
MCP clients that implement resources/subscribe (legacy revisions up to 2025-11-25; Claude Desktop, Cursor) or subscriptions/listen (revision 2026-07-28) receive notifications/resources/updated whenever the underlying resource changes — no polling required. Subscriptions are backed by the Talos COSI Watch / WatchKindAggregated streams and honour the same TALOS_MCP_ALLOWED_NODES allowlist as reads.
Subscribable resource types (canonical names):
MachineStatuses.runtime.talos.dev(MachineStatus)Members.cluster.talos.dev(Member)NodeAddresses.net.talos.dev(NodeAddress)Services.v1alpha1.talos.dev(Service)
Aliases resolve to the canonical type before the allowlist check, so a client subscribing to talos://{node}/resource/runtime/ms/... (alias for MachineStatus) succeeds. Other COSI types reject with resource type %q is not subscribable. Static talos://cluster/* URIs are not subscribable (no COSI backing).
Delivery is rate-limited per (session, URI) via TALOS_MCP_SUBSCRIPTION_RATE / TALOS_MCP_SUBSCRIPTION_BURST; over-rate events are dropped and the client re-reads the resource to catch up. The initial Bootstrapped event is intentionally not forwarded — the client is expected to call resources/read once after subscribe for initial state.
Security Model
Trust Boundaries
MCP Client (Claude Code / Codex)
│ stdio / JSON-RPC
▼
talos-mcp ◄── reads TALOSCONFIG (~/.talos/config)
│ gRPC + mTLS
▼
Talos API (each node)
│
▼
Node OSData flow warning: Tool responses flow directly into the LLM's context window and are sent to the LLM provider. Anything a tool returns — node IPs, hostnames, service configurations, kernel logs, file contents — becomes part of the prompt sent over the network. Do not use this server with clusters containing data you would not be comfortable sending to your LLM provider.
Talos RBAC is server-side enforced. The credentials in your talosconfig determine what operations are permitted on each node. talos-mcp cannot bypass Talos RBAC — a request that the API rejects will fail with an error, not silently succeed.
Tool Classification and Minimum Required RBAC Role
Tool | RBAC minimum |
|
|
|
|
|
|
Safety Mechanisms
Mechanism | How it works |
Read-only mode |
|
Path allowlist |
|
Confirm gates | Always require |
Preserve default |
|
Dry-run default |
|
Audit logging | Every mutating tool call and every call to a tool that accepts |
What Is Not in the Threat Model
The LLM itself — prompt injection, hallucinated tool arguments, and LLM provider data retention are outside the scope of this server
The MCP client — security of Claude Code, Codex, or other MCP clients is the responsibility of those projects
Network path between talos-mcp and Talos nodes — protected by mutual TLS using the credentials in your talosconfig
Least-Privilege Credential Setup
Create a dedicated talosconfig with minimal permissions for use with this server:
Read-only access (recommended for most use cases):
# Generate a reader-only talosconfig
talosctl config new --roles=os:reader talosconfig-readonlyThen set TALOSCONFIG=/path/to/talosconfig-readonly and TALOS_MCP_READ_ONLY=true for maximum restriction. With this setup, the server exposes only read-only tools and the credentials cannot perform any mutating operations even if a tool were somehow bypassed.
Operator access (for service management, reboot, upgrade):
talosctl config new --roles=os:operator talosconfig-operatorThis covers all tools except talos_patch_config (which requires os:admin).
Full access (required for config patching):
Use your default talosconfig or generate one with os:admin. Reserve this for setups where config patch capability is explicitly needed.
Verifying Downloads
Checksums (integrity)
Each release includes a talos-mcp_<version>_checksums.txt file with SHA-256 hashes of all archives. Verify the binary after downloading:
# Download archive and checksums
curl -LO https://github.com/Nosmoht/talos-mcp-server/releases/download/v<version>/talos-mcp_<version>_linux_amd64.tar.gz
curl -LO https://github.com/Nosmoht/talos-mcp-server/releases/download/v<version>/talos-mcp_<version>_checksums.txt
# Verify
sha256sum --check --ignore-missing talos-mcp_<version>_checksums.txtThis detects corruption or truncated downloads. It does not protect against a compromised release pipeline.
GitHub Artifact Attestations (SLSA L2 provenance)
Each release includes a GitHub-native build provenance attestation that cryptographically links the binary to the specific commit and workflow run that produced it:
gh attestation verify talos-mcp_<version>_linux_amd64.tar.gz \
--repo Nosmoht/talos-mcp-serverThis requires the GitHub CLI. A passing verification means the artifact was produced by the official release workflow in this repository, not a third-party build.
npm Package Provenance
The npm package is published with provenance attestation:
npm audit signaturesA passing result means the package was published by the official GitHub Actions release workflow via OIDC trusted publishing.
Development
# Tools come from mise (https://mise.jdx.dev); mise exec fetches them on first use
# Build
mise exec -- go build -o talos-mcp ./cmd/talos-mcp
# Test
mise exec -- go test -race ./...
# Lint
mise exec -- golangci-lint run
# Format check
mise exec -- gofmt -l .License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Superserve sandboxes: create, exec, and manage Firecracker microVMs
MCP server for interacting with the Supabase platform
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
Related MCP Servers
- AlicenseBqualityCmaintenanceModel Context Protocol (MCP) server for the Rancher ecosystem: multi-cluster Kubernetes, Harvester HCI (VMs, storage, networks), and Fleet GitOps.1012Apache 2.0
- AlicenseNot gradedqualityDmaintenanceSelf-hosted MCP proxy and aggregation platform. Register multiple upstream MCP servers and expose them through a single unified endpoint with namespace routing, multi-transport support (HTTP/SSE, stdio, OpenAPI→MCP), per-tool overrides, and a web admin UI.18MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that enables interaction with Talos Linux clusters via gRPC API, supporting cluster management, monitoring, configuration, and resource inspection.17 PyPIMIT

thalovant-mcpofficial
AlicenseNot gradedqualityBmaintenanceMCP server for Thalovant control-plane and hub runtime APIs, supporting local stdio and remote Streamable HTTP with authentication and per-principal credentials.948 npmMIT