Skip to main content
Glama

JMeter MCP Server

README.md•2.2 kB
# šŸš€ JMeter MCP Server This is a Model Context Protocol (MCP) server that allows executing JMeter tests through MCP-compatible clients. > [!IMPORTANT] > šŸ“¢ Looking for an AI Assistant inside JMeter? šŸš€ > Check out [Feather Wand](https://jmeter.ai) ![Anthropic](./images/Anthropic-MCP.png) ![Cursor](./images/Cursor.png) ![Windsurf](./images/Windsurf.png) ## šŸ“‹ Features - šŸ“Š Execute JMeter tests in non-GUI mode - šŸ–„ļø Launch JMeter in GUI mode - šŸ“ Capture and return execution output ## šŸ› ļø Installation ### Local Installation 1. Install [`uv`](https://github.com/astral-sh/uv): 2. 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: ```bash chmod +x /path/to/jmeter/bin/jmeter ``` 3. Configure the `.env` file, refer to the `.env.example` file for details. ```bash # 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 1. Connect to the server using an MCP-compatible client (e.g., Claude Desktop, Cursor, Windsurf) 2. Send a prompt to the server: ``` Run JMeter test /path/to/test.jmx ``` 3. MCP compatible client will use the available 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) ## šŸ—ļø MCP Configuration Add the following configuration to your MCP client config: ```json { "mcpServers": { "jmeter": { "command": "/path/to/uv", "args": [ "--directory", "/path/to/jmeter-mcp-server", "run", "jmeter_server.py" ] } } } ``` ## ✨ Use case LLM powered result analysis: Collect and analyze test results. Debugging: Execute tests in non-GUI mode for debugging. ## šŸ›‘ Error Handling The server will: - Validate that the test file exists - Check that the file has a .jmx extension - Capture and return any execution errors

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Narasimhakatta/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server