# MCP audit

> MCP audit is an open-source agent skill for ai models and llm tooling. Audits configured MCP servers against a trust allowlist and flags untrusted ones. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tansuasici/claude-code-kit/tree/main/.claude/skills/mcp-audit
- **Repository:** https://github.com/tansuasici/claude-code-kit
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** mcp-audit
- **Collection:** https://github.com/tansuasici/claude-code-kit
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/mcp-audit)
- [License: MIT](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/mcp-audit)

## Features

- **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

## Install

### Claude Code

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):

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [MCP security audit](https://ai-powered.com/skills/mcp-security-audit): MCP security audit is an open-source agent skill for security.
- [Organize skill MCP](https://ai-powered.com/skills/organize-skill-mcp): Organize skill MCP is an open-source agent skill for developer tools.
- [MCP Server Security](https://ai-powered.com/skills/mcp-server-security): MCP Server Security is an open-source agent skill for security.
- [MCP implementation security review](https://ai-powered.com/skills/mcp-implementation-security-review): MCP implementation security review is an open-source agent skill for security.
- [MCP dependency review](https://ai-powered.com/skills/mcp-dependency-review-abdullayevtemurmalik): MCP dependency review is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-xiaolai): Security is an open-source agent skill for security.
- [MCP builder](https://ai-powered.com/skills/mcp-builder): MCP builder is a free agent skill for ai models and llm tooling.
- [Google ads API MCP setup](https://ai-powered.com/skills/google-ads-api-mcp-setup): Google ads API MCP setup is an open-source agent skill for marketing and seo.

---
Source: https://ai-powered.com/skills/mcp-audit-tansuasici
