A favicon of Apache JMeter Test Execution Server

Apache JMeter Test Execution Server

โœจ JMeter Meets AI Workflows: Introducing the JMeter MCP Server! ๐Ÿคฏ

๐Ÿš€ 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

Anthropic Cursor Windsurf

๐Ÿ“‹ Features

  • ๐Ÿ“Š Execute JMeter tests in non-GUI mode
  • ๐Ÿ–ฅ๏ธ Launch JMeter in GUI mode
  • ๐Ÿ“ Capture and return execution output

๐Ÿ› ๏ธ Installation

Local Installation

  1. Install 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:

chmod +x /path/to/jmeter/bin/jmeter
  1. Configure the .env file, refer to the .env.example file 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

  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
  1. 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:

{
    "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
Share:
Details:
  • Stars


    12
  • Forks


    3
  • Last commit


    18 days ago
  • Repository age


    1 month
View Repository

Auto-fetched from GitHub .

MCP servers similar to Apache JMeter Test Execution Server:

ย 

ย 
ย 
  • Stars


  • Forks


  • Last commit


ย 

ย 
ย 
  • Stars


  • Forks


  • Last commit


ย 

ย 
ย 
  • Stars


  • Forks


  • Last commit