k6 MCP server
Overview
What is k6-mcp-server?
k6-mcp-server is a Model Context Protocol (MCP) server implementation designed for running k6 load tests, enabling users to efficiently conduct performance testing.
How to use k6-mcp-server?
To use k6-mcp-server, clone the repository, install the required dependencies, and set up environment variables if needed. Create a k6 test script and configure the MCP server to run your tests.
Key features of k6-mcp-server?
- Simple integration with the Model Context Protocol framework
- Support for custom test durations and virtual users (VUs)
- Easy-to-use API for running k6 load tests
- Configurable through environment variables
- Real-time test execution output
Use cases of k6-mcp-server?
- LLM powered results analysis
- Effective debugging of load tests
FAQ from k6-mcp-server?
- What are the prerequisites for using k6-mcp-server?
You need Python 3.12 or higher, the k6 load testing tool, and the uv package manager installed.
- How do I run a test with custom options?
You can use the
execute_k6_test_with_optionsfunction to specify your desired duration and number of virtual users.