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-drop/bridge

v0.1.0

Published

Local bridge server that connects @mcp-drop/core to any MCP server

Readme

@mcp-drop/bridge

Local bridge server that connects @mcp-drop/core to MCP servers.

@mcp-drop/bridge is a small HTTP proxy that can:

  • spawn local MCP servers over stdio
  • connect to remote MCP servers over SSE
  • expose all connected tools through a browser-friendly HTTP API

This is the component that allows @mcp-drop/core to use MCP tools from the browser.

Installation

Run directly with npx

npx @mcp-drop/bridge

Install globally

npm install -g @mcp-drop/bridge

Then run:

mcp-drop-bridge

Install in a project

npm install @mcp-drop/bridge

Run it locally:

npx mcp-drop-bridge

Quick Start

Start the bridge:

npx @mcp-drop/bridge

Then point @mcp-drop/core at it:

<mcp-drop
  mcp-servers='[{"name":"bridge","url":"http://localhost:3333"}]'
></mcp-drop>

CLI Usage

npx @mcp-drop/bridge [--server name,command,arg1,arg2] [--sse name,url]

You can repeat --server and --sse multiple times.

Options

| Flag | Format | Description | |---|---|---| | --server | name,command,arg1,arg2,... | Connects a local MCP server over stdio by spawning a process. | | --sse | name,url | Connects a remote MCP server exposed over SSE. |

Environment Variables

| Variable | Default | Description | |---|---|---| | PORT | 3333 | Port used by the HTTP bridge server. |

Usage Examples

Start with no MCP servers

npx @mcp-drop/bridge

Connect a local filesystem server

npx @mcp-drop/bridge \
  --server "filesystem,npx,-y,@modelcontextprotocol/server-filesystem,/Users/you/workspace"

Connect a remote SSE server

npx @mcp-drop/bridge \
  --sse "myserver,https://your-mcp-server.example/sse"

Connect multiple servers at startup

npx @mcp-drop/bridge \
  --server "filesystem,npx,-y,@modelcontextprotocol/server-filesystem,/Users/you/workspace" \
  --server "github,npx,-y,@modelcontextprotocol/server-github" \
  --sse "figma,https://your-mcp-server.example/sse"

Run on a custom port

PORT=4444 npx @mcp-drop/bridge

Connect a custom MCP server you wrote

npx @mcp-drop/bridge \
  --server "hello,node,/absolute/path/to/hello-server.js"

How Tool Names Work

The bridge namespaces tool names by server.

If the connected server is named filesystem and it exposes a tool named read_file, the bridge returns it as:

filesystem__read_file

This lets multiple MCP servers expose similarly named tools without collisions.

HTTP API

The bridge exposes an HTTP API used by @mcp-drop/core.

GET /health

Returns bridge status and connected server names.

Example response:

{
  "status": "ok",
  "servers": ["filesystem", "github"],
  "version": "0.1.0"
}

GET /servers

Returns the list of connected server names.

Example response:

{
  "servers": ["filesystem", "github"]
}

POST /tools/list

Returns all tools from all connected servers in JSON-RPC format.

Example request:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}

Example response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "tools": [
      {
        "name": "filesystem__read_file",
        "description": "[filesystem] Read a file",
        "inputSchema": {
          "type": "object"
        }
      }
    ]
  }
}

POST /tools/call

Calls a tool on a connected server.

Example request:

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "filesystem__read_file",
    "arguments": {
      "path": "/tmp/example.txt"
    }
  }
}

The name field must use the serverName__toolName format.

POST /servers/connect

Connects a new MCP server at runtime.

For stdio:

{
  "name": "filesystem",
  "type": "stdio",
  "command": "npx",
  "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/workspace"]
}

For SSE:

{
  "name": "remote",
  "type": "sse",
  "url": "https://your-mcp-server.example/sse"
}

Success response:

{
  "success": true,
  "tools": []
}

Integration with @mcp-drop/core

Point the chat component to the bridge URL:

<mcp-drop
  mcp-servers='[{"name":"bridge","url":"http://localhost:3333"}]'
  persist-key
></mcp-drop>

If you run the bridge on a different port, use that port in the url.

Development

From the monorepo root:

npm run bridge

Or directly in the package:

npm run start --workspace=packages/bridge

Notes

  • The bridge handles MCP connectivity; it does not proxy Anthropic API requests.
  • Browser clients talk to the bridge over HTTP with CORS enabled.
  • Connected servers are kept in memory and disconnected on process shutdown.
  • Ctrl+C triggers a graceful shutdown and closes connected MCP clients.

License

MIT