Skip to main content
Glama

JMeter MCP Server

🚀 JMeter MCP 服务器

这是一个模型上下文协议 (MCP) 服务器,允许通过 MCP 兼容客户端执行 JMeter 测试。

[!重要] 📢 正在寻找 JMeter 中的 AI 助手?🚀 看看Feather Wand

人择光标风帆冲浪

📋 功能

  • 📊 以非 GUI 模式执行 JMeter 测试
  • 🖥️ 以 GUI 模式启动 JMeter
  • 📝 捕获并返回执行输出

🛠️ 安装

本地安装

  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 :以 GUI 模式启动 JMeter,但不按照 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 扩展名
  • 捕获并返回任何执行错误
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

模型上下文协议服务器允许 AI 助手通过自然语言命令执行和管理 JMeter 性能测试。

  1. 📋 功能
    1. 🛠️ 安装
      1. 本地安装
      2. 💻 MCP 使用
    2. 🏗️ MCP 配置
      1. ✨ 用例
        1. 🛑 错误处理

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            A comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.
            Last updated -
            6
            1
            TypeScript
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that enables executing and interacting with JMeter tests through MCP-compatible clients like Claude Desktop, Cursor, and Windsurf.
            Last updated -
            2
            Python
          • A
            security
            F
            license
            A
            quality
            A Model Context Protocol server that enables execution of JMeter performance tests through AI assistants and MCP-compatible clients like Claude, Cursor, and Windsurf.
            Last updated -
            2
            Python
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that enables AI assistants to communicate with each other using Inter-Process Communication, featuring natural language commands and cross-platform compatibility.
            Last updated -
            9
            78
            Python
            MIT License

          View all related MCP servers

          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/QAInsights/jmeter-mcp-server'

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