🚀 JMeter MCP 服务器
这是一个模型上下文协议 (MCP) 服务器,允许通过 MCP 兼容客户端执行 JMeter 测试。
[!重要] 📢 正在寻找 JMeter 中的 AI 助手?🚀 看看Feather Wand
📋 功能
📊 以非 GUI 模式执行 JMeter 测试
🖥️ 以 GUI 模式启动 JMeter
📝 捕获并返回执行输出
🛠️ 安装
本地安装
安装
uv
:确保 JMeter 已安装在您的系统上并可通过命令行访问。
⚠️重要提示:请确保 JMeter 可执行。你可以运行以下命令来执行此操作:
配置
.env
文件,具体参考.env.example
文件。
💻 MCP 使用
使用 MCP 兼容客户端(例如 Claude Desktop、Cursor、Windsurf)连接到服务器
向服务器发送提示:
MCP 兼容客户端将使用可用的工具:
execute_jmeter_test
:以 GUI 模式启动 JMeter,但不按照 JMeter 设计执行测试execute_jmeter_test_non_gui
:以非 GUI 模式执行 JMeter 测试(默认模式可获得更好的性能)
🏗️ MCP 配置
将以下配置添加到您的 MCP 客户端配置中:
✨ 用例
LLM 支持的结果分析:收集和分析测试结果。
调试:以非 GUI 模式执行测试进行调试。
🛑 错误处理
服务器将:
验证测试文件是否存在
检查文件是否具有 .jmx 扩展名
捕获并返回任何执行错误
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
模型上下文协议服务器允许 AI 助手通过自然语言命令执行和管理 JMeter 性能测试。
Related MCP Servers
- AsecurityFlicenseAqualityA 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
- AsecurityFlicenseAqualityA 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
- AsecurityAlicenseAqualityA 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 -9102MIT License
- AsecurityFlicenseAqualityA collection of Model Context Protocol servers providing advanced capabilities for AI assistants including professional accuracy enforcement, tool safety protocols, user preference management, and intelligent context monitoring.Last updated -5