About qainsights/jmeter-mcp-server
qainsights/jmeter-mcp-server is an MCP server published by QAInsights in the Data category: β¨ JMeter Meets AI Workflows: Introducing the JMeter MCP Server! π€―.
The repository has 74 stars and 29 forks, with the last commit 26 days ago. Recent commit activity is the strongest signal that reported issues will get attention.
Install
npx jmeter-mcp-serverclaude mcp add jmeter-mcp-server -- npx -y jmeter-mcp-servernpx -y jmeter-mcp-serveruvx jmeter-mcp-serverpip install jmeter-mcp-serverThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about qainsights/jmeter-mcp-server
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 6 hours ago. Heuristics on the source, not an audit.
- βREADME presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- βTests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- βNo dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
π JMeter MCP Server
This is a Model Context Protocol (MCP) server that allows executing JMeter tests through MCP-compatible clients and analyzing test results.
[!IMPORTANT] π’ Looking for an AI Assistant inside JMeter? π Check out Feather Wand

π Features
JMeter Execution
- π Execute JMeter tests in non-GUI mode
- π₯οΈ Launch JMeter in GUI mode
- π Capture and return execution output
- π Generate JMeter report dashboard
Test Results Analysis
- π Parse and analyze JMeter test results (JTL files)
- π Calculate comprehensive performance metrics
- π Identify performance bottlenecks automatically
- π‘ Generate actionable insights and recommendations
- π Create visualizations of test results
- π Generate HTML reports with analysis results
π οΈ Installation
Local Installation
-
Install
uv: -
Ensure JMeter is installed on your system and accessible via the command line.
β οΈ Important: Make sure JMeter is executable. You can do this by running:
chmod +x /path/to/jmeter/bin/jmeter
- Install required Python dependencies:
pip install -r requirements.txt
- Configure the
.envfile, refer to the.env.examplefile for details.
# JMeter Configuration
JMETER_HOME=/path/to/apache-jmeter-5.6.3
JMETER_BIN=${JMETER_HOME}/bin/jmeter
# Optional: JMeter Java options
JMETER_JAVA_OPTS="-Xms1g -Xmx2g"
π» MCP Usage
-
Connect to the server using an MCP-compatible client (e.g., Claude Desktop, Cursor, Windsurf)
-
Send a prompt to the server:
Run JMeter test /path/to/test.jmx
- MCP compatible client will use the available tools:
JMeter Execution Tools
- π₯οΈ
execute_jmeter_test: Launches JMeter in GUI mode, but doesn't execute test as per the JMeter design - π
execute_jmeter_test_non_gui: Execute a JMeter test in non-GUI mode (default mode for better performance)
Test Results Analysis Tools
- π
analyze_jmeter_results: Analyze JMeter test results and provide a summary of key metrics and insights - π
identify_performance_bottlenecks: Identify performance bottlenecks in JMeter test results - π‘
get_performance_insights: Get insights and recommendations for improving performance - π
generate_visualization: Generate visualizations of JMeter test results
ποΈ MCP Configuration
Add the following configuration to your MCP client config:
{
"mcpServers": {
"jmeter": {
"command": "/path/to/uv",
"args": [
"--directory",
"/path/to/jmeter-mcp-server",
"run",
"jmeter_server.py"
]
}
}
}
β¨ Use Cases
Test Execution
- Run JMeter tests in non-GUI mode for better performance
- Launch JMeter in GUI mode for test development
- Generate JMeter report dashboards
Test Results Analysis
- Analyze JTL files to understand performance characteristics
- Identify performance bottlenecks and their severity
- Get actionable recommendations for performance improvements
- Generate visualizations for better understanding of results
- Create comprehensive HTML reports for sharing with stakeholders
π Error Handling
The server will:
- Validate that the test file exists
- Check that the file has a .jmx extension
- Validate that JTL files exist and have valid formats
- Capture and return any execution or analysis errors
π Test Results Analyzer
The Test Results Analyzer is a powerful feature that helps you understand your JMeter test results better. It consists of several components:
Parser Module
- Supports both XML and CSV JTL formats
- Efficiently processes large files with streaming parsers
- Validates file formats and handles errors gracefully
Metrics Calculator
- Calculates overall performance metrics (average, median, percentiles)
- Provides endpoint-specific metrics for detailed analysis
- Generates time series metrics to track performance over time
- Compares metrics with benchmarks for context
Bottleneck Analyzer
- Identifies slow endpoints based on response times
- Detects error-prone endpoints with high error rates
- Finds response time anomalies and outliers
- Analyzes the impact of concurrency on performance
Insights Generator
- Provides specific recommendations for addressing bottlenecks
- Analyzes error patterns and suggests solutions
- Generates insights on scaling behavior and capacity limits
- Prioritizes recommendations based on potential impact
Visualization Engine
- Creates time series graphs showing performance over time
- Generates distribution graphs for response time analysis
- Produces endpoint comparison charts for identifying issues
- Creates comprehensive HTML reports with all analysis results
π Example Usage
# Run a JMeter test and generate a results file
Run JMeter test sample_test.jmx in non-GUI mode and save results to results.jtl
# Analyze the results
Analyze the JMeter test results in results.jtl and provide detailed insights
# Identify bottlenecks
What are the performance bottlenecks in the results.jtl file?
# Get recommendations
What recommendations do you have for improving performance based on results.jtl?
# Generate visualizations
Create a time series graph of response times from results.jtl
README fetched from the repository 6 hours ago. The original is authoritative.