ContextGuard
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
ContextGuard (contextguard-mcp)
Stop burning $50–$200/month on AI-coding context-compaction loops in Claude Code, Cursor, Codex, and Windsurf.
When an AI coding session loads an oversized CLAUDE.md, AGENTS.md, .cursorrules, historical plan doc, or unignored lockfile on boot — or re-reads the same files after compaction — 40%–80% of the context window is already consumed before tool call #1. Within 10–15 minutes of tool calls, compaction fires again, breaking prompt-cache continuity and multiplying input token costs by 5x–7x.
ContextGuard is a zero-dependency Node.js CLI, Model Context Protocol (MCP) server, and Chrome Manifest V3 Side Panel extension that audits token traps, compiles a deterministic <5 KB START.md boot card, and compresses web docs/GitHub PRs into strict token budgets.
Quick Start (Zero Install — 0 npm Dependencies)
# 1. Audit startup token burn, lockfile leaks & compaction risk in any repo
npx --yes github:oneandroid-max/contextguard-mcp audit .
# 2. Enforce a CI pull-request startup token ceiling (e.g. <= 6,000 tokens)
npx --yes github:oneandroid-max/contextguard-mcp audit . --max-boot-tokens 6000
# 3. Compile a <5 KB START.md boot card from oversized CLAUDE.md / AGENTS.md files
npx --yes github:oneandroid-max/contextguard-mcp slim . --write
# 4. Compress an HTML doc, PR diff, or log file to a 3,000-token Markdown budget
npx --yes github:oneandroid-max/contextguard-mcp clip ./pr-page.html --budget 3000Related MCP server: context-guard
Add as a Local MCP Server (Claude Code, Cursor, Windsurf)
Claude Code CLI (1 command)
claude mcp add contextguard -- npx -y github:oneandroid-max/contextguard-mcp --mcp.mcp.json / .cursor/mcp.json
{
"mcpServers": {
"contextguard": {
"command": "npx",
"args": ["-y", "github:oneandroid-max/contextguard-mcp", "--mcp"]
}
}
}Exposed MCP Tools
Tool | What It Does |
| Audits |
| Generates a |
| Strips scripts, styles, SVGs, nav boilerplate, and duplicate stack traces into a budgeted Markdown prompt. |
| Searches live written/async public-sector RFPs, sub-threshold P-Card quotes, and ADA Title II PDF/web opportunities via BidRadar. |
Browser Workbench, Chrome MV3 Side Panel & Pro Suite
Interactive Browser Workbench & Chrome Extension Download: https://secondforeman.com/contextguard/
BidRadar — Self-Serve B2B Public-Bid, RFQ & ADA Compliance Lead Alerts: https://secondforeman.com/bidradar/
SignalClip — B2B Directory, Table, Bulk PDF & Buyer-Signal Extractor (Chrome MV3): https://secondforeman.com/signalclip/
ADA Title II & ISO 14289-1 (
PDF/UA-1) GitHub Action: oneandroid-max/pdf-ua-audit-action
Set SECOND_FOREMAN_PRO_KEY="SC1...." in your shell or .mcp.json env block to unlock unlimited multi-file JSONL transcript forensics, Pro .mcp.json/CI workflow generation, and unredacted BidRadar direct buyer emails ($29/mo or $149/yr instant Stripe checkout at secondforeman.com/contextguard/#pricing).
Privacy & Publisher Disclosure
100% Local Processing:
contextguardaudits files and compresses HTML locally on your machine with zero telemetry and zero code/prompt uploads.Publisher: Second Foreman LLC · 801 NW 10th Street #470, Oklahoma City, OK 73106-6931 · hello@secondforeman.com · Veteran-Owned Small Business.
Built and operated by an AI agent (Google Gemini) with Paul Edward Lewis Jr. human sign-off, guaranteed by Second Foreman LLC.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
Compress coding-agent context ~64%. Hosted Neural Keep MCP for Cursor/Claude/Codex.
Risk-scan a diff, flag AI-generated-code tells, find secrets. 5 of 7 tools need no account.
Cut tokens from HTML, JSON, logs and public URLs into compact context for LLMs.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables local LLM tools and agentic IDEs to inspect repository token maps, retrieve clean token-bounded codebase snapshots, and audit code for hardcoded secrets via MCP over stdio.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables autonomous coding agents to check memory, CPU, and disk headroom before heavy work, emitting cgroup-aware NEAR_OOM_THRESHOLD alerts that let them back off before an OOM kill or context blowup. It also scans a workspace for token-heavy, low-value paths such as dependency trees, build output, logs, and bundles, returning ranked findings and ready-to-paste exclude_globs to keep them out of the agent's context.MIT
- AlicenseBqualityBmaintenanceEnables coding agents to pull repository context under a hard token cap by dropping noise files, cleaning whitespace and repeated lines, and truncating with fair-share budgets while reporting raw-versus-packed savings. Exposes context packing, per-file keep/drop inspection, and cumulative savings summaries as MCP tools over stdio.3MIT
- AlicenseBqualityBmaintenanceLocal CLI and MCP server that packs a repository into budgeted Markdown parts, writes a manifest of every included and skipped file with the reason, masks secrets in place, and exits non-zero when the snapshot drifts. For Claude, ChatGPT, Cursor and CI.263,755 npm2MIT