roxy-mcp v0.2.2 Local OSS is live on npm · Roxy Cloud is Coming Soon →

Every MCP server. One endpoint.
99% less tool context.

Roxy unifies local stdio and remote streamable-http / sse MCP servers behind http://localhost:4123/mcp. Instead of dumping hundreds of JSON Schemas into every prompt, Roxy’s Code Mode exposes just search and execute.

OpenCode · Claude Code · Cursor · VS Code · Windsurf · Claude Desktop QuickJS WASM Sandbox (64 MB cap) Local AES-256-GCM Vault + OAuth 2.1
http://127.0.0.1:4123 — Interactive Preview (click tabs & toggles)
SSE Stream Connected
Roxy OSS Local v0.2.2
MCP Hub & Code Mode Gateway
Scan Local Apps Import JSON + Add Custom MCP
✦ Unified Code Mode Endpoint 5/5 MCPs online · 120 tools indexed behind 2 Code Mode tools (search + execute)
Direct tools (est.): ~45.0k tokens → With Code Mode: ~480 tokens ~98.9% less context (~44.5k saved)
⛓ http://localhost:4123/mcp
GitHub Copilot MCP tools.github.* streamable-http · OAuth 2.1
https://api.githubcopilot.com/mcp/
49/49 tools
Linear Workspace tools.linear.* sse · OAuth PKCE
https://mcp.linear.app/sse
28/28 tools
PostgreSQL Local tools.postgres.* stdio · AES-256 env
npx -y @modelcontextprotocol/server-postgres
18/18 tools
Slack Team tools.slack.* stdio · npx
npx -y @modelcontextprotocol/server-slack
14/14 tools
Git & Repo Inspector tools.git.* stdio · uvx
uvx mcp-server-git --repository .
11/11 tools
Cloudflare API MCP Remote HTTP

Manage Workers, DNS, KV, R2, and D1 with OAuth Dynamic Client Registration.

tools.cloudflare.*
Playwright Browser Local npx

Headless & headed browser automation, DOM snapshots, and E2E flows.

tools.playwright.*
Sentry Issues & Traces Remote HTTP

Query production exceptions, release regressions, and distributed traces.

tools.sentry.*
Qdrant Vector Memory Local uvx

Semantic code and document retrieval backed by Python uvx stdio.

tools.qdrant.*
1. search({ query: "issues" }) Compact TS Signatures
tools.github.list_issues
tools.github.list_issues(input: {
  owner: string;
  repo: string;
  state?: "OPEN" | "CLOSED";
  labels?: string[];
}): Promise<unknown>
tools.slack.post_message
tools.slack.post_message(input: {
  channel: string;
  text: string;
}): Promise<unknown>
2. execute({ code }) — QuickJS WASM
// Chain GitHub + Slack in 1 turn inside QuickJS WASM (64MB cap)
const issues = await tools.github.list_issues({
  owner: "roxy-tools",
  repo: "roxy-mcp",
  state: "OPEN",
  labels: ["bug"]
});

await tools.slack.post_message({
  channel: "#eng-triage",
  text: `Found ${issues.length} open bug(s) in roxy-mcp`
});

return { openBugs: issues.length, notifiedChannel: "#eng-triage" };
✓ Ready · Click “Run Code” above to execute inside Roxy’s isolated QuickJS WASM runtime.
execute execute (2 upstream sub-calls) Promise.allSettled([tools.github.*, tools.linear.*])
OK · 41ms · /mcp
upstream_tool tools.github.list_issues { "owner": "roxy-tools", "repo": "roxy-mcp" }
OK · 24ms · github
upstream_tool tools.linear.list_cycles { "teamId": "ENG" }
OK · 17ms · linear
search search({ query: "issue", limit: 10 }) Returned 6 compact TypeScript signatures
OK · 2ms · /mcp
The MCP Context Bottleneck

Stop burning 45,000 tokens before you type a single word.

