プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Rancher MCP

作者:rexバージョン 1.59.0i★ –iパソコンで動く
レジストリ名io.github.rex/rancher-mcp

インストール

概要

作者による説明(英語の原文)

Capability-aware MCP server for Rancher-managed Kubernetes: discovery, resources, workflows.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 開発者ツール
  • 入力が必要なもの:RANCHER_URL, RANCHER_TOKEN, RANCHER_INSTANCES_JSON

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: RANCHER_URL, RANCHER_TOKEN, RANCHER_VERIFY_SSL, RANCHER_INSTANCES_JSON

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "rancher": {
      "command": "uvx",
      "args": [
        "rancher-mcp"
      ],
      "env": {
        "RANCHER_URL": "your-value",
        "RANCHER_TOKEN": "your-value",
        "RANCHER_VERIFY_SSL": "your-value",
        "RANCHER_INSTANCES_JSON": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add rancher --env RANCHER_URL=your-value --env RANCHER_TOKEN=your-value --env RANCHER_VERIFY_SSL=your-value --env RANCHER_INSTANCES_JSON=your-value -- uvx rancher-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "rancher": {
      "command": "uvx",
      "args": [
        "rancher-mcp"
      ],
      "env": {
        "RANCHER_URL": "your-value",
        "RANCHER_TOKEN": "your-value",
        "RANCHER_VERIFY_SSL": "your-value",
        "RANCHER_INSTANCES_JSON": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "rancher": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "rancher-mcp"
      ],
      "env": {
        "RANCHER_URL": "your-value",
        "RANCHER_TOKEN": "your-value",
        "RANCHER_VERIFY_SSL": "your-value",
        "RANCHER_INSTANCES_JSON": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • RANCHER_URL 必須 env
    Rancher server URL (single-instance mode)
  • RANCHER_TOKEN 秘密 必須 env
    Rancher API token (token-xxxxx:yyyyyyyyy)
  • RANCHER_VERIFY_SSL env
    Verify TLS certificates (default true)
  • RANCHER_INSTANCES_JSON 秘密 env
    Multi-instance config JSON (overrides single-instance mode; supports per-instance read_only)

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント rex で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの1396件のうち0%よりスターが多い
  • このカテゴリのほかの1396件のうち45%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1396件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Rancher MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:RANCHER_URL, RANCHER_TOKEN, RANCHER_INSTANCES_JSON

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.59.0)がレジストリに届いたのは2 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

パソコンでもクラウドでも★ 34,245MIT4 日前更新
インストール

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

パソコンで動く★ 10,225MIT16 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Operate Rancher-managed Kubernetes through any MCP client — discovery, generic resource access, and curated operator workflows, wrapped in an audit-logged, rate-limited, confirmation-guarded safety model.

Quick start · Tool surface · Architecture · Safety model · Compatibility · Development


Why this exists

Rancher is how real fleets run Kubernetes — and it speaks two APIs (the legacy Norman /v3 plane and the modern Steve /v1 plane), varies by version, and wraps every cluster behind its own proxy. Pointing a generic Kubernetes MCP server at it misses everything Rancher-specific; pointing an agent at raw kubectl gives up auditability, guardrails, and the management-plane view entirely.

MCP Rancher is built for that reality:

  • Capability-aware, not version-naive. It detects what each connected Rancher actually supports instead of assuming. One binary spans 2.6.5 → 2.9.3 with the same tool surface.
  • Multi-instance first. Lab, staging, prod — configure them all; mark prod read_only: true and every mutation is refused at the config layer, before any guard even has to fire.
  • Nothing is out of reach. Curated tools cover the common 95%; the generic engine reaches *every* resource either API plane exposes — even types nobody wrote a tool for yet.

The tool surface

206 tools: 178 read-only · 28 writes · 5 destructive — counted from the registry itself, not by hand. docs/tool-manifest.json is generated from the live FastMCP registry (make tool-manifest) and a CI gate fails the build if it ever drifts from the code. Per-tool descriptions, safety annotations, and parameters all live there; the narrative registry with slice tracking is docs/tool-catalog.md.

LayerWhat it doesExamples
Discovery & schemaExplore what any instance can dorancher_server_version, rancher_norman_schema_list, rancher_capability_domain_list
Generic engineCRUD + actions + links + watch on *any* resource, both planesrancher_steve_resource_list, rancher_norman_resource_action_invoke, rancher_steve_resource_watch
Curated readsTyped, shaped responses across ~25 domainsrancher_pods_list, rancher_deployments_list, rancher_longhorn_volumes_list, rancher_policy_reports_list
Curated writesGuarded mutationsrancher_deployment_scale, rancher_deployment_restart, rancher_cron_job_suspend, rancher_node_cordon, rancher_secret_create
Operator rollupsOne-call triagerancher_cluster_health_check, rancher_find_failing_pods, rancher_find_stalled_rollouts, rancher_project_health_summary

Domains covered: clusters & nodes · projects & namespaces · workloads · pods & services · storage · networking · config & secrets *(values masked)* · certificates *(keys masked)* · RBAC · auth & identity · apps & catalogs · logging pipeline · Prometheus monitoring · policy reports · CIS compliance · backup operator · etcd backups · Longhorn · Fleet · provisioning · settings & features · alerts & notifiers.

All 206 stay exposed by default — every tool schema is deferred behind Claude Code's own search, so a small default would only help other hosts at the good host's expense. A constrained host (a small local model, a tight context budget) can opt into a smaller surface via RANCHER_TOOLSETS; see Toolset profiles under Configuration.

Quick start

Requirements
Install & run
# From source

git clone https://github.com/rex/mcp-rancher.git cd mcp-rancher make setup # deps, .env scaffold, pre-commit hooks cp .env.example .env # set RANCHER_URL + RANCHER_TOKEN make dev # run the MCP server (stdio)

Once published to PyPI, it's one line: uvx rancher-mcp.

Claude Code
claude mcp add rancher \

-e RANCHER_URL=https://rancher.example.com \ -e RANCHER_TOKEN=token-xxxxx:yyyyyyyyy \ -- uv run --directory /path/to/mcp-rancher rancher-mcp

Claude Desktop
{

"mcpServers": { "rancher": { "command": "uv", "args": ["run", "--directory", "/path/to/mcp-rancher", "rancher-mcp"], "env": { "RANCHER_URL": "https://rancher.example.com", "RANCHER_TOKEN": "token-xxxxx:yyyyyyyyy" } } } }

Multiple instances
RANCHER_INSTANCES_JSON='{

"production": {"url": "https://rancher.prod.example.com", "token": "token-a:xxx", "verify_ssl": true, "read_only": true}, "lab": {"url": "https://rancher.lab.example.com", "token": "token-b:yyy", "verify_ssl": false, "read_only": false} }' RANCHER_DEFAULT_INSTANCE=production

Every tool takes an optional instance argument. Instances flagged read_only: true refuse all mutations at the settings layer.

Architecture

flowchart LR

A[MCP client Claude Code · Claude Desktop · any] -- stdio --> S

subgraph S[rancher-mcp] direction TB L1[Discovery & schema planes · schemas · capabilities] L2[Generic engine any resource · both planes CRUD · actions · links · watch] L3[Curated tools typed models · shaped output next-step hints] G[Safety layer read-only guard · confirmation phrases audit log · rate limit · masking] L1 --> L2 --> L3 L3 --> G L2 --> G end

G -- Norman /v3 --> R1[(Rancher instance A)] G -- Steve /v1 + k8s proxy --> R1 G -- Norman + Steve --> R2[(Rancher instance B)]

Three layers, deliberately separate: discovery tells you what an instance can do, the generic engine can touch anything it exposes, and curated tools make the common paths typed, shaped, and self-describing (every response carries suggested_next_steps). Most curated tools are generated from YAML descriptors (catalog/curated_tools/) with a drift gate — the editorial decisions live in descriptors, not boilerplate.

Safety model

Built for the day an agent is pointed at the cluster that pays your salary:

GuardBehavior
Read-only instancesread_only: true refuses every mutation for that instance, before tool logic runs
Destructive confirmationDeletes require an explicit typed phrase (e.g. "delete steve namespace foo") — no phrase, no delete
Tool annotationsEvery tool declares readOnlyHint / destructiveHint / idempotentHint, so clients can gate UX on them
Audit logEvery mutation emits a structured event="audit" record — tool, operation, plane, instance, resource, outcome. Argument *names* only; values never logged
Rate limitingToken-bucket on writes (default 60/min) — a runaway loop can't machine-gun your API
Secret & key maskingSecret values and certificate private keys are structurally absent from curated responses (reveal is an explicit generic-tool opt-in)
Structured errorsGuard rejections return typed error_code envelopes agents can branch on — never raw strings

Compatibility

Primary targetRancher 2.9.3 (production-validated)
Compatibility floorRancher 2.6.5 (kept green via capability detection)
API planesNorman /v3 + Steve /v1 (+ per-cluster Kubernetes proxy)
Transportstdio

Capability detection bridges version differences at runtime — no version-pinned builds, no "works on my Rancher." Both targets are exercised by the same test suite, and read paths have been validated live against both a 2.6.5 lab and a 2.9.3 production fleet (validation report).

Configuration

VariableDefaultPurpose
RANCHER_URL—Rancher server URL (single-instance mode)
RANCHER_TOKEN—API token (token-xxxxx:yyyyyyyyy)
RANCHER_VERIFY_SSLtrueTLS verification
RANCHER_INSTANCES_JSON—Multi-instance config (see above)
RANCHER_DEFAULT_INSTANCEfirst definedInstance used when a tool call names none
RANCHER_MCP_SERVER_NAMErancher-mcpServer identity announced to clients
RANCHER_MCP_SERVER_DESCRIPTIONbuilt-inServer description announced to clients
RANCHER_MCP_WRITE_RATE_LIMIT_PER_MIN60Write rate limit (0 disables)
RANCHER_TOOLSETSallComma-separated toolset profile(s) exposed at startup — see below
RANCHER_TOOLS—Comma-separated tool names force-included on top of the selected profile(s)
RANCHER_EXCLUDE_TOOLS—Comma-separated tool names removed, applied last — always wins over RANCHER_TOOLS
Toolset profiles

The default is all: every tool stays exposed. Claude Code, the primary host, defers every tool schema behind its own search, so a small default would only help other hosts at the cost of making the good host worse — this is a deliberate choice, not an oversight.

RANCHER_TOOLSETS opts a constrained host (a small local model, or a context budget) into a smaller surface. Values are either a family name — one per src/rancher_mcp/tools/ module (storage, workloads, pods_services, rbac, …; see rancher_mcp.toolsets.FAMILY_REGISTRARS for the full list) — or the cross-family core profile: a ~32-tool triage/orientation set (rancher_find_*, the health/summary rollups, core list/get pairs, and the generic rancher_{steve,norman}_resource_{list,get} escape hatches). core cuts the tools/list payload from 206 tools / ~401 KB to 32 tools / ~78 KB (~80% smaller). Profiles compose: RANCHER_TOOLSETS=core,storage gives the triage set plus everything storage-related.

RANCHER_TOOLSETS=core                        # small triage surface

RANCHER_TOOLSETS=core,storage,workloads # triage + two full families RANCHER_TOOLS=rancher_secret_get # add one extra tool on top RANCHER_EXCLUDE_TOOLS=rancher_secret_create # remove one, wins over the above

An unknown profile name fails loudly at startup rather than silently producing an empty or shrunken surface. Calling a real tool that exists but isn't in the active profile returns a structured TOOLSET_NOT_ENABLED error naming the tool, the toolset that would enable it, and the env var to set — never a bare "unknown tool", which would make a disabled tool indistinguishable from a typo.

Project status

Ship

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く