# AI Tool Audit

> AI Tool Audit is an open-source MCP server for security. Offline, read-only audit of AI coding tool settings and MCP servers on a developer PC. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Linux, CLI, Self-hosted
- **Repository:** https://github.com/prag-ai/ai-tool-audit
- **MCP Registry name:** io.github.prag-ai/ai-tool-audit
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-27

## About

Scans the configuration of Claude Code, Codex CLI, Gemini CLI, Claude Desktop, VS Code and Cursor, plus the MCP servers registered in them, for risky permission, auto-approval, hook and secret settings. Findings come with a plain explanation, a fix and the real incident behind each rule, and reports are produced in Korean and English.

The tool reads files only and never changes them. It opens no network connections, does not launch the tools it inspects, and masks secret values so only their first four characters and location are shown. Vulnerability advisories for installed versions are matched against a database bundled with the package, so the check works on machines without internet access.

It suits security teams auditing developer machines at scale, team leads checking repositories before merging AI-related configuration changes, and individual developers who want to review their own setup before opening an untrusted project.

## Features

- **Permission and auto-approval checks:** Flags settings that skip confirmation prompts, such as bypass modes, approval policies set to never, and globally auto-approved tool actions.
- **Secret detection in configs:** Finds API keys and tokens stored in plain text in AI tool settings and shell startup files, showing only partial values.
- **MCP server review:** Highlights MCP servers with unpinned package versions, plain HTTP transport, embedded secrets or overly broad filesystem access.
- **Offline version advisory matching:** Compares installed CLI versions and pinned MCP packages against bundled public security advisories without network access.
- **Baseline change detection:** Saves a snapshot of MCP servers and reports any that were added or altered since then.
- **Bilingual HTML, Markdown and JSON reports:** Produces reports in Korean or English, selected by browser or system language, with evidence links for each finding.
- **Repository configuration scanning:** Checks project-level AI and auto-run configuration files in a repository, useful before opening untrusted code or in CI.

## Good for

- Auditing AI coding tool settings across a fleet of developer laptops
- Checking a repository's AI and task configuration before opening it
- Failing a CI pipeline when a change makes AI tool settings less safe
- Rotating credentials found in plain text after a supply-chain incident
- Documenting AI tool risk for an internal security or compliance review
- Running a quick self-check of a personal development machine

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ai-tool-audit -- uvx ai-tool-audit
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ai-tool-audit -- uvx ai-tool-audit
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ai-tool-audit]
command = "uvx"
args = ["ai-tool-audit"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user ai-tool-audit uvx -- ai-tool-audit

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ai-tool-audit": {
      "command": "uvx",
      "args": [
        "ai-tool-audit"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 5 tools read data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `scan`: Scans this PC and any specified repositories and returns the results, with secret values reduced to their first four characters.
- `explain_rule` (name suggests: reads): Explains one rule's rationale, remediation and evidence incidents, or lists all rules when no ID is given.
- `list_files` (name suggests: reads): Lists the files the scanner would read, without opening them.
- `baseline_diff`: Finds MCP servers added or changed since the saved baseline.
- `baseline_save`: Saves the current MCP server list as the baseline.

## FAQ

### Does AI Tool Audit send any data over the network?

No. The package contains no network code, and the bundled advisory data is used for version matching.

### Does AI Tool Audit modify my configuration files?

No. It only reads files and suggests fixes in its report.

### How do I install AI Tool Audit on a machine without internet access?

Download the wheel file from the GitHub releases page, verify its SHA-256 value, transfer it to the target machine and install it with pip using the --no-index option. Python 3.11 or newer is required.

### Can AI Tool Audit be used from inside an AI assistant?

Yes. It can run as a stdio MCP server, exposing scan, rule explanation, file listing and baseline tools to clients such as Claude Code, Codex CLI and Cursor.

### Is AI Tool Audit free?

Yes. AI Tool Audit is open source, so you can use and self-host it for free.

### How do I add AI Tool Audit to Claude Code?

Run this command in your terminal: claude mcp add ai-tool-audit -- uvx ai-tool-audit

### What are the best alternatives to AI Tool Audit?

The closest alternatives to AI Tool Audit are MCP configuration audit, Coding Agent Audit, MCP Security Guard, mcp-audit and AIShield Security Scanner.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP configuration audit](https://ai-powered.com/mcp/mcp-configuration-audit): MCP configuration audit is an open-source MCP server for security.
- [Coding Agent Audit](https://ai-powered.com/mcp/coding-agent-audit): Coding Agent Audit is an open-source MCP server for security.
- [MCP Security Guard](https://ai-powered.com/mcp/mcp-security-guard): MCP Security Guard is an open-source MCP server for security.
- [mcp-audit](https://ai-powered.com/mcp/mcp-audit-2): mcp-audit is an open-source MCP server for security.
- [AIShield Security Scanner](https://ai-powered.com/mcp/aishield-security-scanner): AIShield Security Scanner is an open-source MCP server for security.
- [MCP Config Auditor](https://ai-powered.com/mcp/mcp-config-auditor): MCP Config Auditor is an open-source MCP server for security.
- [SecurityScan](https://ai-powered.com/mcp/securityscan-2): SecurityScan is a freemium MCP server for ai models and llm tooling.
- [MCP Security & Vulnerability Auditor](https://ai-powered.com/mcp/mcp-security-and-vulnerability-auditor): MCP Security & Vulnerability Auditor is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/ai-tool-audit
