k6-loadtest-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| K6_BIN | No | Full path to the k6 executable. If not set, 'k6' is used from PATH. | k6 |
| PERF_AGENT_HOME | No | Override the directory where config and run artifacts are stored. Defaults to ~/.perf-agent. | ~/.perf-agent |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_k6_scriptA | Turns a structured test plan (base URL, weighted request mix, load profile, thresholds) into a runnable k6 JavaScript script. Deterministic templating, not an LLM call -- reviewable before running. Returns a runDir that all later steps (smoke_test_script, run_load_test, get_test_metrics) take as input. |
| smoke_test_scriptA | Runs the script for 1 VU / 1 iteration to catch syntax or runtime errors fast, before committing to a full load test. Always call this before run_load_test. |
| run_load_testA | Executes the load test at the VUs/duration/stages baked into the generated script by generate_k6_script. Only runs against hosts listed in perf-agent.config.json's allowedHosts -- add a host there yourself (the tools won't do it for you) once you've confirmed you're authorized to load-test it. Can take as long as the test's own duration/stages; call smoke_test_script first. |
| get_test_metricsA | Parses the k6 summary JSON into deterministic structured metrics: overall + per-endpoint p50/p90/p95/p99 latency, error rate, RPS, and threshold pass/fail. Use this data (not raw k6 console output) to write the human-readable performance summary -- the numbers here are computed in code, not guessed. |
| run_full_testA | Convenience tool that chains generate_k6_script -> smoke_test_script -> run_load_test -> get_test_metrics. Use the granular tools instead when you want to inspect/adjust the script between steps, or re-run the same script with different load without regenerating it. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/krishanchawla/k6-loadtest-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server