Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Transports: stdio vs HTTP
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ”— Aggregators
  3. Context Firewall
Context Firewall logo
Health: ActiveRecent health check succeeded.Last checked 9/17/2026, 3:01:49 PM

Context Firewall

User RatingsBe the first to rate and review this MCP server!
View Repository2 GitHub StarsTotal stargazers on GitHub for the source repository (2 stars).Visit Website
aggregatorproxycompressiontool-managementmcp

Local MCP proxy collapsing many downstream tools into 4 meta-tools with output compression and progressive tool discovery.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
We couldn’t automatically confirm this listing starts correctly

We ran the install command below but it didn't respond within our test window β€” this can mean a slow first-time install rather than a real problem.

npx -y context-firewall

No response to initialize.

This is an experimental automated check and can have false negatives β€” missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "alepha188838884-context-firewall": {
      "command": "npx",
      "args": [
        "-y",
        "context-firewall"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ”— More in Aggregators

Overview

Context Firewall is a local proxy server that consolidates multiple downstream MCP servers into four meta-tools, reducing token usage by collapsing tool definitions and compressing large tool outputs such as HTML and JSON. It progressively discloses tool schemas only when needed, minimizing upfront token costs. The server supports full retrieval of original outputs via a read_more mechanism and provides session token savings reports. Use it when you want to reduce MCP tool schema bloat and compress large outputs from multiple MCP servers for any MCP client or model.

Use cases

β€’Consolidate multiple MCP servers into a single proxy exposing only 4 meta-tools
β€’Compress large tool outputs (HTML, JSON, base64) before sending to the model
β€’Progressively discover and load tool schemas on demand to save tokens
β€’Retrieve full original outputs via paged read_more calls
β€’Generate session reports showing token savings from compression and tool collapse

Key features

β€’Collapses 50+ MCP tools into 4 meta-tools
β€’Compresses outputs by 60–95% using HTMLβ†’Markdown, JSON summarization, base64 stripping
β€’Progressive tool schema disclosure to reduce upfront token cost
β€’Full output retrievable with read_more method
β€’Per-session token savings report with breakdown by tool
β€’Supports per-tool allow/deny policies for downstream servers

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Context Firewall.

Extracted Tool Capabilities
Collapses 50+ MCP tools into 4 meta-tools
Compresses outputs by 60–95% using HTMLβ†’Markdown, JSON summarization, base64 stripping
Progressive tool schema disclosure to reduce upfront token cost
Full output retrievable with read_more method
Per-session token savings report with breakdown by tool
Supports per-tool allow/deny policies for downstream servers

Documentation Overview

Context Firewall

δΈ­ζ–‡ζ–‡ζ‘£

npm CI license Glama score

Shrink large MCP tool outputs by 60–95% before they reach your model's context window β€” and collapse 50+ tool definitions into 4. Real HTML/JSON, measured β€” see benchmarks. Works with any MCP client, any model. Anything still over your configured token budget after compression is hard-truncated to that budget, with the full original always retrievable via read_more.

Session savings report card from a real session: 27 tools collapsed to 4, ~143,391 tokens saved, ~71.7% of a 200K context window

The session report printed on shutdown β€” this one from a real 3-call session (two large file reads, one echo). Every number measured, none simulated.

Context Firewall is a local MCP proxy that sits between your AI agent (Claude Code, Claude Desktop, Cursor, Cline, ...) and every downstream MCP server you've configured. Large tool outputs (raw HTML, base64 blobs, giant JSON) are compressed before they ever reach the model's context window, and the client sees exactly 4 tools no matter how many the downstream servers actually have.

Measured results

MetricResult
Output compression70–94% on real HTML pages, ~97% on large structured JSON (smart stages alone, before budget truncation) β€” e.g. a live Wikipedia page via the fetch tool: 232,391 β†’ 6,907 chars (97.0%, measured); a GitHub issues JSON payload via the jsonSummary stage: 186,810 β†’ 3,480 chars (98.1%, measured)
Tool collapse122 β†’ 4 exposed meta-tools (5 real downstream servers incl. official GitHub github-mcp-server, 85 tools)
Tool-definition savings~28,600 tokens (estimated, chars Γ· 3.5) β€” 102,158 raw definition chars vs. 2,146 exposed

All figures measured against real downstream MCP servers, not synthetic data β€” full methodology and tables in docs/BENCHMARKS.md.

What it does

  • Progressive tool disclosure β€” instead of loading every downstream tool's full schema at startup, the client sees 4 meta-tools (list_tool_categories, search_tools, invoke_tool, read_more) and only pays the token cost of a tool's full schema when it actually searches for it.
  • Output compression pipeline β€” large tool results are run through base64 stripping, main-content extraction + HTMLβ†’Markdown conversion (page chrome β€” nav, site headers/footers β€” is stripped when the page has a recognizable content region, so your token budget goes to actual content instead of navigation links), JSON structure-aware summarization, and finally character-budget truncation, in that order, before being returned.
  • Full output retrievable via read_more β€” nothing is silently thrown away. Every compressed output is stored in full (in memory, opaque handle) and can be paged back with read_more(handle, offset, length).
  • Session savings report β€” on shutdown, prints a shareable terminal card (and optional Markdown file) showing tool-definition and output-token savings for the session, plus a breakdown of which tools saved the most.

Quickstart

Terminal
npx context-firewall --config context-firewall.json

Minimal context-firewall.json (the downstreams block mirrors the mcpServers format you already know):

config.json
{
  "downstreams": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/project"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" }
    }
  }
}

(${GITHUB_TOKEN} above is just this example's environment variable name β€” pick whatever's already set in your shell; it gets expanded into GITHUB_PERSONAL_ACCESS_TOKEN, the env var name the downstream server itself actually reads.)

Which GitHub server? Two options, different tool counts:

  • @modelcontextprotocol/server-github (used above) β€” the original npm package, 26 tools, one npx -y line, zero extra setup. Archived/no longer maintained upstream, but still functional.

  • github/github-mcp-server β€” the actively-maintained official server, 44 tools (default toolset) to 85 (GITHUB_TOOLSETS=all). Ships as a Go binary or Docker image, not an npm package:

    json
    "github": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" }
    }
    

    or, running a locally-built/downloaded binary directly: "command": "/path/to/github-mcp-server", "args": ["stdio"] (same env block; add GITHUB_TOOLSETS to scope which of the 85 tools are exposed).

Per-tool allow/deny policy. Add allowTools/denyTools (array of exact names or * globs) to any downstream entry to restrict which of its tools can be invoked:

json
"github": {
  "command": "npx",
  "args": ["-y", "@modelcontextprotocol/server-github"],
  "denyTools": ["delete_*"]
}

Deny always wins over allow. When allowTools is set, only matching tools are permitted; everything else on that server is blocked. An empty allowTools: [] is treated the same as omitting it (allow everything), not "deny everything". Blocked tools are hidden from search_tools results, and invoke_tool rejects them before dispatching to the downstream server. Tool counts in list_tool_categories and in the meta-tool descriptions are unfiltered totals β€” the policy is only enforced at search_tools/invoke_tool time.

Client setup

Set Context Firewall as your only MCP server β€” move every downstream server you currently configure directly (filesystem, github, everything, ...) into context-firewall.json's downstreams block instead. Your agent then sees 4 tools instead of the sum of every downstream server's tool count; pointing the client at Context Firewall alongside your existing servers doesn't give you the tool-collapse or compression benefit.

Each client below takes the same server entry:

config.json
{
  "mcpServers": {
    "context-firewall": {
      "command": "npx",
      "args": ["-y", "context-firewall", "--config", "/absolute/path/to/context-firewall.json"]
    }
  }
}

Claude Code

Project-scoped .mcp.json in your repo root (shown above), or via the CLI:

Terminal
claude mcp add --transport stdio context-firewall -- npx -y context-firewall --config /absolute/path/to/context-firewall.json

