K6 MCP Server
A Model Context Protocol (MCP) server for running k6 load tests and stress tests.
Features
- Load Testing: Run k6 load tests with configurable virtual users, duration, and request parameters
- Stress Testing: Run multi-stage stress tests to gradually increase load
- JSON Results: Get detailed test results in JSON format
- Flexible Configuration: Support for custom HTTP methods, headers, body, and thresholds
Prerequisites
- Python 3.10 or higher
- k6 installed on your system (Installation Guide)
Installation
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python index.py
Tools
run_k6_load_test
Run a k6 load test against a specific URL.
Parameters:
url(required): Target URL for the load testvus(optional): Number of virtual users (default: 10)duration(optional): Test duration (default: "30s")rps(optional): Requests per second limitmethod(optional): HTTP method (default: "GET")headers(optional): HTTP headers objectbody(optional): Request body for POST/PUT requeststhresholds(optional): k6 thresholds for pass/fail criteria
Example:
{
"url": "https://httpbin.org/get",
"vus": 20,
"duration": "1m",
"method": "GET",
"headers": {
"User-Agent": "k6-test"
}
}
run_k6_stress_test
Run a k6 stress test with multiple stages to gradually increase load.
Parameters:
url(required): Target URL for the stress teststages(optional): Array of stages with duration and target VUsmethod(optional): HTTP method (default: "GET")headers(optional): HTTP headers objectbody(optional): Request body for POST/PUT requeststhresholds(optional): k6 thresholds for pass/fail criteria
Example:
{
"url": "https://httpbin.org/get",
"stages": [
{"duration": "2m", "target": 10},
{"duration": "5m", "target": 20},
{"duration": "2m", "target": 0}
]
}
License
MIT License
Metadata
Release files for k6-mcp-server 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| k6_mcp_server-2.2.0.tar.gz | 9.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k6_mcp_server-2.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / k6_mcp_server-2.2.0.tar.gz
| Download URL | k6_mcp_server-2.2.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc991ab9baa4613ef3413f1ef4dab4a2f09b2f55e8a996c708554b0731fa7f80
|
|
BLAKE2b-256 checksum How to use checksums |
5d1089f145ee9cde7350d818a307f3b5cbb2e4d55255f13da58d293b41136f04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Release files / k6_mcp_server-2.2.0-py3-none-any.whl
| Download URL | k6_mcp_server-2.2.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40e58b293f1a856b5a72b0fd3368ea547beed8deaf79df52e89c8b99fde27424
|
|
BLAKE2b-256 checksum How to use checksums |
7fa6ddff007ecef6b36bc90f140806a8ca92aa799b4089f53637103f7f43b956
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Security for k6-mcp-server 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.