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

staticmcp-bridge

v0.0.2

Published

STDIO bridge for StaticMCP files

Readme

StaticMCP STDIO Bridge

A lightweight stdio bridge server that serves StaticMCP files.

How It Works

The StaticMCP Bridge acts as a translation layer between the MCP protocol and your static JSON files:

  1. Manifest: A mcp.json file describes available resources and tools
  2. Resources: Static JSON files in the resources/ directory
  3. Tools: Pre-computed tool responses in the tools/ directory structure
  4. Bridge: This server dynamically routes MCP requests to the appropriate JSON files

Learn more about StaticMCP at https://staticmcp.com.

Installation

Rust Version

cargo install staticmcp_stdio_bridge

Node.js Version

npm install -g staticmcp-bridge

Build from source

git clone https://github.com/StaticMCP/stdio_bridge
cd stdio_bridge

# rust version
cargo build --release

# node.js version
npm run build

Quick Start

1. Generate StaticMCP Content

Use a generator like docusaurus-staticmcp to convert your documentation into StaticMCP format:

npx docusaurus-staticmcp ./my-docusaurus-site --output ./my-staticmcp

2. Directory Structure

my-staticmcp/
  ├── mcp.json                       # Manifest file
  ├── resources/
  │     ├── docs/getting-started.json
  │     └── blog/2024-01-15-welcome.json
  └── tools/
        └── list_docs/
              ├── docs.json
              ├── blog.json
              └── all.json

3. Run the Bridge

Rust Version

staticmcp_stdio_bridge ./my-staticmcp

Or serve from a remote URL:

staticmcp_stdio_bridge https://mysite.com/my-staticmcp

Node.js Version

npx staticmcp-bridge ./my-staticmcp

Or serve from a remote URL:

npx staticmcp-bridge https://mysite.com/my-staticmcp

Usage with MCP Inspector

Test your StaticMCP server using the official MCP Inspector:

npx @modelcontextprotocol/inspector staticmcp_stdio_bridge https://yourdomain.com/your-staticmcp
npx @modelcontextprotocol/inspector npx staticmcp-bridge https://yourdomain.com/your-staticmcp

File Path Conventions

The bridge automatically maps MCP requests to file paths:

Resources

  • docs://getting-startedresources/getting-started.json
  • blog://2024-01-15-welcomeresources/2024-01-15-welcome.json
  • docs://docs/getting-startedresources/docs/getting-started.json
  • blog://blog/2024-01-15-welcomeresources/blog/2024-01-15-welcome.json

Tools

  • list_docs(type="docs")tools/list_docs/docs.json
  • list_docs(type="blog")tools/list_docs/blog.json
  • list_docs(type="all")tools/list_docs/all.json

Response Format

Resource Responses

{
  "contents": [
    {
      "uri": "docs://getting-started",
      "mimeType": "text/markdown",
      "text": "# Getting Started\n..."
    }
  ]
}

Tool Responses

{
  "content": [
    {
      "type": "text",
      "text": "Tool response text"
    }
  ]
}

Deployment Options

You can deploy your StaticMCP files to any static hosting service:

  • Vercel
  • Netlify
  • GitHub Pages
  • AWS S3
  • CloudFlare CDN

Building StaticMCP Content

Use docusaurus-staticmcp or your own scripts to generate the required files.

Advanced Features

  • Error Handling: Returns MCP error responses for missing files
  • CORS Support: Handles CORS headers when serving over HTTP
  • Caching: All responses are highly cacheable