Jmeter Demo Using Jmeter MCP Server
0 stars
HTML
Updated Jun 3, 2025
Documentation
JMeter Demo Using MCP
This project demonstrates how to use JMeter with Model Context Protocol (MCP) for automated performance testing.
Prerequisites
- Python 3.x
- Apache JMeter
- MCP-compatible client (e.g., Cursor)
Project Structure
code
JmeterDemoUsingMCP/
├── jmeter/ # JMeter installation directory
├── jmeter-mcp-server/ # MCP server for JMeter integration
│ ├── test_mcp.py # Test execution script
│ └── jmeter_server.py # JMeter MCP server implementation
└── AutomationExercise_Test.jmx # Sample JMeter test planSetup
1. Install JMeter and set up the environment:
bash
# Set JMETER_HOME environment variable
JMETER_HOME=/path/to/apache-jmeter2. Install Python dependencies:
bash
pip install mcp pydanticUsage
1. Run tests in GUI mode:
python
python test_mcp.py2. Run tests with increased users:
python
# Modify test_mcp.py parameters:
'-Jthreads=10' # Number of users
'-Jrampup=20' # Ramp-up period
'-Jduration=60' # Test durationFeatures
- GUI and Non-GUI test execution
- Configurable thread count and test duration
- Automated HTML report generation
- Real-time test monitoring
Test Results
Results are saved in:
- JTL files:
results*.jtl - HTML reports:
report*/index.html
Contributing
Feel free to submit issues and enhancement requests!
Similar MCP
Based on tags & features
Trending MCP
Most active this week