llm-d-bench-mcp

llm-d-bench-mcp

Enables Claude Code to benchmark llm-d from plain English, providing 35 tools and 5 workflow prompts for probing clusters, planning, deploying, running benchmarks, and analyzing results via the Model Context Protocol.

Category
访问服务器

README

llm-d-bench-mcp — the llm-d benchmarking MCP server

Give Claude Code the ability to benchmark llm-d from plain English. Point it at this server and it can probe a cluster, propose a benchmark plan you approve, deploy an llm-d stack, run the benchmark, and explain the results — inside the same security sandbox and approval gates as the llm-d-benchmarking-agent app.

Supported now: the claude-agent-sdk provider (no API key) wired into Claude Code (the CLI) — the only path the installer sets up and verifies. The server speaks standard MCP, so other providers (anthropic, openai) and clients (Claude Desktop, Cursor, VS Code, OpenAI Codex CLI) are planned for a future release.

It is the agent's toolset re-exposed over the Model Context Protocol: 35 tools, 5 workflow prompts, and the agent's entire knowledge base (60+ playbooks & heuristics) as readable resources — so a generic agent behaves like a benchmarking expert, not a blank slate.

Transport is stdio / local single-user: the server runs on your machine against your kubeconfig, trusted like any local tool you launch. There is no network/remote mode (see Security & scope).

How it fits together

This repo is the thin MCP adapter (~500 lines: transport + approval/event adapters + the knowledge-exposure surface). The engine — the 35 tools, the security allowlist, and the knowledge/ playbooks — lives in the llm-d-benchmarking-agent repo, which the installer clones at its latest main and installs into the same virtualenv. The engine must run from a real checkout (it reads knowledge/, the allowlist, and the read-only sibling repos from disk at runtime), which is why it is not a pip dependency.

Install (one command)

The installer fetches the agent repo (the engine), clones the read-only sibling repos, builds a virtualenv, installs the engine + this server into it, configures the claude-agent-sdk provider, and registers the server with Claude Code (or prints the config to paste yourself):

bash <(curl -fsSL https://raw.githubusercontent.com/TalBenAmii/llm-d-bench-mcp/main/scripts/install.sh)

Prefer to clone first? The same script runs from inside a checkout:

git clone https://github.com/TalBenAmii/llm-d-bench-mcp.git
cd llm-d-bench-mcp
./scripts/install.sh

It is idempotent (safe to re-run). The claude-agent-sdk provider needs no API key — it authenticates through your claude CLI login, so the only prerequisite is being logged in to the claude CLI — the installer offers to install the CLI for you if it's missing.

Because the engine app installs into the same venv, you also get its web UI for free — the installer's final message prints the exact line to launch it (./scripts/run.sh --open → http://127.0.0.1:8000).

What your agent gets

Tools (35)

Group What your agent can do Examples
Sense & ground (read-only, auto-run) Inspect the environment, GPUs, catalog, docs, knowledge probe_environment, advise_accelerators, list_catalog, discover_stack, search_knowledge, read_knowledge, fetch_key_docs, read_repo_doc
Plan before you spend Map a use case to a validated plan; check it fits propose_session_plan, check_capacity, estimate_run_duration, write_and_validate_config, generate_doe_experiment
Deploy & run (approval-gated) Set up repos, run the CLI, orchestrate Jobs & sweeps ensure_repos, run_setup, execute_llmdbenchmark, orchestrate_benchmark_run, orchestrate_sweep, provision_hf_secret
Make sense of results (read-only) Parse reports, compare runs/harnesses, track trends locate_and_parse_report, analyze_results, compare_reports, compare_harness_runs, aggregate_runs, result_history
Observe & manage Readiness checks, live cluster metrics, run management check_endpoint_readiness, observe_run_metrics, manage_orchestrated_runs, cancel_run
Trust & reproduce Provenance bundles, reproduce a run export_run_bundle, reproduce_run

Numbers are only ever reported from a validated Benchmark Report v0.2 — never scraped from logs or invented.

Workflow prompts (5)

Entry points that drop your agent into the right playbook:

Prompt Arguments What it sets up
benchmark_this_model model?, goal?, slo? The full interview → preconditions → plan → run → explain workflow
pick_deploy_path model?, accelerator? Choosing a deploy path + accelerator guidance
interpret_this_report report_path? Parsing and explaining a benchmark report
design_a_sweep objective? Designing a design-of-experiments sweep
goal_seek_to_slo slo Iterative sweep rounds toward an SLO at best goodput

Resources & instructions

Every knowledge file is exposed as a doc://knowledge/<name> resource, so your agent can read the same playbooks the standalone agent reasons over. The server also advertises a role/workflow preamble in its MCP instructions ("probe first, ground in docs, propose a plan, run only with approval") that capable clients fold into their system prompt.

Manual config (Claude Code)

The installer does this for you; here's the block to wire it up by hand. The launch command is the console entry point created by installing this package — use its absolute path in the agent project's venv (the installer builds everything into that one venv):

claude mcp add llm-d-bench -s user -- /ABS/PATH/llm-d-benchmarking-agent-project/.venv/bin/llm-d-bench-mcp
# verify:  claude mcp list   (or /mcp inside a session)

A gated-model HF_TOKEN is optional — add it with -e HF_TOKEN=hf_xxx; the agent project's .env already carries the LLM provider config and is loaded regardless of how the server is launched. The module form works too once both packages are installed in the venv:

claude mcp add llm-d-bench -s user -- /ABS/PATH/.venv/bin/python -m llm_d_bench_mcp

Smoke-test it without a client using the official inspector:

npx @modelcontextprotocol/inspector /ABS/PATH/.venv/bin/llm-d-bench-mcp

Requirements & scope

  • Python ≥ 3.11 and git (the installer handles the venv via uv, or python3 -m venv).
  • LLM provider: claude-agent-sdk — no API key, authenticated via your claude CLI login.
  • Client: Claude Code (the CLI).
  • No cluster needed for the advisory tools and knowledge resources. The deploy/run/orchestrate tools need a reachable Kubernetes cluster + kubeconfig (and HF_TOKEN for gated models).
  • The engine repo and its read-only siblings (llm-d, llm-d-benchmark, llm-d-skills) must be on disk — the installer clones them all automatically.

Security & scope

  • stdio / local single-user only. The server has no network listener and no per-caller auth; it acts with your own kubeconfig. This is acceptable only for local use — HTTP/remote/shared transport is deliberately deferred, and "who may connect, whose credentials, what blast radius" become blocking questions before any such mode.
  • Approval is re-homed to your client. Every tool call is gated by your MCP client's own tool-permission prompt; the richer SessionPlan approval uses MCP elicitation where the client supports it (with a graceful fallback otherwise). Nothing mutating runs without your say-so — never a silent auto-approve.

Design of record and rationale: DESIGN.md. The engine / full agent: llm-d-benchmarking-agent.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选