# MCP configuration audit

> MCP configuration audit is an open-source MCP server for security. Audits local MCP server configs for unpinned packages, exposed keys and risky permissions. It runs locally on your machine and is started by your AI client.

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

## About

Scans the MCP configuration files of Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf and Cline and reports fixable risks such as unpinned npx or uvx launches, credentials sitting in plain text, and filesystem servers with access to the whole disk. Each finding names the file and setting, shows secrets masked, and explains what to change.

The tool runs entirely on your machine with no network requests and no runtime dependencies. An optional probe mode starts local stdio servers, reads their tool lists and flags hidden characters or instructions aimed at the model inside tool descriptions. It can also run in CI and emit SARIF for GitHub code scanning.

It suits developers who configure MCP servers for AI coding assistants and security teams who want to review those setups across projects before a repository is cloned or committed.

## Features

- **Unpinned package detection:** Flags npx, uvx, bunx, pipx and container launches that lack an exact version or digest.
- **Plain-text credential scan:** Finds API keys and tokens in env vars, headers, arguments and URLs by known format or name.
- **Permission review:** Highlights tools that run without confirmation and project servers that start automatically.
- **Filesystem and container risks:** Catches filesystem servers given the home folder or disk root and containers with host-level access.
- **Tool description probe:** Optionally starts local servers and checks tool names and descriptions for hidden or instructing text.
- **CI and agent integration:** Outputs SARIF for code scanning and can run as a read-only MCP tool for an agent.

## Good for

- Reviewing MCP server setups in Claude Code or Cursor before trusting a cloned repository
- Adding a configuration check to CI so risky MCP files are flagged on every push
- Finding API keys accidentally stored in plain text in client configuration files
- Auditing developer machines for servers that download unpinned code at every start
- Letting an agent check its own MCP configuration without starting other servers

## Install

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

```sh
claude mcp add mcp-audit -- npx -y @asterionsec/mcp-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": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-audit": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-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 mcp-audit -- npx -y @asterionsec/mcp-audit
```

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

```toml
[mcp_servers.mcp-audit]
command = "npx"
args = ["-y", "@asterionsec/mcp-audit"]
```

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

```json
{
  "mcpServers": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-audit npx -- -y @asterionsec/mcp-audit

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

```json
{
  "mcpServers": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-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": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-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": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-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": {
    "mcp-audit": {
      "command": "npx",
      "args": [
        "-y",
        "@asterionsec/mcp-audit"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `audit_mcp_configs`: Read-only audit of MCP configuration files, without starting other servers.

## FAQ

### Does MCP configuration audit send any data over the network?

No. It runs locally, makes no network request and has no dependencies. Remote servers are not contacted, even with the probe option.

### Which clients does MCP configuration audit read?

Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf and Cline.

### Does MCP configuration audit show my secrets?

No. Credentials are always shown masked, with only their first characters and length visible.

### Can MCP configuration audit detect every hidden secret?

No. Secrets with no recognised format under a neutral name are not found, and the static rules do not judge what a server does once it runs.

### Is MCP configuration audit free?

Yes. MCP configuration audit is open source, so you can use and self-host it for free.

### How do I add MCP configuration audit to Claude Code?

Run this command in your terminal: claude mcp add mcp-audit -- npx -y @asterionsec/mcp-audit

### What are the best alternatives to MCP configuration audit?

The closest alternatives to MCP configuration audit are MCP Config Auditor, MCP Config Auditor, MCP Security Guard, mcp-audit and MCP Server Security Scanner.

## Where this comes from

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

## Alternatives

- [MCP Config Auditor](https://ai-powered.com/mcp/mcp-config-auditor): MCP Config Auditor is an open-source MCP server for security.
- [MCP Config Auditor](https://ai-powered.com/mcp/mcp-config-auditor-2): MCP Config Auditor is a free 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.
- [MCP Server Security Scanner](https://ai-powered.com/mcp/mcp-server-security-scanner): MCP Server Security Scanner is a freemium MCP server for security.
- [MCP Customs](https://ai-powered.com/mcp/mcp-customs): MCP Customs is an open-source MCP server for security.
- [MCP Behave](https://ai-powered.com/mcp/mcp-behave): MCP Behave is an open-source MCP server for security.
- [MCPVetter](https://ai-powered.com/mcp/mcpvetter): MCPVetter is a freemium MCP server for security.

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