loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

mcpx

MCP Tool

arek-e/mcpx

Self-hosted MCP Code Mode gateway — aggregate multiple MCP servers behind 2 tools with V8 isolate execution

Install

$ npx loaditout add arek-e/mcpx

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "mcpx": {
      "command": "npx",
      "args": [
        "-y",
        "mcpx"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

mcpx

Collapse multiple MCP servers into 2 tools. Your agent writes code to call them instead of loading 100+ tool schemas into context.

mcpx sits between your agent and your MCP servers. Instead of registering every tool (which eats context tokens), it exposes just `search` and `execute`. The agent discovers tools via search, writes JavaScript to call them, and the code runs in a sandboxed V8 isolate.

Without mcpx:  agent ← 120 tool schemas (~84,000 tokens)
With mcpx:     agent ← 2 tools (~1,000 tokens) → writes JS → mcpx executes → calls real tools
Why

| Approach | Context tokens | | ---------------------------- | -------------- | | 120 tools (full schemas) | ~84,000 | | 120 tools (minimal schemas) | ~17,000 | | mcpx Code Mode (2 tools) | ~1,000 |

Inspired by Cloudflare's Code Mode pattern — self-hosted, no Cloudflare dependency.

Works with

<table> <tr> <td align="center"><br><b>Claude Code</b></td> <td align="center"><br><b>Cursor</b></td> <td align="center"><b>Codex</b></td> <td align="center"><br><b>Amp</b></td> <td align="center"><b>OpenCode</b></td> </tr> </table>

Supports stdio and HTTP (Streamable HTTP) — works with any MCP-compatible agent.

---

Solo developer

Run mcpx locally as a stdio subprocess. No server, no Docker, no Kubernetes.

1. Create config
# Import your existing MCP servers from .mcp.json
bunx mcpx-tools init

# Or start with a blank template
bunx mcpx-tools init --empty

Edit `mcpx.jso

Tags

bunclaudemcpmcp-gatewaymcp-servermodel-context-protocolsandboxself-hostedtool-aggregationtypescript

Reviews

Loading reviews...

Quality Signals

1
Stars
0
Installs
Last updated18 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
read
Network Accessnone

Details

Sourcegithub-crawl
Last commit4/3/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/arek-e/mcpx)](https://loaditout.ai/skills/arek-e/mcpx)