Software / mcp-keeper · free · open source
mcp-keeper
mcp-keeper checks MCP (Model Context Protocol) servers for security, token cost and quality with one command. It reads everything a server shows to the language model and reports hidden instructions, invisible characters, secrets in text and silent changes. Free, no account, no telemetry.
View on GitHub How to get started
- Price
- Free. No account, no subscription, no purchase.
- License
- Open source under the MIT License, © Tim Erben
- Requirements
- Node.js 18 or later and a terminal
- Data
- No telemetry. Apart from the connection to the server you point it at, nothing leaves your machine.
- Warranty
- Provided as is, without warranty (see the MIT License). There is no commitment to updates or support.
What mcp-keeper checks
mcp-keeper connects to an MCP server and reads everything the language model gets to see: tools, parameter descriptions, prompts, resources and server instructions. The result is a report with a score and a grade.
- Tool poisoning and prompt injection. Hidden instructions in descriptions, phrases like “don’t tell the user”, access to
~/.ssh, look-alike tools and silent BCCs. - Invisible text. Unicode tag characters (“ASCII smuggling”, shown in plain text), zero-width characters, bidi overrides and whitespace padding.
- Secrets in text. API keys and tokens inside text the model can see.
- Missing or misleading safety annotations. For example a
delete_*tool that is marked read-only. - Token cost. Estimated tokens per request and per tool, and too many tools.
- Quality and spec compliance. Missing descriptions, broken input schemas, invalid or duplicate tool names.
- Silent changes (“rug pulls”). You pin a reviewed state (baseline) and get warned when a server quietly changes later.
In addition, mcp-keeper config audits the MCP config files of Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, Zed and LM Studio for plaintext secrets, unpinned package versions, unencrypted http:// endpoints and risky Docker flags.
Get started in three steps
No installation needed. Everything runs through npx.
- Have Node.js readyYou need Node.js 18 or later. Run
node --versionin the terminal to see whether it is installed. - Check a serverEverything after
--is the command that starts the server. The example below checks the memory server from the official MCP project. - Read the reportYou get a score and a grade (A to F), separate values for security, efficiency, quality and compliance, and then the individual findings with their severity.
npx mcp-keeper scan -- npx -y @modelcontextprotocol/server-memory
What a report looks like (shortened):
mcp-keeper 0.1.0 · npx -y @modelcontextprotocol/server-memory
memory-server 1.0.0 · protocol 2025-11-25 · stdio · 9 tools, 0 prompts, 1 resources · ≈1,108 tokens
Score 92/100 (A) security 100 · efficiency 100 · quality 92 · compliance 100
LOW MCP201 Tool "create_entities": 1 parameter(s) without description (entities).
at tool:create_entities › inputSchema.properties
More you can do
Check a remote server
mcp-keeper scan --url https://mcp.example.com/mcp
Audit your client configs
mcp-keeper config
Save the report as Markdown
mcp-keeper scan -f md -o report.md -- node build/index.js
Detect changes (baseline)
mcp-keeper scan --baseline mcp-baseline.json --update-baseline -- npx -y some-server@1.4.0
Check in your pipeline
mcp-keeper scan --fail-on high --min-score 80 -- node build/index.js
Other output formats are JSON and SARIF (for GitHub code scanning). There is a ready-made GitHub Action (Erbse04/mcp-keeper@v0). All rules and options are in the README.
Please note
Limits of mcp-keeper
- No proof of safety. The checks are pattern-based, can produce false positives and do not prove a server is safe. A clean report means “no known red flags”, not “audited”.
- Only what is declared. mcp-keeper sees what a server declares. It does not call tools and cannot see what the server code does at runtime.
- Servers are started.
scanandconfig --deepstart the servers you point them at. Only scan code you are willing to run, ideally in a container or a virtual machine. - Estimated token counts. The estimate assumes about 4 characters per token; real tokenizers differ by model.
Frequently asked questions about mcp-keeper
How much does mcp-keeper cost?
Nothing. mcp-keeper is free and open source under the MIT License. There is no account and no subscription.
What is an MCP server?
MCP stands for Model Context Protocol. An MCP server gives an AI model tools, prompts and data to work with, for example access to files or services. The model reads whatever the descriptions of those tools say.
What is tool poisoning?
Hidden instructions for the language model are placed in the description of a tool, for example to send data to a third party or to hide something from the user. mcp-keeper looks for such patterns.
Does my data leave my machine?
No. mcp-keeper has no telemetry and no account. Apart from the connection to the server you point it at, nothing is sent.
Can mcp-keeper prove that a server is safe?
No. It only checks what a server declares and looks for known red flags. A clean report is not a safety approval.
Can I use mcp-keeper in my pipeline?
Yes. The exit codes are 0 (passed), 1 (threshold failed) and 2 (could not connect). --fail-on and --min-score set the thresholds, and there is a GitHub Action and SARIF output.
Free, as it is.
I provide mcp-keeper free of charge as open source. The MIT License applies, which means no warranty. I do not commit to new versions or support. You are welcome to report false positives or patterns mcp-keeper misses as an issue on GitHub.
The license terms and the right of withdrawal on this website concern the sale of Taidy and do not apply to mcp-keeper.
External links (GitHub, npm) lead to third-party sites whose content I am not responsible for.
Provider: Tim Erben, Mühlendycks Kamp 4a, 45470 Mülheim an der Ruhr, Germany, tim.erben@me.com · Legal notice