mcp-server-kubernetes

Flux159
458
MCP Server for kubernetes management commands
#infrastructure #kubernetes #mcp #server

Overview

What is mcp-server-kubernetes

mcp-server-kubernetes is a server designed for managing Kubernetes clusters through various commands, enabling users to interact with their Kubernetes environments seamlessly.

How to Use

To use mcp-server-kubernetes, ensure you have kubectl and Helm v3 installed. Connect to your Kubernetes cluster by running 'npx mcp-server-kubernetes'. You can also integrate it with mcp-chat for a CLI chat experience.

Key Features

Key features include connecting to a Kubernetes cluster, listing pods, services, deployments, and nodes, creating and deleting pods, retrieving logs, and supporting Helm v3 for chart management.

Use Cases

Use cases include managing Kubernetes resources in development environments, automating deployment processes, and debugging applications running in Kubernetes clusters.

Usage

Installation

Generate your exclusive SSE URL:

MCP Server Configuration (for all clients):

Installation in Cursor

Click on the Cursor settings icon in the top right, find the MCP option, then click the + button in the top right of that page and add the configuration in the config panel.

Note: Do not delete previously added configuration items

After completion, restart Cursor, chat with Cursor, and you can use MCP functions

Installation in Claude

Find this json file at the following path: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json If this file doesn't exist, create one and paste the content above into the file.

Note: Do not delete previously added configuration items.

After completion, restart Claude, and you can use MCP functions through the Claude dialog

SDK

Installation in Python

Install composio-toolset by running the following commands in your terminal:

pip install composio_openai

Python example code:

from composio_openai import ComposioToolSet, App
from openai import OpenAI

openai_client = OpenAI()
composio_toolset = ComposioToolSet(entity_id="default")

tools = composio_toolset.get_tools(apps=[App.GITHUB])

Installation in TypeScript

Install composio-core by running the following commands in your terminal:

npm install -g composio_core

TypeScript example code:

import { OpenAI } from "openai";
import { OpenAIToolSet } from "composio-core";

const openaiClient = new OpenAI();
const composioToolset = new OpenAIToolSet();

const tools = await composioToolset.getTools({
  apps: ["github"],
});

Content