Skip to main content
Glama

🚀 JMeter MCP サーバー

これは、MCP 互換クライアントを介して JMeter テストを実行できるモデル コンテキスト プロトコル (MCP) サーバーです。

[!重要] 📢 JMeter 内の AI アシスタントをお探しですか? 🚀 Feather Wandをチェックしてください

人類学的カーソルウィンドサーフィン

📋 機能

  • 📊 非GUIモードでJMeterテストを実行する

  • 🖥️ GUIモードでJMeterを起動する

  • 📝 実行出力をキャプチャして返す

Related MCP server: MCP Server

🛠️ インストール

ローカルインストール

  1. uvをインストールします:

  2. JMeter がシステムにインストールされており、コマンド ラインからアクセスできることを確認します。

⚠️重要:JMeter が実行可能であることを確認してください。以下のコマンドを実行して確認できます。

chmod +x /path/to/jmeter/bin/jmeter
  1. .envファイルを設定します。詳細については、 .env.exampleファイルを参照してください。

# 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の使用

  1. MCP 互換クライアント (例: Claude Desktop、Cursor、Windsurf) を使用してサーバーに接続します。

  2. サーバーにプロンプトを送信します:

Run JMeter test /path/to/test.jmx
  1. MCP 互換クライアントは利用可能なツールを使用します:

    • 🖥️ execute_jmeter_test : JMeter を GUI モードで起動しますが、JMeter の設計どおりにテストは実行されません。

    • 🚀 execute_jmeter_test_non_gui : 非 GUI モードで JMeter テストを実行します (パフォーマンス向上のためのデフォルト モード)

🏗️ MCP 構成

MCP クライアント構成に次の構成を追加します。

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

✨ ユースケース

LLM を活用した結果分析: テスト結果を収集して分析します。

デバッグ: デバッグのために非 GUI モードでテストを実行します。

🛑 エラー処理

サーバーは次のことを行います。

  • テストファイルが存在することを確認する

  • ファイルに.jmx拡張子が付いていることを確認してください

  • 実行エラーをキャプチャして返す

Available Tools

6 tools
analyze_jmeter_resultsC

Analyze JMeter test results and provide a summary of key metrics and insights.

Args: jtl_file: Path to the JTL file containing test results detailed: Whether to include detailed analysis (default: False)

Returns: str: Analysis results in a formatted string

Inputs: jtl_file (required), detailed. Returns: result

execute_jmeter_testB

Execute a JMeter test.

Args: test_file: Path to the JMeter test file (.jmx) gui_mode: Whether to run in GUI mode (default: False) properties: Dictionary of JMeter properties to pass with -J (default: None)

Inputs: test_file (required), gui_mode, properties. Returns: result

execute_jmeter_test_non_guiB

Execute a JMeter test in non-GUI mode - supports JMeter properties.

Args: test_file: Path to the JMeter test file (.jmx) properties: Dictionary of JMeter properties to pass with -J (default: None) generate_report: Whether to generate report dashboard after load test (default: False) report_output_dir: Output folder for report dashboard (default: None) log_file: Name of JTL file to log sample results to (default: None)

Inputs: test_file (required), generate_report, log_file, properties, +1 more. Returns: result

generate_visualizationC

Generate visualizations of JMeter test results.

Args: jtl_file: Path to the JTL file containing test results visualization_type: Type of visualization to generate (time_series, distribution, comparison, html_report) output_file: Path to save the visualization

Returns: str: Path to the generated visualization file

Inputs: jtl_file (required), output_file (required), visualization_type (required). Returns: result

get_performance_insightsC

Get insights and recommendations for improving performance based on JMeter test results.

Args: jtl_file: Path to the JTL file containing test results

Returns: str: Performance insights and recommendations in a formatted string

Inputs: jtl_file (required). Returns: result

identify_performance_bottlenecksB

Identify performance bottlenecks in JMeter test results.

Args: jtl_file: Path to the JTL file containing test results

Returns: str: Bottleneck analysis results in a formatted string

Inputs: jtl_file (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between analyze_jmeter_results, get_performance_insights, and identify_performance_bottlenecks, as all three analyze JTL files and provide insights. However, their descriptions differentiate them enough to avoid major confusion.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with clear verb_noun structure, such as analyze_jmeter_results and execute_jmeter_test. The naming is uniform and predictable throughout the set.

    Tool Count5/5

    With 6 tools, the count is well-scoped for a JMeter server, covering key operations like test execution, result analysis, and visualization. Each tool serves a clear purpose without redundancy.

    Completeness4/5

    The toolset covers core JMeter workflows including test execution, result analysis, and visualization, but lacks tools for test creation or modification. This minor gap does not severely hinder typical agent tasks.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers