DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to find leaked keys and risky MCP servers on your machine with MCP Audit Tool

Scan every MCP config on a workstation and get a graded list of secrets and risky launch commands.

Short answer: Install the tool with pipx install git+https://github.com/graygnatconsole/mcp-audit-tool.git; then run mcp-audit scan to auto-discover and audit every MCP config on this machine; read the findings table and note every CRITICAL and HIGH row, starting with MAT-001 (hardcoded secrets) and MAT-004 (pipe-to-shell installers). All steps.

Credentials. The configs being scanned often contain live API keys, so rotate any credential the report flags and avoid pasting raw config contents into shared chats or tickets.

Who it is forA developer who has added several MCP servers to Claude Desktop, Cursor, or VS Code and wants to know what those configs expose before the model runs them.

The problemA single line in an MCP config can hold an API key in plaintext, fetch an unpinned package on every launch, or run a pipe-to-shell installer, and these are easy to miss by reading JSON by hand.

The outcomeA terminal report with a security score, a grade from A+ to F, each finding tied to a rule ID, and the top remediation steps to fix first.

What you need first

  • Python 3.9 or newer
  • pipx or pip available in the terminal
  • An MCP client config file (for example claude_desktop_config.json or .cursor/mcp.json), or access to the machine where those files live

Steps

  1. Install the tool with pipx install git+https://github.com/graygnatconsole/mcp-audit-tool.git.
  2. Run mcp-audit scan to auto-discover and audit every MCP config on this machine.
  3. Read the findings table and note every CRITICAL and HIGH row, starting with MAT-001 (hardcoded secrets) and MAT-004 (pipe-to-shell installers).
  4. Move each exposed credential to a secrets manager and rotate it, then pin any unpinned npx, uvx, or pipx package to a known version.
  5. Run mcp-audit scan again and confirm the score improved.

Prompt for your agent

Use the GitHub repo graygnatconsole/mcp-audit-tool to run `mcp-audit scan <config-path>` on the MCP config at <config-path>. Return the score, grade, and a list of CRITICAL and HIGH findings with their rule IDs. Verify that the report lists each server name from the config file.

Caveat. This is a static analyzer of config files, so it does not probe live servers, and the README roadmap lists runtime tool checks and auto-fix as planned, not built.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for graygnatconsole/mcp-audit-tool and "Find leaked keys and risky MCP servers on your machine"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer