Skip to content
Skill

MCP audit

Audits configured MCP servers against a trust allowlist and flags untrusted ones

MCP audit is an open-source agent skill for ai models and llm tooling. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About MCP audit

This skill reconciles the MCP servers configured for a project, including user-scoped ones, against an explicit trust allowlist that a PreToolUse gate hook enforces. It lists each configured server, shows whether it is allowlisted and what the gate would do with its calls, and points out allowlist entries that no longer match any configured server.

The workflow reads the project MCP config files and the allowlist file, then produces a table of servers with their scope and gate verdict. For gaps it recommends concrete actions, such as adding a trusted server to the allowlist or removing an unrecognized one from the config. It can also enumerate a server's tools so the reviewer can see write, delete or network capabilities before trusting it.

It expects a Claude Code project with MCP configuration and a Python 3 interpreter for the sample commands. It is intended for reviewing, not installing servers or running their tools.

When your agent uses it

Audit the project's configured MCP servers against the trust allowlist (.claude/mcp-allowlist.txt) that .claude/hooks/mcp-gate.sh enforces. Lists every configured server, flags the ones not allowlisted (blocked by the gate, or running untrusted while it is off), and surfaces prompt-injection and supply-chain risk. Use when adding or reviewing MCP servers, before switching the gate on, or when an mcp__* call was blocked. Do NOT use to install MCP servers or to run their tools.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (5 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the claude-code-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add tansuasici/claude-code-kit
/plugin install claude-code-kit@claude-code-kit

Or copy only this skill to ~/.claude/skills/mcp-audit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mcp-audit &&
cp -R "$tmp/.claude/skills/mcp-audit" ~/.claude/skills/mcp-audit &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/mcp-audit inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/mcp-audit to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mcp-audit &&
cp -R "$tmp/.claude/skills/mcp-audit" ~/.agents/skills/mcp-audit &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/mcp-audit inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/mcp-audit to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mcp-audit &&
cp -R "$tmp/.claude/skills/mcp-audit" ~/.cursor/skills/mcp-audit &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/mcp-audit inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/tansuasici/claude-code-kit.git --path .claude/skills/mcp-audit

Or copy the folder to ~/.gemini/skills/mcp-audit yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mcp-audit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mcp-audit &&
cp -R "$tmp/.claude/skills/mcp-audit" ~/.copilot/skills/mcp-audit &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/mcp-audit inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git

Then copy claude-code-kit/.claude/skills/mcp-audit into your agent's skills folder as mcp-audit. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Configured server inventory
Collects MCP servers from project and user-level configuration files into one list.
Allowlist reconciliation
Compares each configured server against the trust allowlist and reports the gate verdict.
Stale trust detection
Finds allowlist entries that no longer correspond to any configured server.
Tool capability review
Enumerates a server's tools so writes, deletes and network access are visible before trust.
Prompt injection reminder
Restates that MCP output and tool descriptions are data, not instructions to follow.

Good for

  • Check which MCP servers in this project are not on the trust allowlist
  • Find out why an mcp__ tool call was blocked and what to add
  • Review a newly added MCP server before enabling the gate
  • Remove allowlist entries for servers that are no longer configured

MCP audit FAQ

When does MCP audit trigger?

It is meant for adding or reviewing MCP servers, before switching the gate on, or after an mcp__ call was blocked.

Does MCP audit install MCP servers or run their tools?

No. Installing, configuring and running server tools are explicitly out of scope.

What happens if no allowlist file exists?

The skill notes that enforcement is off and points to an example allowlist file to create.

Which configuration files does MCP audit read?

It reads .mcp.json, the project and local settings files, and user-level Claude configuration for mcpServers entries.

How do I install MCP audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mcp-audit to use it in all your projects, or to .claude/skills/mcp-audit in one project. Or install the claude-code-kit plugin, which includes it: /plugin marketplace add tansuasici/claude-code-kit, then /plugin install claude-code-kit@claude-code-kit.

Does MCP audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use MCP audit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to MCP audit?

The closest alternatives to MCP audit are MCP security audit, Organize skill MCP, MCP Server Security, MCP implementation security review and MCP dependency review.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from tansuasici/claude-code-kit

  1. Audits UI code against WCAG 2.1 AA for semantics, keyboard use, contrast and ARIA

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Audits a codebase's structure for SOLID violations, coupling and module boundary issues

    • Open source
    • 6 GitHub stars
    • Developer tools
  3. Lists the skills, agents, hooks and modules installed in a kit-enabled project

    • Open source
    • 6 GitHub stars
    • Developer tools
  4. Audits code for smells, error-handling gaps and maintainability issues with fixes

    • Open source
    • 6 GitHub stars
    • Developer tools
  5. Guides the agent to write and extend a project's golden-principles.yaml rule file

    • Open source
    • 6 GitHub stars
    • Developer tools
  6. Finds unused functions, dead imports, orphan files and unreachable branches in a codebase

    • Open source
    • 6 GitHub stars
    • Developer tools