Standard MCP clients inject every connected server’s verbose JSON Schema into the system prompt on every turn. Roxy collapses hundreds of tools behind two static Code Mode primitives.

Without Roxy · Direct MCP Connections
~45,000 tokens

Illustrative upfront schema load across 5 MCP servers (~120 tools)

  • ✕ Upfront schema tax: ~120 full JSON Schemas serialize into every single conversation turn.
  • ✕ Sequential LLM ping-pong: Chaining 5 tool calls forces 5 slow model inference round-trips and dumps raw intermediate JSON into context.
  • ✕ Duplicated configs & secrets: Scattered across opencode.json, .cursor/mcp.json, .claude.json, and VS Code.
With Roxy · Code Mode Gateway
~480 tokens

Constant 2-tool footprint (search + execute) whether you connect 5 or 50 servers

  • ✓ On-demand TypeScript signatures: search() converts JSON Schema into compact TypeScript types only when needed.
  • ✓ Single-turn orchestration: execute() runs loops, Promise.allSettled, and filtering in QuickJS—returning only the distilled answer.
  • ✓ 1 URL everywhere: Point every coding agent on your laptop to http://localhost:4123/mcp.
Interactive Upfront Context Estimator
Drag to estimate upfront tool-definition context for 5 MCP servers (~120 tools):
1 MCP 20 MCPs
Direct JSON Schemas
~45,000 tokens
Roxy Code Mode
~480 tokens
✦ Result: 98.9% saved (~44,520 tokens freed per turn)
Code Mode Engine · QuickJS WASM

LLMs write better TypeScript & JavaScript than sequential tool JSON.

Inspired by programmatic tool-calling architectures, Roxy compiles upstream JSON Schemas into clean TypeScript signatures and executes agent scripts inside a deterministic WebAssembly sandbox.

AI Clients connect to localhost:4123/mcp, routed through Roxy's search and QuickJS WASM execute engine to upstream stdio, HTTP, and SSE MCP servers. AI CODING CLIENTS OpenCode Claude Code Cursor VS Code Windsurf Claude App :4123/mcp ROXY GATEWAY (LOCAL 127.0.0.1) 1. search() JSON Schema → TS Ranked token lookup 2. execute() QuickJS WASM VM 64MB · 0 FS/Net/Env SQLite + AES-256-GCM Vault (~/.roxy/roxy.db) OAuth 2.1 PKCE + DCR · Bearer · Headers · Stdio Env UPSTREAM MCP SERVERS stdio · npx / uvx / docker streamable-http · OAuth 2.1 sse · Remote & Custom APIs
1 On-Demand Discovery via search()
schema-to-ts

Agents query across all enabled namespaces and receive concise, JSDoc-annotated TypeScript call paths instead of sprawling JSON Schema trees.

// Agent searches enabled namespaces on demand:
search({ query: "pull request", namespace: "github", limit: 5 });

// Roxy returns exact callable paths + compact TS types:
tools.github.create_pull_request(input: {
  /** Branch to merge into */
  base: string;
  /** Branch containing changes */
  head: string;
  owner: string;
  repo: string;
  title: string;
  body?: string;
  draft?: boolean;
}): Promise<unknown>
2 Parallel Chaining via execute()
quickjs-emscripten

One script invokes multiple MCP servers concurrently, filters large payloads in memory, and returns only the exact fields the model needs.

// Runs inside confined QuickJS WASM (no FS, no env, no raw net)
const [prs, dbRows] = await Promise.allSettled([
  tools.github.list_pull_requests({
    owner: "roxy-tools",
    repo: "roxy-mcp",
    state: "open"
  }),
  tools.postgres.query({
    sql: "SELECT count(*) FROM deployments WHERE ok = true"
  })
]);

