Schedcp

v1.0.0Developer Toolsstable

MCP Server for Linux Scheduler Management and Auto optimization

ebpflinuxmcpmcp-server
Share:
105
Stars
0
Downloads
0
Weekly
0/5

What is Schedcp?

Schedcp is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for linux scheduler management and auto optimization

MCP Server for Linux Scheduler Management and Auto optimization

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

Features

  • MCP Server for Linux Scheduler Management and Auto optimizat

Use Cases

Manage Linux kernel scheduler and optimize performance with eBPF. Monitor and tune system scheduling through natural language commands.
eunomia-bpf

Maintainer

LicenseMIT
Languagec
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx schedcp

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 Schedcp

SchedCP is an experimental MCP server for AI-powered Linux kernel scheduler management and automatic performance optimization using the sched-ext eBPF framework. It exposes tools to list available schedulers, run and stop schedulers with custom configurations, monitor real-time CPU and memory metrics, and even create new BPF scheduler programs from source. The companion autotune binary enables fully autonomous end-to-end workload optimization — an AI agent profiles your workload, selects the best scheduler, and tunes parameters without human intervention.

Prerequisites

  • Linux kernel 6.12 or newer with sched-ext support compiled in
  • Rust toolchain installed (rustup.rs) for building the MCP server and autotune binary
  • sched-ext framework dependencies (see github.com/sched-ext/scx for the dependency list)
  • Claude Code or another MCP-compatible client that can invoke local MCP servers
  • sudo privileges on the target Linux machine (required for scheduler management)
1

Clone the repository with submodules

Clone SchedCP and initialize the sched-ext/scx submodule which provides the actual scheduler implementations.

git clone https://github.com/eunomia-bpf/schedcp
cd schedcp
git submodule update --init --recursive scheduler/scx
2

Build the schedulers

Compile the sched-ext scheduler binaries that SchedCP will manage.

cd scheduler && make && make install && cd ..
3

Build the autotune binary

Compile the autotune Rust binary that drives the autonomous optimization workflow.

cd autotune && cargo build --release && cd ..
4

Build the MCP server

Compile the SchedCP MCP server binary.

cd mcp && cargo build --release && cd ..
5

Set the sudo password environment variable

SchedCP requires sudo to load and unload kernel schedulers. Set SCHEDCP_SUDO_PASSWORD in your environment so the agent can operate without interactive prompts.

export SCHEDCP_SUDO_PASSWORD="your_sudo_password"
6

Configure Claude Code with the MCP server

Open Claude Code in the SchedCP project root directory. The repository includes a .mcp.json file that Claude Code will automatically detect to configure the MCP server.

# Run Claude Code from the schedcp project root:
# claude
# The .mcp.json in the repo root configures the MCP server automatically.
7

Run autonomous workload optimization

Use autotune to let the AI agent automatically profile a workload and select the optimal scheduler.

export SCHEDCP_SUDO_PASSWORD="your_sudo_password"
./autotune/target/release/autotune cc "make -j$(nproc)"

Schedcp Examples

Client configuration

Claude Code .mcp.json configuration for the SchedCP MCP server. Place this in the schedcp project root directory.

{
  "mcpServers": {
    "schedcp": {
      "command": "./mcp/target/release/schedcp-cli",
      "args": ["serve"],
      "env": {
        "SCHEDCP_SUDO_PASSWORD": "your_sudo_password"
      }
    }
  }
}

Prompts to try

Example prompts for controlling Linux schedulers through Claude Code with SchedCP.

- "List all available schedulers and describe what workloads each is best suited for."
- "Run the scx_rusty scheduler and monitor my system's CPU metrics for 30 seconds."
- "My workload is a parallel build job. Which scheduler should I use and why?"
- "Create a new BPF scheduler that prioritizes interactive tasks over batch jobs."
- "Stop the current scheduler and revert to the default Linux scheduler."

Troubleshooting Schedcp

Scheduler fails to load with 'sched-ext not supported' error

Your kernel must be version 6.12+ with CONFIG_SCHED_CLASS_EXT enabled. Check with `uname -r` and `zcat /proc/config.gz | grep SCHED_CLASS_EXT`. Standard distribution kernels may not include sched-ext; you may need a custom kernel build or a distro that ships it (e.g., recent Fedora builds).

Build fails with missing sched-ext dependencies

Install the required development packages listed in the sched-ext/scx repository. On Ubuntu/Debian: `sudo apt install clang llvm libelf-dev libbpf-dev`. Then retry `cd scheduler && make`.

autotune or MCP server cannot run schedulers due to permission errors

Ensure SCHEDCP_SUDO_PASSWORD is set correctly in your environment. The password must be the sudo password for your current user account. If sudoers requires a TTY, add `Defaults !requiretty` for your user in `/etc/sudoers`.

Frequently Asked Questions about Schedcp

What is Schedcp?

Schedcp is a Model Context Protocol (MCP) server that mcp server for linux scheduler management and auto optimization It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Schedcp?

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

Which AI clients work with Schedcp?

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

Is Schedcp free to use?

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

Browse More Developer Tools MCP Servers

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

Quick Config Preview

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

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

Read the full setup guide →

Ready to use Schedcp?

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