Loading...

Executes k6 load tests via MCP, allowing LLMs to orchestrate and analyze performance testing. Requires k6 and Python environment.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
Executes k6 load tests via MCP, allowing LLMs to orchestrate and analyze performance testing. Requires k6 and Python environment.
The k6-mcp-server is relatively safe for executing load tests if the k6 scripts are trusted and resource limits are carefully managed. Untrusted scripts or excessive resource allocation could pose risks. Ensure the k6 binary is from a trusted source.
Performance depends on the complexity of the k6 script, the number of VUs, and the duration of the test. High VUs and long durations can consume significant resources.
Cost depends on the infrastructure used to run the k6-mcp-server and the resources consumed by the k6 tests. Consider the cost of running k6 tests in terms of CPU, memory, and network bandwidth.
{
"mcpServers": {
"k6": {
"command": "/path/to/bin/uv",
"args": [
"--directory",
"/path/to/k6-mcp-server",
"run",
"k6_server.py"
]
}
}
}K6_BINexecute_k6_testRuns a k6 test with a specified script file, using default duration and VUs.
Executes arbitrary k6 scripts, potentially consuming resources.
execute_k6_test_with_optionsRuns a k6 test with a specified script file, duration, and number of virtual users.
Executes arbitrary k6 scripts with user-defined parameters, potentially consuming excessive resources.
None
The k6-mcp-server is relatively safe for executing load tests if the k6 scripts are trusted and resource limits are carefully managed. Untrusted scripts or excessive resource allocation could pose risks. Ensure the k6 binary is from a trusted source.
The server allows execution of k6 tests, which can have significant impact depending on the script. No built-in sandboxing or rollback mechanisms are provided.
Production Tip
Monitor resource usage (CPU, memory, network) on the server during test execution to prevent performance degradation or crashes.
Python 3.12+, k6 load testing tool, and uv package manager.
Clone the repository and run `uv pip install -r requirements.txt`.
Provide the command and arguments in your MCP client configuration to point to the `k6_server.py` script.
The default options are 30 seconds duration and 10 virtual users.
Yes, use the `execute_k6_test_with_options` tool to specify custom duration and VUs.
Ensure the k6 scripts are trusted and monitor resource usage to prevent exhaustion. Validate the k6 binary source.
Leverage LLMs to analyze the k6 output and generate reports or identify performance bottlenecks.