return {
  openPrTitles: prs.status === "fulfilled"
    ? prs.value.map((p) => p.title)
    : [],
  deploys: dbRows.status === "fulfilled" ? dbRows.value : null
};
64 MB RAM Cap
Per-execution QuickJS WASM heap & 1 MB stack ceiling
CPU Interrupts
Deterministic deadline handler prevents infinite loops (1s–120s)
Zero Host Access
No filesystem, environment variables, timers, or arbitrary sockets
Proxy-Bridged Tools
Only enabled tools.<ns>.<tool> & search() are reachable
Local Open-Source Edition

Everything an MCP gateway should ship out of the box.

Built with TypeScript, Express 5, built-in Node SQLite, and QuickJS WASM—running 100% locally on 127.0.0.1 under the MIT License.

Unified /mcp & /sse Gateway

Serves modern Streamable HTTP (/mcp) and Legacy SSE (/sse) simultaneously, pushing real-time notifications/tools/list_changed events whenever upstream servers change.

Streamable HTTP SSE Fallback Live Sync

Official MCP Registry Store

Browse, live-search, and install thousands of servers directly from registry.modelcontextprotocol.io—supporting remote HTTP/SSE and local npx, uvx, and docker packages.

npx uvx docker Remote

Auto-Detect Local AI Apps

Scans existing MCP configs across OpenCode, Cursor, Claude Code, Claude Desktop, Windsurf, and VS Code—importing servers in one click and saving .roxy.bak safety backups before writing.

JSONC Parser .roxy.bak Backups 6 Clients

AES-256-GCM Vault & OAuth 2.1

Encrypts stdio env vars, Bearer tokens, custom headers, and OAuth 2.1 credentials at rest in ~/.roxy/roxy.db—complete with OAuth discovery, RFC 7591 Dynamic Client Registration, and PKCE.

AES-256-GCM OAuth 2.1 PKCE RFC 7591 DCR

Granular Per-Tool Controls

Toggle entire servers or mute individual high-risk / noisy tools without dropping upstream connections, backed by UTF-8 context token estimates in the Admin UI.

Per-Tool Mute UTF-8 Token Estimator

Playground & Live SSE Inspector

Prototype multi-MCP scripts in the built-in Code Mode Playground and inspect every live search, execute, and upstream sub-call latency over Server-Sent Events.

Live SSE Stream Sub-Call Timings
60-Second Setup

Start Roxy locally. Wire any AI client once.

Run via npx roxy-mcp, Docker Compose (with Node/npx and Python/uvx pre-bundled), or straight from source.

1. Launch Roxy Hub

Listens on 127.0.0.1:4123 by default and opens the local Admin Panel.

# Start local MCP Hub + Admin UI on http://127.0.0.1:4123
npx roxy-mcp

# Optional flags:
#   -p, --port <number>     Port (default: 4123, env: ROXY_PORT)
#   -H, --host <string>     Host (default: 127.0.0.1, env: ROXY_HOST)
#   -d, --data-dir <path>   SQLite + Vault path (default: ~/.roxy)
#       --no-open           Do not auto-open browser
Requires Node.js ^22.13.0 or >=23.4.0 (uses built-in node:sqlite). Published with npm SLSA provenance.

2. Connect Your AI Client

Use 1-Click Connect inside the Admin UI, or paste the snippet for ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "roxy": {
      "type": "remote",
      "url": "http://localhost:4123/mcp",
      "enabled": true
    }
  }
}
Endpoints: Streamable HTTP at http://localhost:4123/mcp (recommended) · Legacy SSE fallback at http://localhost:4123/sse.
Roxy Cloud · Coming Soon

Love Roxy locally?
Roxy Cloud is coming soon.

Roxy’s local open-source edition is MIT-licensed and free forever on your machine. Next, we’re bringing the same zero-bloat Code Mode architecture to hosted cloud workspaces for teams and background agents.

✦ Hosted Remote Gateway

Connect cloud coding agents, CI pipelines, mobile, and web assistants via a single authenticated HTTPS MCP endpoint.

