Skip to content

Ask Claude About a Load Test with New Relic MCP

With two MCP servers connected to the same assistant, Claude can start a LoadFocus load test and then ask New Relic what your application did while it ran: response times, slow transactions, errors and logs, next to the load that caused them.

LoadFocus sends the test's metrics to New Relic through the New Relic integration. The New Relic MCP server reads them back together with your APM data. LoadFocus itself never reads from New Relic, so the two meet only inside the assistant.

  • A LoadFocus test with the New Relic integration attached. Each run's results page shows Exports to: New Relic. See New Relic Integration.
  • Your application instrumented with New Relic APM. Without it, New Relic only sees the load side, the same numbers LoadFocus already shows you.
  • A paid New Relic plan. The New Relic MCP server is not available on Free plan accounts, and a New Relic administrator must allow MCP access in the feature control manager. Your New Relic user also needs a role that can read the MCP server, such as Organization Read Only. Most tools use your Core Compute allocation; a few advanced ones need the Advanced Compute add-on. The details are in New Relic's MCP overview.
  • An MCP client that connects to both servers, such as Claude Code or Claude Desktop.

In Claude Code, add the two servers:

Terminal window
claude mcp add --transport http --scope user loadfocus https://mcp.loadfocus.com/api
claude mcp add --transport http --scope user newrelic https://mcp.newrelic.com/mcp/

Then type /mcp in Claude Code and sign in to each one: LoadFocus with your LoadFocus account, New Relic in the browser window it opens. New Relic's OAuth sign-in needs Claude Code 2.1.186 or later.

If your New Relic account is in the EU region, use https://mcp.eu.newrelic.com/mcp/ instead, the same region you picked in the LoadFocus integration.

For other clients, see AI Assistants (MCP) for LoadFocus and New Relic's MCP setup page for New Relic. Claude Desktop, for example, connects to New Relic through the mcp-remote proxy.

  1. Run the test. Ask, for example: "Run my LoadFocus cloud test checkout_flow and tell me when it finishes." Claude starts it with run_load_test, finds the run number with get_test_runs and follows it with get_test_run_status. A run is a real test: cloud tests run on any plan, while running k6 and JMeter tests through MCP needs a paid LoadFocus plan.
  2. Ask about the run. For example: "For run 3 of checkout_flow, compare the LoadFocus metrics in New Relic with my checkout-api service over the same minutes. What degraded first, and why?"
  3. Claude reads both sides from New Relic. The load side with execute_nrql_query, filtered to your test and run. Your application with tools such as analyze_golden_metrics, analyze_transactions, get_error_statistics and analyze_entity_logs, for the same time window.

You can also ask while the test is still running. Metrics arrive in batches, so the last few moments may not be in New Relic yet.

More questions to try:

  • "At what load did p95 response time on the payment request pass 1 second, and what was the database doing then?"
  • "Which errors appeared in my service during the run that were not there in the hour before it?"
  • "Compare run 3 with run 2 of checkout_flow, on both the load side and the server side."

Every data point LoadFocus sends carries the test and the run it came from:

Test type Service name Test and run attributes Main metrics
Cloud and JMeter loadfocus-jmeter loadfocus.testrunname, loadfocus.testrunid jmeter.samples, jmeter.response_time_ms, jmeter.errors
k6 k6 testrunname, testrunid http_reqs, http_req_duration, vus

To see when each run of a cloud or JMeter test happened, Claude can ask New Relic for the test's metrics per run, minute by minute:

FROM Metric SELECT sum(jmeter.samples), percentile(jmeter.response_time_ms, 95) WHERE loadfocus.testrunname = 'checkout_flow' SINCE 3 hours ago FACET loadfocus.testrunid TIMESERIES 1 minute

To compare "before the test" with "during the test", ask Claude to query both windows and put them side by side.

  • Claude finds no LoadFocus metrics in New Relic: check that the run's results page shows Exports to: New Relic. Then open the run's Logs tab: for cloud and JMeter tests, the last lines of the JMeter log say how many metric batches New Relic accepted; for k6 tests, the k6 log lists any failed metric uploads. New Relic Integration covers the usual causes.
  • Claude sees the load but nothing about your servers: your application is not reporting to New Relic APM, or not in the account the MCP server signed in to. Ask Claude to list the New Relic accounts and entities it can see.
  • Signing in to the New Relic MCP server fails with access_denied: Your administrator has disabled access to this application: the MCP server is turned off for your New Relic account. Free plan accounts cannot use it: click your user name in the bottom left corner of New Relic and open Plan Summary to see your plan. On a paid plan, an organization administrator turns it on from the same menu, under Feature Control, with the New Relic MCP Server toggle.
  • The New Relic MCP server will not connect for another reason: check that the server URL matches your region (mcp.eu.newrelic.com for EU accounts).
  • LoadFocus answers upgrade_required: running k6 and JMeter tests through MCP needs a paid LoadFocus plan. Cloud tests run on any plan.