mcp slim guard
About
Lightweight MCP security proxy — compression (up to 86%) + SSRF protection + allow/deny + audit + rate limiting + injection detection
Details
- Author
- lennney
- Downloads
- 205
- Categories
- Other
Jump to
- mcp-slim-guard
- security
- compression
- Node.js >= 18
- Only 5 production dependencies (MCP SDK, commander, js-yaml, micromatch, pino)
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
mcp slim guardCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
The README includes setup instructions such as - Node.js >= 18.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp slim guard": {
"mcp-slim-guard": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-slim-guard",
"."
]
}
}
}
}
McpServers
{
"mcp-slim-guard": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-slim-guard",
"."
]
}
}
MCP Slim Guard gives a host one deliberate way to reach authorized upstream tools. It keeps input schemas intact, validates calls before the upstream is invoked, and can recover an oversized result exactly without repeating that invocation.
Compact is the default forstart. Native is the default installation plan for Codex. Compact is the default for Claude Code; Claude Code supports Compact and Extreme installation plans, not Native.
All modes apply the same allow/deny authorization. Compact and Extreme return at most three discovery matches, each with the original required fields, enums, and nested schema. A call is validated against that original schema before the upstream server is contacted.
find_toolrejects unknown fields and queries longer than 256 Unicode code points locally. It searches only the current authorized catalog and never falls back to an unauthorized entry.
0.1.1-alpha.2is a source candidate and is not published to npm yet. From a reviewed checkout of this candidate:
npm ci npm run build npm link cd /path/to/project-with-mcp-config mcp-slim-guard init mcp-slim-guard validate # Run the default Compact mode. mcp-slim-guard start
initwritesmcp-slim-guard.ymlwith version2. The file contains upstream and security settings only. Select a mode in the host command, not in YAML.
# Inspect a host-specific plan without changing host files. mcp-slim-guard plan --host codex mcp-slim-guard plan --host claude-code --mode extreme # Verify the configured runtime without changing Host configuration or calling a business Tool. mcp-slim-guard verify --host codex # Apply a reviewed plan. mcp-slim-guard install --host codex --mode native
For Codex, use Native when you want the normal authorized MCP catalog:
[mcp_servers.slim_guard] command = "mcp-slim-guard" args = ["start", "--mode", "native"] cwd = "/absolute/path/to/project"
For Claude Code, use Compact by default:
{ "mcpServers": { "slim-guard": { "command": "mcp-slim-guard", "args": ["start", "--mode", "compact"], "cwd": "/absolute/path/to/project" } } }
Seehost setupfor the full configuration and verification steps.
version: 2 tools: allow: - "upstream_" deny: - "_delete_*" ssrf: mode: block block_private_ips: true allow_domains: [] block_domains: [] rate_limit: default: "60/min" injection_detection: enabled: true sensitivity: medium mode: block audit: output: file filePath: mcp-slim-guard-audit.log servers: upstream: command: npx args: ["-y", "@your/mcp-server"]
Version 1 configuration is intentionally unsupported. The removedcompressorsection is rejected rather than migrated automatically.
If arguments do not match an authorized tool's original schema, Slim Guard returns a normal MCP tool error withstructuredContentthat identifies the schema failure and confirms that the upstream tool was not invoked. Correct the arguments and retry; submitted argument values are not echoed in that error.
When a response needs recoverable delivery, the first response includes aresult_ref. Useread_resultwithqueryto locate up to three bounded local fragments, or omitqueryand follownext_cursorto recover the exact snapshot. Both paths use the same immutable capture and never invoke the upstream tool again. Do not combinequerywithcursor. Native and Compact use the standard delivery boundary. Extreme uses a smaller boundary only when the initial delivered response is at least half the size of the exact response; otherwise it passes the exact response through unchanged.
The repository includes a 24-task mode comparison, result-recovery fixtures, and a 100-tool / 8,000-row stress fixture. Run the current artifacts with:
npm run build npm run bench:task npm run bench:compression npm run bench:stress npm run bench:compression:verify
Their reports are mode-specific and are generated locally; do not treat older alpha benchmark figures as claims for this product line.
npm run build npm run typecheck npm run lint npm test npm run verify:package-boundary npm run smoke:package
This project is an alpha. Review authorization patterns and upstream settings before using it with privileged tools.
Transaction-complete hotel booking over MCP — 300K+ properties, real hotel confirmation numbers, loyalty points, secure checkout. Hotels are merchant of record. Builders set their own booking fee via Stripe Connect. Built on proven distribution infrastructure.
An MCP server for AI video generation. MCP server for AI video generation. Lets Claude, ChatGPT, OpenClaw , Hermes & other agents create AI videos and publish them to YouTube, TikTok, Instagram etc..
Institutional research and manager diligence reports on hedge funds, venture capital and private equity managers. Summary of filings, personnel changes, media screening and social signals delivered to you in minutes.
ALTER - identity infrastructure for the AI economy
D2C eCommerce fulfillment platform: manage orders, inventory, shipments, campaigns, and billing via AI agents
Apigene MCP Gateway is the runtime layer that connects AI agents to APIs and MCP servers via Model Context Protocol.
MCP to interface with multiple blockchains, staking, DeFi, swap, bridging, wallet management, DCA, Limit Orders, Coin Lookup, Tracking and more.
MCP server for Bitnovo Pay integration with AI agents. Provides cryptocurrency payment capabilities through Bitnovo Pay API. Features include payment creation, status checking, QR code generation, and webhook management with support for multiple tunnel providers (ngrok, zrok, manual).
Shop for gift cards, esims, phone topups. Pay with cards and crypto.
You built it, now get users! GoToMarket MCP server
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



