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-bench

v0.0.2

Published

Studio for running and debugging MCP servers

Readme

mcp-bench

An interactive tool for exploring and testing MCP (Model Context Protocol) servers over HTTP.

Connect to any MCP server, browse its tools, prompts, and resources, and execute them - all from a clean web UI.

Features

  • Browse and execute tools, prompts, and resources exposed by an MCP server
  • OAuth support with Dynamic Client Registration (DCR) and PKCE
  • Automatic token refresh when access tokens expire
  • Falls back to manual Bearer token input when OAuth isn't available
  • Handles both JSON and SSE (Server-Sent Events) MCP transport responses
  • Dark-themed, minimal UI with no external styling dependencies

Installation

npm install -g mcp-bench

Or run directly without installing:

npx mcp-bench --url=http://your-mcp-server.example.com/mcp

Usage

mcp-bench --url=<MCP server URL>

This starts a local web server on a random available port, opens your browser, and presents a UI to interact with the MCP server.

Options

| Flag | Description | |------|-------------| | --url=<url> | (required) The HTTP URL of the MCP server to connect to |

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | PORT | Pin the local web server to a specific port | auto (random available) |

Examples

# Connect to a local MCP server
mcp-bench --url=http://localhost:8080/mcp

# Connect to a remote MCP server on a custom port
PORT=4000 mcp-bench --url=https://mcp.example.com/api

# Run via npx without global install
npx mcp-bench --url=http://localhost:8080/mcp

Authentication

OAuth (automatic)

When the MCP server returns 401 Unauthorized, mcp-bench will:

  1. Check /.well-known/oauth-protected-resource on the MCP server
  2. Discover the authorization server via /.well-known/oauth-authorization-server
  3. If the server supports Dynamic Client Registration, register automatically and redirect you to login
  4. After authorization, the token is stored in-session and refreshed automatically on expiry

Manual Token

If the MCP server doesn't support OAuth discovery or DCR, you'll be prompted to paste a Bearer token manually.

Development

# Install dependencies
npm install

# Run the Vite dev server (with HMR) for the frontend
npm run dev:client

# In another terminal, start the backend pointed at your MCP server
node bin/cli.js --url=http://localhost:8080/mcp

# Build the frontend for production
npm run build:client

The Vite dev server proxies /api requests to http://localhost:3456, so both can run simultaneously during development.

How It Works

┌─────────────┐       ┌──────────────┐       ┌────────────────┐
│   Browser   │──────▶│  mcp-bench   │──────▶│   MCP Server   │
│  (React UI) │◀──────│  (Express)   │◀──────│  (target URL)  │
└─────────────┘       └──────────────┘       └────────────────┘
                            │
                            ▼
                    ┌───────────────┐
                    │  OAuth Server │  (if auth required)
                    └───────────────┘
  • The Express server acts as a proxy between the browser and the MCP server
  • It manages sessions, OAuth tokens, and MCP session IDs
  • The React frontend is built with Vite and served as static assets by Express

License

ISC