npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-stress

v0.2.1

Published

Stress testing tool for MCP servers

Readme

mcp-stress

Stress testing tool for MCP (Model Context Protocol) servers.

Install

# npm
npx mcp-stress <command>
npm install -g mcp-stress

# JSR / Deno
deno install -g -A --name mcp-stress jsr:@dgellow/mcp-stress/cli

Commands

run

Execute a stress test against an MCP server.

# Stdio transport (spawns the server)
mcp-stress run -d 30 -c 10 --tool echo -- node my-server.js

# HTTP transport
mcp-stress run -d 30 -c 10 --url http://localhost:3000/mcp

# Find max throughput (auto-scales concurrency)
mcp-stress run -p find-ceiling -d 120 -c 50 -- node my-server.js

# CI mode: JSON output + assertions
mcp-stress run --json --assert "p99 < 500ms" --assert "error_rate < 1%" -- node my-server.js

# Live browser dashboard
mcp-stress run --live -d 60 -c 10 -o results.ndjson -- node my-server.js

# Send exactly N requests (useful for debugging)
mcp-stress run -n 5 -v -- node my-server.js

Options:

| Flag | Description | | ------------------- | --------------------------------------------------------------------------------- | | -p, --profile | Workload profile (default: tool-flood) | | -d, --duration | Test duration in seconds (default: 10) | | -n, --requests | Stop after N requests (overrides duration) | | -c, --concurrency | Peak concurrent workers (default: 1) | | -t, --timeout | Request timeout in ms (default: 30000) | | --tool | Target a specific tool by name | | --shape | Load shape: constant, linear-ramp, exponential, step, spike, sawtooth | | -o, --output | NDJSON output file path | | --live | Open real-time browser dashboard | | --json | Output JSON summary to stdout | | --assert | Threshold assertion, repeatable (e.g. "p99 < 500ms") | | --seed | PRNG seed for reproducibility | | --sse | Use legacy HTTP+SSE transport (default: streamable-http) | | -v, --verbose | Log every request/response |

chart

Generate an interactive HTML report from a previous run.

mcp-stress chart results.ndjson --open

compare

Compare two test runs and detect regressions.

mcp-stress compare baseline.ndjson current.ndjson --open
mcp-stress compare baseline.ndjson current.ndjson --json --assert "p99_delta < 10%"

diagnose

Probe server connectivity and protocol compliance.

mcp-stress diagnose -- node my-server.js
mcp-stress diagnose --url http://localhost:3000/mcp

discover

Enumerate server capabilities (tools, resources, prompts).

mcp-stress discover -- node my-server.js

profiles / shapes

List available workload profiles and load shapes.

mcp-stress profiles
mcp-stress shapes

Transports

  • stdio (default): Spawns the server as a subprocess. Use -- command [args].
  • Streamable HTTP: Connect to a running server. Use --url.
  • SSE (legacy): Use --url with --sse.

Output

All test data is written as NDJSON (newline-delimited JSON) with three event types:

  • meta — run parameters and configuration
  • request — individual request results (method, latency, ok/error)
  • summary — aggregate statistics

Development

./scripts/lint     # Format check + type check
./scripts/test     # Run tests
./scripts/build    # Compile binary + npm packages
./scripts/start    # Run the CLI