MCP Server (for Claude)
Overview
LoadDensity ships a Model Context Protocol server that exposes the framework as a set of MCP tools. With it, Claude (Desktop, Code, or any MCP client) can drive load tests, generate reports, import HAR files, and inspect persisted runs without leaving the chat.
Install
pip install "je_load_density[mcp]"
Run the server
python -m je_load_density.mcp_server
The server speaks MCP over stdio. Wire it into the client of your
choice (Claude Desktop claude_desktop_config.json, Claude Code,
etc.):
{
"mcpServers": {
"loaddensity": {
"command": "python",
"args": ["-m", "je_load_density.mcp_server"]
}
}
}
Exposed tools
Tool |
Purpose |
|---|---|
|
Run a Locust-backed load test (HTTP / WS / gRPC / MQTT / Socket). |
|
Execute an action JSON document. |
|
Scaffold a project skeleton at PATH. |
|
List every |
|
Convert a HAR file into a runnable action JSON. |
|
Emit any combination of HTML / JSON / XML / CSV / JUnit / summary. |
|
Return aggregated stats (totals, per-name p50/p90/p95/p99). |
|
Save the current records into a SQLite database. |
|
List recent persisted runs. |
|
Fetch records belonging to a saved run. |
|
Drop in-memory records before a new run. |