✦ Team Vault & Managed OAuth

Share pre-authorized MCP connections, RBAC policies, and auto-refreshing OAuth 2.1 tokens safely across your org.

✦ Zero-Laptop Cloud Sandboxes

Offload container & stdio subprocesses from laptop RAM to isolated, instant-wake cloud micro-sandboxes.

✦ Shared Workflows & Audit Logs

Publish reusable multi-MCP Code Mode workflows and monitor team-wide tool call traces, errors, and token savings.

Request Roxy Cloud Early Access

Want early access for yourself or your engineering team? Reach us directly at info@roxy.tools or request an invite below.

Roxy Local OSS
Available Today · MIT
Roxy Cloud
Coming Soon · Hosted
Open-Source Roadmap

What’s shipping next in OSS

Follow progress or contribute PRs at github.com/roxy-tools/roxy-mcp.

roxy-mcp v0.2.2 on npm Shipped ✓

Public CLI via npx roxy-mcp with automated GitHub Actions Trusted Publishing & SLSA provenance.

Idle Auto-Sleep & Lazy Wake for stdio Planned

Cache discovered tool schemas in SQLite, put idle local subprocesses to sleep to save RAM, and wake on call.

Human-in-the-Loop Tool Approval Planned

Per-tool Allow / Ask / Block policies with live approval prompts in the Admin UI before destructive calls.

Saved Workflows & roxy --stdio Mode Planned

Save multi-MCP Playground scripts as reusable tools.workflows.* virtual tools, plus direct stdio client mode.

Technical FAQ

Frequently asked questions

Architecture, security model, local config backups, and Roxy Cloud details.

How does Roxy cut upfront MCP context from ~45,000 tokens to ~480 tokens?
Instead of returning 100+ raw JSON Schema tool definitions on tools/list, Roxy exposes only two tools: search and execute (~480 tokens). When your agent needs a capability, it calls search({ query, namespace }) to receive compact TypeScript signatures generated from JSON Schema, and then invokes one or many tools inside execute({ code }).
Is running LLM-generated JavaScript inside execute safe?
execute runs inside an isolated QuickJS WebAssembly VM (quickjs-emscripten) with a hard 64 MB memory cap, 1 MB max stack, and a CPU interrupt deadline (default 60s, max 120s). The sandbox has zero access to your host filesystem, environment variables, or network sockets—it can only call search() and the enabled upstream MCP tools you configured in Roxy.
Where are my API keys and OAuth tokens stored?
100% locally on your machine. Roxy stores configuration in ~/.roxy/roxy.db and encrypts all credentials (stdio environment variables, Bearer tokens, custom headers, and OAuth 2.1 refresh/access tokens) at rest using AES-256-GCM with a local 0600 master key (or your own ROXY_SECRET_KEY). Keep Roxy bound to 127.0.0.1 off public/shared networks.
Will 1-Click Client Setup overwrite my existing Cursor or OpenCode config?
Before Roxy modifies any client config file, it writes an atomic backup next to your original file (.roxy.bak first, then numbered backups .roxy.bak.1, etc. with 0600 permissions) and safely preserves JSONC comments and trailing commas. Rolling back is a single file copy.
What Node.js version or runtime do I need?
Use Node.js 22.13+ (in the Node 22 LTS line) or Node.js 23.4+ so Roxy can use Node’s built-in SQLite without native C++ compilation headaches. Prefer zero host dependencies? Run docker compose up --build -d --wait, which pre-bundles Node/npx and Python/uvx inside the container.
When will Roxy Cloud launch and how do I get in touch?
Roxy Cloud is coming soon with hosted HTTPS MCP endpoints, team secret vaults, managed OAuth, and cloud sandboxes—while Roxy Local OSS remains free and MIT-licensed forever. Email info@roxy.tools for early access, partnership inquiries, or feedback.