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

mcpprof

v0.1.1

Published

Transparent STDIO proxy that profiles MCP agent sessions — per-tool latencies, error rates, message counts.

Readme

mcpprof

A transparent STDIO proxy that profiles MCP (Model Context Protocol) agent sessions. See exactly what tools your AI agent calls, how long each takes, and where errors happen.

Think strace for MCP.

Demo

mcpprof session

The Problem

When you're building or debugging MCP servers, you're flying blind. You know the AI called something, but you can't see the actual message flow, don't know which tools are slow, and can't tell if errors are client-side or server-side. MCP Inspector lets you manually test servers, but there's nothing that instruments real sessions between a real client and server.

How It Works

mcpprof sits between any MCP client (Claude Code, Cursor, VS Code) and any MCP server. It intercepts all JSON-RPC messages flowing over STDIO, timestamps them, matches request/response pairs by ID to calculate per-tool latencies, and prints a performance report when the session ends.

MCP Client ──stdin──▸ [mcpprof] ──stdin──▸ MCP Server
MCP Client ◂──stdout── [mcpprof] ◂──stdout── MCP Server
                         │
                    stderr: live log
                    + session report

The proxy is completely transparent — the client and server don't know it's there. Reports go to stderr so they never interfere with the MCP protocol on stdout.

Install

npx mcpprof -- <your-server-command>
# or
npm install -g mcpprof

Usage

# Basic: wrap any MCP server
mcpprof -- node my-mcp-server.js

# Live mode: see messages as they flow
mcpprof --live -- python server.py

# Save JSON report
mcpprof --output report.json -- npx @modelcontextprotocol/server-filesystem /tmp

# Quiet mode: just the report, no live output
mcpprof --quiet -- node server.js

Output

┌──────────────────────────────────────────────────┐
│  mcpprof — Session Report
└──────────────────────────────────────────────────┘

  Session Summary
  ──────────────────────────────
  Duration:       4200ms
  Total messages: 17
  Client → Server: 9
  Server → Client: 8

  Message Breakdown
  ──────────────────────────────
  tool_call          5
  lifecycle          2
  tool_discovery     1
  notification       1

  Tool Call Performance
  ──────────────────────────────
  Total:      5 (4 ok, 1 err)
  Avg latency: 46ms
  p50 latency: 42ms
  p95 latency: 58ms

  Tool                     Calls    Avg        Errors
  search                   3        52ms       0
  read_file                2        35ms       1

Tech Stack

  • TypeScript, Node.js
  • Zero runtime dependencies (uses only Node stdlib: child_process, readline, events, fs)
  • Works with any MCP server that uses STDIO transport

The Hard Part

Matching async JSON-RPC request/response pairs. MCP messages can arrive in any order — a client sends requests with IDs 1, 2, 3 and responses might come back 2, 1, 3. Notifications (no ID) arrive mixed in. The profiler tracks pending requests in a Map keyed by ID, calculates latency when the matching response arrives, and reports unmatched requests as timeouts at session end.

License

MIT