Yunikorn

v1.0.0Cloud Servicesstable

Make Yunikorn accessible to AI agents! Queues, partitions, applications, and nodes become readable to LLMs.

yunikornmcpai-integration
Share:
10
Stars
0
Downloads
0
Weekly
0/5

What is Yunikorn?

Yunikorn is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to make yunikorn accessible to ai agents! queues, partitions, applications, and nodes become readable to llms.

Make Yunikorn accessible to AI agents! Queues, partitions, applications, and nodes become readable to LLMs.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Make Yunikorn accessible to AI agents! Queues, partitions, a

Use Cases

Make Yunikorn queue and partition data accessible to AI agents.
Monitor applications and nodes through LLMs.
frenoid

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 6, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx yunikorn

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Yunikorn

The YuniKorn MCP Server exposes Apache YuniKorn's Kubernetes batch scheduler to AI agents via the Model Context Protocol. It provides 7 MCP tools and 2 MCP resources covering partitions, queues, applications, nodes, user resource usage, and scheduler health—enabling LLMs to observe and reason about batch workload scheduling without direct cluster access.

Prerequisites

  • Python 3.10 or later (3.12+ recommended)
  • uv package manager installed (https://docs.astral.sh/uv/)
  • Access to a running Apache YuniKorn scheduler REST API endpoint
  • Git to clone the repository
  • Docker (optional, for containerized deployment)
1

Clone the repository

Clone the yunikorn-mcp-server repository from GitHub.

git clone https://github.com/frenoid/yunikorn-mcp-server.git
cd yunikorn-mcp-server
2

Install dependencies

Use uv to install the Python dependencies listed in requirements.txt. Activate a virtual environment first if you are using one.

python -m venv .venv
source .venv/bin/activate
uv pip install -r requirements.txt
3

Set the YuniKorn base URL

Export the YUNIKORN_BASE_URL environment variable pointing to your YuniKorn REST API. The default assumes localhost on port 9089. Set TLS_INSECURE=true only if your endpoint uses a self-signed certificate.

export YUNIKORN_BASE_URL=http://yunikorn.example.com:9089/ws/v1/
export TLS_INSECURE=false   # set true for self-signed certs
4

Run the server in stdio mode for IDE / Claude Code integration

Start the server using stdio transport, which is required for Claude Desktop and Claude Code integration.

uv run python -m main --transport stdio
5

Alternatively run as HTTP server or via Docker

For browser-based MCP Inspector access or multi-client setups, run with the streamable-http transport. The MCP endpoint is exposed at /mcp on port 8000. A Docker image is available for containerized deployment.

# HTTP mode (default)
uv run python -m main --transport streamable-http --host 0.0.0.0 --port 8000

# Docker
docker run -p 8000:8000 \
  -e YUNIKORN_BASE_URL="http://yunikorn.example.com:9089/ws/v1" \
  docker.io/frenoid/yunikorn-mcp-server:latest
6

Add to Claude Desktop configuration

Register the server in claude_desktop_config.json so Claude Desktop can spawn it automatically.

{
  "mcpServers": {
    "yunikorn": {
      "command": "/path/to/.venv/bin/python",
      "args": ["-m", "main", "--transport", "stdio"],
      "cwd": "/path/to/yunikorn-mcp-server",
      "env": {
        "YUNIKORN_BASE_URL": "http://yunikorn.example.com:9089/ws/v1/"
      }
    }
  }
}

Yunikorn Examples

Client configuration

Claude Desktop configuration for the YuniKorn MCP server in stdio mode with the YuniKorn URL passed as an environment variable.

{
  "mcpServers": {
    "yunikorn": {
      "command": "python",
      "args": ["-m", "main", "--transport", "stdio"],
      "cwd": "/home/user/yunikorn-mcp-server",
      "env": {
        "YUNIKORN_BASE_URL": "http://yunikorn.cluster.local:9089/ws/v1/"
      }
    }
  }
}

Prompts to try

Natural language questions you can ask once the YuniKorn MCP server is connected.

- "List all partitions in the YuniKorn scheduler"
- "Show me the queue hierarchy for the default partition"
- "Which applications are currently running in the root.spark queue?"
- "Check the overall health of the YuniKorn scheduler"
- "How much CPU and memory is each user consuming in the default partition?"
- "Show node utilization across the cluster"

Troubleshooting Yunikorn

Connection refused or timeout when calling YuniKorn tools

Verify YUNIKORN_BASE_URL is correct and the YuniKorn REST API port (default 9089) is reachable from the server host. If running inside a Kubernetes cluster, ensure the service is exposed or use kubectl port-forward.

SSL certificate verification errors on HTTPS endpoints

Set the environment variable TLS_INSECURE=true when connecting to a YuniKorn instance with a self-signed or internal CA certificate. Do not use this in production environments without understanding the security implications.

Memory values appear as very large integers

YuniKorn represents memory in raw bytes (64-bit signed integers) and CPU in millicores. Divide memory values by 1073741824 to convert to GiB, and CPU millicore values by 1000 to get full vCPU cores.

Frequently Asked Questions about Yunikorn

What is Yunikorn?

Yunikorn is a Model Context Protocol (MCP) server that make yunikorn accessible to ai agents! queues, partitions, applications, and nodes become readable to llms. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Yunikorn?

Follow the installation instructions on the Yunikorn GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Yunikorn?

Yunikorn works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Yunikorn free to use?

Yes, Yunikorn is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "yunikorn": { "command": "npx", "args": ["-y", "yunikorn"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Yunikorn?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides