Performance Tests MCP Guide

How to connect the k6 and JMeter MCP, create a test, and use the Claude skill that runs a large k6 load on EC2.

Overview

The Performance Tests MCP helps teams create and improve load and performance scripts for k6 and Apache JMeter. Use it when you need smoke, load, stress, or spike scenarios, latency and error limits, and a script your team can maintain. It does not generate browser click-paths or Playwright end-to-end tests.

Pick the address for your team. INDG uses qe-mcp.bindg.com. BLAW (Bloomberg Law) uses blp.qe-mcp.bindg.com.

This page has two parts. First, connect the MCP and create or review the test. Then, when a k6 load is large enough to run on EC2, use the Claude skill further down. The skill checks the file the MCP already wrote. It does not create a second test. A short picture of the EC2 platform is on the Performance Tool page.

URLs and JSON

Both teams use the same path, /mcp/v2/performance_tests, on their own site. In Cursor or VS Code, name the INDG connection qe_performance_tests_v2 and the BLAW connection blaw_performance_tests_v2. That name is only a label so you can tell the two connections apart. The samples below already use these names.

AudienceURLTransportStatus
INDG https://qe-mcp.bindg.com/mcp/v2/performance_tests http V2
BLAW https://blp.qe-mcp.bindg.com/mcp/v2/performance_tests http V2

Cursor — INDG

{
  "mcpServers": {
    "qe_performance_tests_v2": {
      "url": "https://qe-mcp.bindg.com/mcp/v2/performance_tests",
      "transport": "http"
    }
  }
}

Cursor — BLAW

{
  "mcpServers": {
    "blaw_performance_tests_v2": {
      "url": "https://blp.qe-mcp.bindg.com/mcp/v2/performance_tests",
      "transport": "http"
    }
  }
}

VS Code — INDG

{
  "servers": {
    "qe_performance_tests_v2": {
      "url": "https://qe-mcp.bindg.com/mcp/v2/performance_tests",
      "type": "http"
    }
  },
  "inputs": []
}

VS Code — BLAW

{
  "servers": {
    "blaw_performance_tests_v2": {
      "url": "https://blp.qe-mcp.bindg.com/mcp/v2/performance_tests",
      "type": "http"
    }
  },
  "inputs": []
}

Tools and capabilities

Exact tool names appear in the MCP hub catalog after sync from GET https://qe-mcp.bindg.com/tools. Here is what this connection can do:

AreaWhat you can do
k6 Generate and refine k6 scripts (smoke, load, stress, spike), scenarios, thresholds, checks, and environment-driven URLs/credentials patterns.
JMeter Generate and refine Apache JMeter test plans (thread groups, samplers, assertions, timers) aligned to your endpoints and load profile.
Analysis Review existing performance scripts for structure, realism, and maintainability; recommend improvements without inventing unreachable endpoints.

Add Server to Cursor

  1. Open Cursor Settings and search for Tools & MCP.
  2. Choose New MCP Server.
  3. Paste the INDG or BLAW JSON above (or add both entries).
  4. Save and confirm the server appears connected.

Add Server to VS Code

  1. Open the Command Palette and search for MCP: Add Server.
  2. Select HTTP.
  3. Enter the INDG URL https://qe-mcp.bindg.com/mcp/v2/performance_tests or the BLAW URL https://blp.qe-mcp.bindg.com/mcp/v2/performance_tests.
  4. Give it a name you will recognize: qe_performance_tests_v2 for INDG or blaw_performance_tests_v2 for BLAW. The name is only a label so you can tell the two connections apart.
  5. Save globally or to the workspace and start the server.

Create or review a test

  1. Connect the INDG or BLAW address for your team, using the samples above.
  2. Describe the application, the endpoints, the environment variables, and the load (how many users, how long, and your latency and error limits).
  3. Ask for a k6 or JMeter starter. Start with a small smoke test, then ask for a larger load or spike test.
  4. Save the k6 script under k6-tests/ in your performance repository. Save a JMeter plan in your JMeter folder.
  5. You can check a small k6 run on your own machine.
  6. A large k6 load uses the Claude skill on this page. That skill runs the test on EC2. JMeter stays on this MCP. The skill is for k6 on EC2 only.

Example prompts

k6 smoke + load (INDG): Using MCP server qe_performance_tests_v2, create a k6 smoke and load script for <API or journey> with TEST_ENV-driven URLs, credential env vars, functional checks, and latency thresholds that match our latency and error limits.
JMeter plan (BLAW): Using MCP server blaw_performance_tests_v2, generate a JMeter test plan for <endpoint set> with a ramp-up thread group, HTTP samplers, assertions, and clear naming. Do not invent endpoints that are not in our OpenAPI or docs.
Review existing script: Using my Performance Tests MCP, review this k6/JMeter script for maintainability, realistic load shape, and missing thresholds. Propose a focused improvement plan.

BBVPN proxy configuration

These MCPs are hosted on qe-mcp.bindg.com (INDG) and blp.qe-mcp.bindg.com (BLAW). If you are on BBVPN, add both hosts to your IDE’s http.noProxy setting (not in mcp.json).

{
  "http.noProxy": [
    "qe-mcp.bindg.com",
    "blp.qe-mcp.bindg.com"
  ]
}

Validate the connection

Smoke test: Using my MCP server qe_performance_tests_v2 (or blaw_performance_tests_v2), list available tools or capabilities and provide a short ready checklist for k6 and JMeter.

Claude skill for large k6 loads on EC2

This skill accompanies the Performance Tests MCP. The MCP writes the k6 file. The skill finds only that new file, checks it, fixes only what you approve, then pushes so GitLab runs the large load on EC2. GitLab loads the test zip and the reports into Amazon S3.

The skill will not:

Get the skill

Download it from K6_Claudeskill or open Performance Coach in the Claude Skills library. Do not also load .claude/skills/k6-ec2-performance/SKILL.md. That older skill is a different procedure.

In Claude, start the chat with Use k6-ec2-skill. That word is the skill’s name. Example:

First message: Use k6-ec2-skill. Check the k6 test MCP already created.

Ask Claude to find your k6 files

The skill looks for newly created k6 files identified by the MCP scan (for untracked or newly added files) anywhere in the repo. It lists only new candidates and does not dump the whole suite. If the user names an existing path (including an older committed test), the skill uses that instead. If there are no new files and no file path was given, the skill asks once for a repo-relative path — the skill does not treat “no newly created files” as a hard dead end, and does not list every test.

Pick one file

Claude shows a short numbered list and waits. Reply with the name or the number. If you name a folder, Claude checks only the new files in that folder.

Read the pass or fail report

Claude reads only the file you picked and answers in the chat. A pass means all of these are already true:

  • The file is a valid k6 script (export const options and export default).
  • It has a URL, path, and method.
  • It has a load definition (executor, virtual users, stages, or duration).
  • If the file is meant to pass or fail a run, it has thresholds and check() calls.
  • Secrets appear only as __ENV names, never as real values.
  • Nothing extra was added that you did not ask for.

If something was never specified, the report says “not specified.” Claude does not fill it in.

If it fails, read the report file. If it passes, there is no file.

On a failure, Claude writes one new file and does not overwrite an older report:

K6_Failureanalysis_report/<YYYY-MM-DD>/<test-name>-created-<YYYYMMDD-HHMMSS>.md

That file lists every problem and the proposed fix. It does not contain passwords. Claude then asks yes or no for each failure. On a pass, no report file is written, and Claude continues.

Approve each fix

Answer yes or no for each failure. Claude edits only the new file you picked, and only the items you approved. It then checks again. A later failure gets a new report file with a new timestamp. A pass does not get a report file. Repeat until the verdict is pass, or until you say to continue anyway.

Point the runner at that file

Claude updates .env.example only. It does not create, read, or write .env. Credential fields stay empty. If you picked more than one new file, Claude asks which one K6_TEST_FILE should use.

K6_TEST_FILE=<category>/<test-name>.js
K6_RUN_MODE=local
TEST_ENV=qa
ENABLE_S3_UPLOAD=true
S3_BUCKET_NAME=eng-qa-test1-proto-s3-us-east-1
S3_BUCKET_EAST_STORAGE=eng-qa-test1-proto-s3-us-east-1
SettingWhat it means
K6_TEST_FILE Path of the test under k6-tests/. Example: load/my-test.js.
K6_RUN_MODE The skill sets this to local. GitLab still runs the published test on EC2 after the push.
TEST_ENV Which environment the test targets. The skill sets qa.
ENABLE_S3_UPLOAD Turn on so the reports are uploaded to S3.
S3_BUCKET_NAME Bucket that receives the test zip and the reports.
S3_BUCKET_EAST_STORAGE Same bucket, used when reports are stored in us-east-1.

Decide whether to run it locally

Claude asks: run this test locally now? Answer yes or no. It does not run the test unless you say yes. Either answer continues to the next step.

Let Claude branch, commit, and push

Claude creates a new branch named feature/k6/<test-name>, commits only the test file you picked and .env.example, and pushes. You should get the branch name, the commit, and a link to the GitLab pipeline.

It must not commit .env, k6-reports/, K6_Failureanalysis_report/, or Terraform files.

Wait for the report upload, not just the test run

GitLab runs these jobs in order. The run is not finished when the test job ends.

  1. lint-terraform — checks the Terraform files.
  2. terraform-plan-sbx — shows the infrastructure changes.
  3. terraform-apply-sbx — applies those changes.
  4. start-ec2-sbx — starts the EC2 runner.
  5. deploy-tests-sbx — zips k6-tests/ to s3://$S3_BUCKET_NAME/temp/k6-tests.zip and unpacks it on the runner.
  6. run-tests-sbx — runs the k6 file you selected.
  7. upload-reports-sbx — uploads the reports to S3. Wait for this job.
  8. stop-ec2-sbx — stops the EC2 runner.

Confirm S3 has the zip and the reports

You are done only when both of these are in S3:

  • The test zip: s3://$S3_BUCKET_NAME/temp/k6-tests.zip
  • The reports under performance_reports/<REPORT_USER>/, including the .log and .json for your test. REPORT_USER is the GitLab commit author, with spaces turned into hyphens.

If aws s3 ls returns AccessDenied, do not keep retrying from your laptop. Treat S3 as confirmed only when both deploy-tests-sbx and upload-reports-sbx are green. If either job failed, was skipped, or is still running, it is not done. Someone saying the files are in S3 is not enough.

If something looks wrong

← Back to MCP Server Guide ← Performance Tool Guide (EC2) ← Back to Quality Engineering Tools Suite