forgemax
by postrv·★ 148·Score 51
Forgermax is an innovative MCP gateway that collapses multiple servers into just 2 tools using sandboxed JavaScript execution.
Overview
Forgermax implements a Code Mode approach inspired by Cloudflare's sandbox tool-calling pattern. Instead of dumping every tool schema into the LLM's context window, it exposes only two tools: `search` to discover capabilities and `execute` to run JavaScript against tool APIs in a sandboxed V8 isolate. This approach dramatically reduces token usage from potentially tens of thousands to just around 1,000 tokens regardless of the number of connected servers. The system includes sophisticated sandboxing with AST validation, isolation, and comprehensive security measures.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Forgemax when working with many MCP servers and experiencing context window limitations or high round-trip latency.
When NOT to choose this
Avoid Forgemax if you need direct tool schemas for model understanding or if you're working with a small, fixed set of MCP tools.
Tools this server exposes
2 tools extracted from the READMEsearchQuery a capability manifest to discover tools
executeRun JavaScript against the tool API in a sandboxed V8 isolate
Comparable tools
Installation
Install Forgemax
**npm (recommended):**
npm install -g forgemax**Homebrew (macOS/Linux):**
brew tap postrv/forgemax && brew install forgemax**Shell installer (macOS/Linux):**
curl -fsSL https://raw.githubusercontent.com/postrv/forgemax/main/install.sh | bash**PowerShell (Windows):**
irm https://raw.githubusercontent.com/postrv/forgemax/main/install.ps1 | iex**Claude Desktop Integration:** Add to claude_desktop_config.json:
{
"mcpServers": {
"forgemax": {
"command": "forgemax"
}
}
}FAQ
- How does Forgemax reduce token usage?
- Forgemax replaces hundreds of tool schemas with just 2 tools (~1,000 tokens) and lets LLMs write JavaScript to orchestrate tool calls instead of selecting from tool lists.
- Is sandbox execution secure?
- Yes, Forgemax uses V8 isolation with AST validation, no filesystem/network access, and opaque bindings that never expose credentials to the sandbox.
On Hacker News
Recent discussion from the developer community.
- Story by rcarmo · 2026-02-24
Compare forgemax with
Last updated · Auto-generated from public README + GitHub signals.