MCP Slim Guard
Lets your AI agent reach other MCP tools through one guarded entry point that checks calls and keeps big results recoverable.
180 stars on GitHubby lennneyLicense MITUpdated 3 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add slim-guard -- npx -y mcp-slim-guard
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Find the tool that lists my issues and call it through the guard.
Read the rest of the earlier large result using its result reference.
What it is
MCP Slim Guard sits between your AI app and other MCP servers. It allows only the tools you authorize, checks each call against the tool's original schema before it reaches the upstream server and can store oversized results so they are read back exactly. It is an alpha release.
What it can do
find_tool: look up authorized tools and their full schemascall_tool: call an authorized upstream toolread_result: read back an oversized result in pieces, without calling again- Modes: Native, Compact and Extreme
- Allow and deny lists, SSRF checks and rate limits
- Audit log
When to use
- βΊWhen you connect many MCP tools and want to keep the tool list small for the agent
- βΊWhen you want to block certain tools, such as delete tools, from your agent
- βΊWhen tool results are very long and you want them delivered in recoverable pieces
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
doordash-spend-guardKeeps your agent's DoorDash ordering inside your budget, with per-order limits, daily and monthly caps, cooldowns and blocked hours.wp-guardHelps your agent check WordPress plugins, themes, and blocks for security and correct function. Useful for keeping your site safe and optimized.safety-guardProtects against destructive operations on systems. It can confirm dangerous commands or restrict edits to a directory.Frequently asked questions
Is it ready for production?
The readme says it is an alpha. Review your allow and deny patterns before using it with privileged tools.
Is it on npm?
Not yet. Version 0.1.1-alpha.2 is a source candidate.
Which modes exist?
Native shows original tool names, Compact shows find_tool, call_tool and read_result, and Extreme adds smaller first results for large responses.
Which hosts does it support?
The readme gives setup for Codex (Native by default) and Claude Code (Compact by default).
Does it check my arguments?
Yes. Calls are validated against the original schema before the upstream is contacted.
Is it free?
The readme names no fee.
If it does not work
- βΊRun mcp-slim-guard validate to check your configuration file.
- βΊRun mcp-slim-guard verify --host codex to test the runtime without calling a business tool.
- βΊVersion 1 configuration is not supported. Recreate it with mcp-slim-guard init.
5 new skills a week. 1 minute to read.