rancher-mcp
A standalone MCP server that exposes Rancher-side tools, forwards Authorization headers or uses configured credentials, and supports HTTP and stdio transports.
README
rancher-mcp
<p align="center"> <img src="./docs/logo.svg" alt="rancher-mcp logo" width="96" /> </p>
<p align="center"> <a href="https://github.com/Jasonrve/rancher-mcp/actions/workflows/ci.yml"> <img src="https://github.com/Jasonrve/rancher-mcp/actions/workflows/ci.yml/badge.svg" alt="CI status" /> </a> <a href="https://github.com/Jasonrve/rancher-mcp/actions/workflows/pages.yml"> <img src="https://github.com/Jasonrve/rancher-mcp/actions/workflows/pages.yml/badge.svg" alt="GitHub Pages status" /> </a> <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT license" /> <img src="https://img.shields.io/badge/Node-%3E=22-339933.svg" alt="Node 22+" /> </p>
A polished TypeScript MCP server for Rancher workflows.
It exposes the Rancher tool surface as a standalone MCP service, forwards caller identity when available, and falls back to configured Rancher credentials when needed. The repo includes tests, a documentation site, and GitHub Pages publishing.
Why this exists
Rancher users often need the tool surface without the surrounding operator/runtime package. rancher-mcp keeps the useful Rancher and Fleet actions, but packages them as a focused MCP server that is easier to run locally, automate, and connect to agent clients.
What it does
- exposes Rancher cluster, project, namespace, access-control, and Fleet tools
- supports HTTP and stdio transports
- forwards the incoming
Authorizationheader to Rancher - falls back to configured Rancher credentials when no header is present
- includes Vitest coverage for the tool catalog, auth, executor, and health route
- ships a documentation site with client setup examples
Tool groups
| Group | Examples | What it is for |
|---|---|---|
| Rancher core | cluster_list, project_create, namespace_create |
Everyday cluster, project, and namespace workflows |
| Access control | project_member_create, principal_get_by_name |
Finding principals and binding them to projects |
| Fleet | create_fleet_gitrepo, update_fleet_gitrepo, force_fleet_sync |
GitOps repo and sync management |
Quick start
npm install
npm test
npm run build
npm run dev
Beta publishing and install
This repository is set up for a beta release channel on npm.
- publish workflow:
.github/workflows/publish-beta.yml - npm dist-tag:
beta - local run via npx after publishing:
npx -y rancher-mcp@beta
Configuration
| Variable | Purpose |
|---|---|
RANCHER_URL |
Base Rancher URL |
RANCHER_TOKEN |
Fallback bearer token |
RANCHER_USERNAME |
Fallback basic-auth username |
RANCHER_PASSWORD |
Fallback basic-auth password |
RANCHER_MCP_TRANSPORT |
http or stdio |
RANCHER_MCP_PATH |
HTTP route for MCP traffic |
PORT |
HTTP listen port |
Client examples and docs
Development commands
| Command | Description |
|---|---|
npm run dev |
Start the server |
npm run test |
Run Vitest |
npm run build |
Compile TypeScript |
npm run docs:dev |
Start the docs site |
npm run docs:build |
Build the docs site |
npm run docs:preview |
Preview the docs site |
Project layout
.
├── src/
├── tests/
├── docs/
├── dist/
├── package.json
└── README.md
Source project
This repository mirrors the Rancher-side MCP surface from the original C# implementation.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.