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

roxy-mcp

v0.2.2

Published

Roxy — Local Open-Source MCP Hub with Code Mode

Readme

Roxy — Open-Source MCP Hub with Code Mode

Roxy connects local (stdio) and remote (streamable-http / sse) MCP servers through a single MCP endpoint. Code Mode (search + execute) lets clients discover tool schemas on demand and call several tools in one script.

Connect your servers in Roxy and configure your AI client with http://localhost:4123/mcp.

Estimated tool context

Clients may load tool definitions into the model's context up front. Roxy exposes two Code Mode tools and returns compact signatures for the tools a client searches for.

The admin panel estimates the cost of tool definitions from their UTF-8 size. The table gives an illustrative comparison. Actual token use depends on the tool schemas, client, model tokenizer, and tool results.

| Setup (5 MCP servers, about 120 tools) | Tool definitions exposed | Estimated upfront context | Multi-tool chaining | | :--- | :--- | :--- | :--- | | Direct MCP connections | About 120 JSON Schemas | About 45,000 tokens | Each call and result is handled by the client | | Roxy Code Mode | search and execute | About 480 tokens | One script can run calls in parallel and filter results |


Key Features (Local Open-Source Edition)

  • 1 Unified MCP URL (/mcp + /sse): Works with OpenCode, Claude Code, Cursor, Claude Desktop, Windsurf, and any standard MCP client.
  • Code Mode Engine (QuickJS WASM Sandbox):
    • search({ query, namespace }) — Searches enabled tools across all connected MCPs and returns compact TypeScript signatures generated automatically from JSON Schema.
    • execute({ code }) — Runs LLM-written JavaScript in a confined QuickJS WASM sandbox (64MB memory cap, CPU interrupt timeout, zero filesystem/env access) with await tools.<namespace>.<tool>(args) and Promise.allSettled concurrency.
  • Official MCP Registry Store (registry.modelcontextprotocol.io):
    • Live-search, filter with quick-topic chips, and install thousands of remote (streamable-http / sse) and local (npx / uvx / docker) MCP servers directly from the Official MCP Registry.
  • Auto-Detect Local AI Apps & 1-Click Setup:
    • Automatically scans existing MCP configs on disk (OpenCode, Cursor, Claude Code, Claude Desktop, Windsurf, and VS Code) to import your servers & credentials into Roxy in one click, and writes Roxy's /mcp URL back into your apps with automatic .roxy.bak backups.
  • Custom MCPs & mcpServers JSON Import: Add any custom stdio, streamable-http, or sse MCP server, or paste an existing mcpServers JSON block.
  • Built-in Upstream Auth Vault:
    • Environment Variables for stdio subprocesses
    • Bearer Token / API Key & Custom Headers for remote HTTP/SSE MCPs
    • OAuth 2.1 (MCP OAuth discovery + Dynamic Client Registration RFC 7591 + PKCE + automatic token refresh)
    • Encrypted at rest locally in ~/.roxy/roxy.db using AES-256-GCM.
  • Local Admin Panel:
    • Context estimates for direct tool definitions and Code Mode
    • Per-server & per-tool enable/disable toggles
    • Built-in Code Mode Playground (search + execute)
    • Live Call Inspector streaming real-time search, execute, and upstream MCP tool calls over SSE

Quickstart

Use Node.js 22.13 or newer in the Node 22 series, or 23.4 or newer. Roxy uses built-in SQLite.

Option 1: Run from Source (Git Clone)

git clone https://github.com/roxy-tools/roxy-mcp.git
cd roxy-mcp
npm install
npm run build
npm start

For hot-reloading development:

npm run dev

Option 2: Run via CLI / npx

npx roxy-mcp

CLI flags:

-p, --port <number>     Port to listen on (default: 4123, env: ROXY_PORT)
-H, --host <string>     Host interface (default: 127.0.0.1, env: ROXY_HOST)
-d, --data-dir <path>   Data directory (default: ~/.roxy, env: ROXY_DATA_DIR)
    --no-open           Do not automatically open browser on startup

Option 3: Docker Compose

Pre-bundles Node/npx and Python/uvx so 1-click stdio MCPs work inside Docker out of the box:

docker compose up --build -d --wait

Then open http://localhost:4123.

Local deployment and config backups

Run Roxy on your own machine. The CLI listens on 127.0.0.1 by default, and Docker Compose publishes to host loopback. The admin API and MCP gateway share access to your configured tools without inbound authentication. Keep both endpoints off public and shared networks. Use trusted sources for local MCP commands, which run with the permissions of the Roxy process.

Roxy backs up an existing client config before changing it. The first backup uses .roxy.bak, and later changes create numbered backups. To roll back, copy the backup you want over the client config and restart the client. Backups may contain credentials from the original config.


Connect Your AI Client

OpenCode (opencode.json)

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "roxy": {
      "type": "remote",
      "url": "http://localhost:4123/mcp",
      "enabled": true
    }
  }
}

Claude Code

claude mcp add --transport http roxy http://localhost:4123/mcp

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "roxy": {
      "url": "http://localhost:4123/mcp"
    }
  }
}

Contributing & License

Contributions and pull requests are welcome — see CONTRIBUTING.md.

Licensed under the MIT License.