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

mitmmcp

v1.0.5

Published

MITM proxy that captures HTTP/HTTPS traffic during development and exposes it via MCP for querying by Claude Code

Readme

MITM MCP - Network Traffic Capture & Query System

A JavaScript-based MITM (Man-in-the-Middle) proxy that captures network requests during development and exposes them via Model Context Protocol (MCP) for querying by Claude Code.

What is it?

MITM MCP intercepts HTTP/HTTPS traffic from your browser or application, stores it in SQLite, and lets you query it through Claude Code. Perfect for debugging API calls, tracking errors, and understanding network behavior during development.

Key Features

  • Easy setup: No installation needed with npx
  • Capture focus: Filter capture to specific domains to keep database small and queries fast
  • Error tracking: Find failed requests (4xx/5xx) instantly
  • Query with Claude: Ask Claude to find requests, search bodies, filter by method/status
  • HTTPS support: Automatic certificate handling
  • Zero config: Works out of the box with sensible defaults

Installation

Prerequisites: Node.js 18+

No installation needed! Just use npx:

npx mitmmcp

The proxy starts on port 8080 and stores data in ~/.local/share/mitmmcp/ (or platform equivalent).

Quick Start

1. Start the Proxy

npx mitmmcp

# Optional: custom port or capture filter
npx mitmmcp --port 9090 --capture="*.test,localhost:*"

2. Configure Claude Code MCP Server

claude mcp add --transport stdio mitmmcp -- npx -y -p mitmmcp mitmmcp-server

Then restart Claude Code.

{
  "mcpServers": {
    "mitmmcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "-p", "mitmmcp", "mitmmcp-server"]
    }
  }
}

3. Configure Your Browser or Application

For browsers (launches separate Chrome instance with proxy):

# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --user-data-dir="$HOME/.chrome-proxy-profile" \
  --proxy-server="http://localhost:8080"

For applications:

export HTTP_PROXY=http://localhost:8080
export HTTPS_PROXY=http://localhost:8080

4. Query with Claude Code

Ask Claude to analyze captured traffic:

"Start capturing requests for *.myapp.test"
"Show me the most recent failed requests"
"Find all POST requests to /api/users"
"Get errors from third-party APIs triggered by my app at localhost:3000"
"Search for requests containing 'authentication' in the body"

CLI Options

mitmmcp --help

Options:
  -p, --port <port>           Proxy server port (default: 8080)
  -c, --capture <patterns>    Domain patterns to capture (e.g., "*.test,localhost:*")
  -d, --db-path <path>        Custom SQLite database file path
  -h, --help                  Show this help message

Documentation

Development

See docs/FURTHER_INFO.md for project structure.

Local Development Setup

git clone https://github.com/cloudshipco/mitmmcp.git
cd mitmmcp
npm install
npm run build
npm run proxy

Development Commands

npm run dev    # Run in development mode
npm run build  # Build
npm test       # Run tests

License

MIT

Contributing

Contributions welcome! Please open an issue or PR.