πŸš€ JMeter MCP Server

by MCP-Mirror

283 downloads
Not rated
GitHub

About

JMeter MCP Server is a Model Context Protocol (MCP) server that allows executing Apache JMeter tests through MCP-compatible clients. It is designed for users who want to run JMeter test plans programmatically via AI assistants or other MCP tools.

Details

Author
MCP-Mirror
Downloads
283
Categories
Other

- Execute JMeter tests in non-GUI mode
- Launch JMeter in GUI mode
- Capture and return execution output
- Validates test file existence and .jmx extension
- Integrates with multiple MCP-compatible clients

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name πŸš€ JMeter MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install uv and ensure JMeter is installed and accessible. Configure the .env file with JMETER_HOME and optional JMETER_JAVA_OPTS. Connect using an MCP-compatible client (e.g., Claude Desktop, Cursor, Windsurf) and send prompts like "Run JMeter test /path/to/test.jmx". The server provides two tools: execute_jmeter_test (launches JMeter GUI) and execute_jmeter_test_non_gui (executes tests in non-GUI mode).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "\ud83d\ude80 jmeter mcp server": {
            "jmeter": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/path/to/jmeter-mcp-server",
                    "run",
                    "jmeter_server.py"
                ]
            }
        }
    }
}

McpServers

{
    "jmeter": {
        "command": "uv",
        "args": [
            "--directory",
            "/path/to/jmeter-mcp-server",
            "run",
            "jmeter_server.py"
        ]
    }
}
# πŸš€ 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" ] } } } ``` ## πŸ›‘ 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
No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.