mcp-k6
k6 MCP server
claude mcp add --transport stdio grafana-mcp-k6 docker run -i grafana/mcp-k6:latest
How to use
The k6 MCP Server (mcp-k6) is an experimental MCP implementation that integrates with k6 to provide script validation, test execution, documentation navigation, and guided script generation. It exposes tools to validate k6 scripts with minimal run configuration, execute performance tests with configurable load profiles, browse official k6 documentation in a structured way, and generate production-ready k6 scripts from natural language requirements. You can connect editors or MCP clients to the server via the supported transport modes (stdio by default or streamable HTTP in HTTP mode), enabling local or remote usage depending on your workflow.
Key capabilities include: script validation (validate_script) to catch syntax or runtime issues early; test execution (run_script) to run performance tests locally with specified VUs, durations, and stages; documentation browsing (list_sections and get_documentation) to explore k6 docs and retrieve markdown for sections; and script generation (generate_script) to produce production-grade k6 tests from plain-English requirements using embedded best practices and type definitions. This makes it easier to iterate on tests, verify correctness, and maintain consistent scripting standards across your team.
How to install
Prerequisites:
- Docker installed on your host (recommended for quick setup)
- Internet access to pull the container image
Installation steps (Docker method):
- Pull the official image:
docker pull grafana/mcp-k6:latest
- Run the MCP server in Docker (HTTP transport is optional; default is stdio):
# Basic run (stdio transport by default)
docker run -i grafana/mcp-k6:latest
# Run with HTTP transport enabled (example on port 8080)
docker run -p 8080:8080 grafana/mcp-k6:latest -transport=http -addr=:8080
- Verify the server is responding (for HTTP mode, you can query the MCP endpoint at http://localhost:8080/mcp):
curl http://localhost:8080/mcp
If you prefer native or other install methods described in the project, you can follow the README's options for Homebrew, native Go installation, or package installs, but the Docker approach is the quickest to get started.
Additional notes
Notes and tips:
- The project is experimental; expect edge cases and provide feedback to the maintainers.
- The HTTP transport mode can be used for remote deployments or team shared instances; when using HTTP, be mindful of security since the server may not include built-in authentication.
- Editor integrations typically point to the MCP endpoint over stdio or HTTP depending on setup; ensure your editor configuration matches the chosen transport.
- If you run in HTTP mode, you might want to place the container behind a secure proxy or VPN for access control.
- For updates, pull the latest image or rebuild your local install if youβre using a native or package-based setup.
Related MCP Servers
mcp-language
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
kodit
π©βπ» MCP server to index external repositories
github-brain
An experimental GitHub MCP server with local database.
bgg
BGG MCP provides access to BoardGameGeek and a variety of board game related data through the Model Context Protocol. Enabling retrieval and filtering of board game data, user collections, and profiles.
mcp
Teamwork.com MCP server
chromedp
MCP server for browser automation using chromedp