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

@mcp1.ai/wrapper

v1.0.0

Published

Express wrapper for MCP (Model Context Protocol) server

Downloads

4

Readme

MCP Wrapper

A simple Express server wrapper for MCP (Model Context Protocol) that forwards HTTP JSON-RPC requests to any command-line process following the JSON-RPC 2.0 protocol, and returns the responses to the client.

Features

  • Receives JSON-RPC 2.0 requests via HTTP
  • Forwards requests to the standard input of a specified command-line process
  • Captures JSON-RPC responses from the standard output of the process
  • Returns responses to the HTTP client
  • Automatically restarts crashed processes
  • Flexible configuration of target process and arguments

Installation

# Install globally
npm install -g @mcp1.ai/wrapper

# Or install as a project dependency
npm install --save @mcp1.ai/wrapper

Usage

Starting the Server

When installed globally, you can use the CLI directly:

# Default: uses npx -y @modelcontextprotocol/server-everything
mcp1-wrapper

# Specify a custom process and arguments
mcp1-wrapper <process> [arg1 arg2 ...]

# Example: using uvx mcp-server-fetch
mcp1-wrapper uvx mcp-server-fetch

# Or run a custom JavaScript script
mcp1-wrapper node my-custom-script.js

Or when used as a module in your project:

# Using the package in your project
node node_modules/.bin/mcp1-wrapper <process> [arg1 arg2 ...]

Sending Requests

Once the server is running, you can send JSON-RPC 2.0 requests via HTTP POST to http://localhost:3000.

For example, using curl:

curl -X POST http://localhost:3000 \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "initialize",
    "params": {
      "protocolVersion": "0.1.0",
      "capabilities": {
        "tools": true
      },
      "clientInfo": {
        "name": "MCP Test Client",
        "version": "1.0.0"
      }
    }
  }'

JSON-RPC Request Examples

The package includes several predefined JSON-RPC request examples:

  • initialize.json - Initialize the MCP server
  • tools-list.json - Get a list of available tools
  • tools-call.json - Call a specific tool

You can use these example files to quickly test the server:

# Use curl to send the tools-list request
curl -X POST http://localhost:3000 -H "Content-Type: application/json" -d @path/to/tools-list.json

Automatic Process Restart

The Express server monitors the child process status and automatically restarts the process if it unexpectedly exits. This ensures high availability of the service, even if the underlying process crashes.

The restart logic includes:

  • Detecting process exit events
  • Restarting the process after a short delay (to avoid crash loops)
  • Handling process switching in request processing

Notes

  • The server runs on port 3000 by default
  • Request timeout is set to 30 seconds
  • Process restart has a 1-second delay to avoid crash loops
  • Child processes are automatically terminated when the server is shut down

License

MIT