Schedcp
MCP Server for Linux Scheduler Management and Auto optimization
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
Maintainer
Works with
Installation
Manual Installation
npx schedcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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)
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/scxBuild the schedulers
Compile the sched-ext scheduler binaries that SchedCP will manage.
cd scheduler && make && make install && cd ..Build the autotune binary
Compile the autotune Rust binary that drives the autonomous optimization workflow.
cd autotune && cargo build --release && cd ..Build the MCP server
Compile the SchedCP MCP server binary.
cd mcp && cargo build --release && cd ..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"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.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.
Schedcp Alternatives — Similar Developer Tools Servers
Looking for alternatives to Schedcp? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Schedcp in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.