Claude Desktop

claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json; Windows: %APPDATA%\Claude\claude_desktop_config.json) β€” same mcpServers block as above.

Cursor

.cursor/mcp.json (project-scoped) or ~/.cursor/mcp.json (global) β€” same mcpServers block as above.

Cline

cline_mcp_settings.json (VS Code extension storage; macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json) β€” same mcpServers block as above.

Compatibility status

ClientStatus
Claude Codetested in real agent sessions β€” autonomous list β†’ search β†’ invoke β†’ read_more workflow verified end-to-end
Claude Desktopprotocol-verified*
Cursorconfig format documented, community testing welcome
Clineconfig format documented, community testing welcome

* Verified via MCP protocol integration tests (236 automated tests, including full stdio protocol round-trips against real downstream servers, run in CI on every push). Real-client reports welcome.

Configuration

downstreams

Each entry is either a stdio server (same shape as mcpServers) or a Streamable HTTP server:

config.json
{
  "downstreams": {
    "local-tool": { "command": "npx", "args": ["-y", "some-mcp-server"], "env": { "TOKEN": "${TOKEN}" } },
    "remote-tool": { "url": "https://mcp.example.com/mcp", "transport": "streamable-http" }
  }
}

${VAR_NAME} in any string value is expanded from the environment; a missing variable fails config load with a readable error.

compression

Policy resolution order is default < perServer < perTool (later overrides earlier, field by field):

config.json
{
  "compression": {
    "default": {
      "maxOutputTokens": 2000,
      "htmlToMarkdown": true,
      "stripBase64": true,
      "jsonSummary": true,
      "llmSummary": false,
      "bypass": false
    },
    "perServer": { "github": { "maxOutputTokens": 4000 } },
    "perTool": { "filesystem/read_file": { "maxOutputTokens": 8000 } }
  }
}

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Aggregators View all alternatives
  • AllMCPs Server logoAllMCPs Server
    β˜… Featured

    The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

    πŸ”— Aggregators17 views
    Compare vs AllMCPs Server β†’
  • Agent logoAgent

    A unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.

    πŸ”— Aggregators9 views
    Compare vs Agent β†’
  • Metatool App logoMetatool App

    MetaMCP is the one unified middleware MCP server that manages your MCP connections with GUI.

    πŸ”— Aggregators2 views
    Compare vs Metatool App β†’
  • Ncp logoNcp

    NCP orchestrates your entire MCP ecosystem through intelligent discovery, eliminating token overhead while maintaining 98.2% accuracy.

    πŸ”— Aggregators2 views
    Compare vs Ncp β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
2
Stargazers on the source repository.
npm downloads
705
Package downloads in the last 30 days.
Last commit
1mo ago
Most recent push to the default branch.
Install check
Inconclusive
Didn't respond in our test window β€” often a slow first install.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Context Firewall

It collapses many downstream MCP tools into 4 meta-tools and compresses large outputs via HTML-to-Markdown conversion, JSON summarization, and base64 stripping.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewContext Firewall AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/alepha188838884-context-firewall?style=directory)](https://allmcps.com/mcp/alepha188838884-context-firewall)
HTML Embed
<a href="https://allmcps.com/mcp/alepha188838884-context-firewall"><img src="https://allmcps.com/api/badge/alepha188838884-context-firewall?style=directory" alt="Context Firewall on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ”—Aggregators
PricingFree
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
AuthNo auth required
ClientsClaude Desktop, Cursor, Cline / VS Code
Last updatedAug 9, 2026
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars2
GitHub Star CountTotal stargazers on GitHub representing community popularity (2 stars).
Last commit1mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 3, 2026
npm downloads705/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
56Quality signal: Good Β· 56/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools26/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 21h ago via OSV.dev Β· context-firewall (npm)

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ”— Aggregators β†’Alternatives to Context Firewall β†’Install in Claude DesktopInstall in CursorInstall in VS Code