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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mcp-tunnel/wrapper

v0.2.4

Published

MCP tunnel wrapper - intercepts HTTP requests and tunnels them via Ably

Readme

@mcp-tunnel/wrapper

Wrap MCP servers to access internal APIs through Ably Pub/Sub

npm version License: MIT

Overview

The MCP Tunnel wrapper enables Model Context Protocol (MCP) servers to access internal APIs behind firewalls. It intercepts HTTP requests and tunnels them through Ably Pub/Sub to a worker running on your private network.

Core Features:

  • Universal HTTP interception - Works with fetch, axios, http/https, and all Node.js HTTP clients
  • Transparent - MCP servers work without code changes
  • Firewall-friendly - No inbound ports required
  • Debug logging - Optional file-based logging for troubleshooting

Installation

npm install -g @mcp-tunnel/wrapper

Quick Start

1. Set Up Environment

export ABLY_API_KEY=your-ably-api-key
export TENANT_ID=your-tenant-id

2. Test the Tunnel

mcp-tunnel --test https://httpbin.org/get

3. Run with MCP Server

mcp-tunnel --server ./my-mcp-server.js

Usage

Command Line

mcp-tunnel [options]

Options:
  --server <path>         Path to MCP server executable/script
  --server-args <args>    Arguments to pass to MCP server (space-separated)
  --tenant-id <id>        Tenant ID (or use TENANT_ID env var)
  --ably-key <key>        Ably API key (or use ABLY_API_KEY env var)
  --timeout <ms>          Request timeout in milliseconds (default: 30000)
  --test <url>            Test mode - make a single request and exit
  --help, -h              Show help message

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "my-internal-api": {
      "command": "npx",
      "args": [
        "@mcp-tunnel/wrapper",
        "--server",
        "./my-mcp-server.js"
      ],
      "env": {
        "ABLY_API_KEY": "your-ably-api-key",
        "TENANT_ID": "your-tenant-id"
      }
    }
  }
}

Environment Variables

  • ABLY_API_KEY (required) - Ably API key with publish/subscribe capabilities
  • TENANT_ID (required) - Unique tenant identifier
  • TUNNEL_TIMEOUT (optional) - Request timeout in milliseconds (default: 30000)
  • MCP_TUNNEL_DEBUG (optional) - Enable debug logging to .mcp-tunnel/wrapper.log

Debugging

Enable detailed logging:

export MCP_TUNNEL_DEBUG=1
mcp-tunnel --server ./my-mcp-server.js

# In another terminal
tail -f .mcp-tunnel/wrapper.log

Debug logs include:

  • HTTP request/response interception
  • Ably connection status
  • Error stack traces

How It Works

  1. The wrapper spawns your MCP server as a child process
  2. It injects an HTTP interceptor using @mswjs/interceptors
  3. All HTTP requests are intercepted and sent through Ably Pub/Sub
  4. A worker on your private network executes the requests
  5. Responses are returned through Ably back to your MCP server

Requirements

  • Worker: You need to deploy the worker on your private network. See mcp-tunnel-worker
  • Ably Account: Free tier available at ably.com
  • Node.js: 18 or later

Documentation

License

MIT - see LICENSE

Support