Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.
PopNx MCPMCP servers for people who use AI · explained in plain words

Code Auditor MCP

by BenAHammondversion 5.0.2i★ 8iComputer or cloud
Registry nameio.github.BenAHammond/code-auditor-mcp

How to install

What it does

Enforces architectural invariants and code quality rules inside your AI agent's edit loop.

  • Connects Computer or cloud
  • Account or key No key needed
  • Category Developer tools

Install

Pick the AI app you use, then copy the settings.

Passed 5/5 checks · What you ask goes through the maker’s server (www.codeauditormcp.com)

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude · about 2 min

No key, nothing to install · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it

  1. Open Claude’s Connectors page

    CustomizeConnectors

    CustomizeConnectors1+ Add2https://…3Add4
  2. Click “+ Add” → “Add custom connector” and fill in these 2 fields

    Copy each value into the field with the same name in Claude, then click Continue

    Name · NameCode Auditor MCP
    Remote MCP server URL · Addresshttps://www.codeauditormcp.com/api/mcp

    Leave Authentication as Claude detected it, then click Add

  3. Turn it on in a chat

    +ConnectorsCode Auditor MCP

  4. Try it

    Use Code Auditor MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Code Auditor MCP or shows a Code Auditor MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with ChatGPT on business plans only

ChatGPT Business, Enterprise or Edu on the web, added by a workspace admin or owner · On Free, Plus or Pro: your ChatGPT plan cannot connect MCP yet

  1. Open ChatGPT’s add-MCP page on the web

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. Fill in the name and address

    Enter a name, paste the address under Connection, tick the risk warning and click Create as a plugin

    Name · NameCode Auditor MCP
    Connection · Addresshttps://www.codeauditormcp.com/api/mcp
  3. Pick Code Auditor MCP in a chat

    Start a new chat and pick Code Auditor MCP from your plugins before typing

  4. Try it

    Use Code Auditor MCP and tell me what you can do for me, then show me one thing

    ✓ If ChatGPT says it is using Code Auditor MCP or shows a Code Auditor MCP tool in the answer, you are connected

Menu names checked against OpenAI’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Claude Code · about 2 min

No key, nothing to install

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  2. Paste this command and press Enter

    claude mcp add --transport http --scope user code-auditor https://www.codeauditormcp.com/api/mcp
  3. Type /mcp in Claude Code

    You should see Code Auditor MCP listed as connected

  4. Try it

    Use Code Auditor MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Code Auditor MCP or shows a Code Auditor MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor · about 2 min

No key, nothing to install

  1. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  2. Open the AI chat in Cursor in Agent mode

  3. Try it

    Use Code Auditor MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Code Auditor MCP or shows a Code Auditor MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code · about 2 min

No key, nothing to install

  1. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  2. Open the AI chat in VS Code in Agent mode

  3. Try it

    Use Code Auditor MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Code Auditor MCP or shows a Code Auditor MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

Address for apps that connect over the web

Addresshttps://www.codeauditormcp.com/api/mcp

JSON settings are under “For developers” below

Stuck? Ask people who use Code Auditor MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Over the web

Claude Code

claude mcp add --transport http --scope user code-auditor https://www.codeauditormcp.com/api/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "code-auditor": {
      "url": "https://www.codeauditormcp.com/api/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "code-auditor": {
      "type": "http",
      "url": "https://www.codeauditormcp.com/api/mcp"
    }
  }
}

Installed on your computer

Claude Code

claude mcp add --scope user code-auditor -- npx -y code-auditor-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "code-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "code-auditor-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "code-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "code-auditor-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "code-auditor": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "code-auditor-mcp"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
630/wk
Connection
Computer or cloud
Transport
stdio, streamable-http
Latest versioni
5.0.2
Published to registryi
Oct 10, 2026
Code last changedi
Oct 26, 2026
Maker
BenAHammond
Packages
npm: code-auditor-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Connect over the internet in

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Tool names and descriptions exactly as the server reported them on Nov 12, 2026. The maker wrote them, not us; we show them as plain text.

  • get_install_commands

    Return the exact install commands for Code Auditor for a given AI agent. Call this when a user asks how to install Code Auditor, or asks for the command for a specific agent (claude, cursor, codex, gemini, agents, zcode, or all).

  • lookup_rule

    Return the rule kind, description, default severity, detection method, and threshold for a given Code Auditor rule or analyzer. Call this when a user asks what a specific rule does (e.g. import-ban, sql-injection, n+1).

  • explain_symptom

    Map a natural-language symptom (e.g. 'my app is slow', 'hardcoded password', 'infinite react loop') to the relevant Code Auditor rule(s) and their fixes. Call this when a user describes a problem rather than naming a rule.

  • request_rule

    Request a new Code Auditor rule. Call lookup_rule or explain_symptom first to confirm no existing rule covers it. Provide a minimal example that should be flagged and a corrected example that should not. Reduce both to the smallest code that shows the difference, and remove secre

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 12, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account BenAHammond, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 17 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • ✓ Pass

    Endpoint responds

    Responded in 288 ms (HTTP 200)

  • – Not applicable

    Sign-in with OAuth

    No sign-in needed

  • ✓ Pass

    No hidden instructions in tool descriptions

    Read 4 tool descriptions and found no hidden instructions to the AI

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Developer toolsi

  • More stars than 88% of the other 5813 servers in this category
  • Published to the registry more recently than 48% of the other 5813 servers in this category
  • Basic checks equal to or better than 100% of the other 5813 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Code Auditor MCP safe?

It passed 5 of 5 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

Either way works: install it on your computer or connect to the cloud version.

Is it still maintained?

The GitHub repo last changed 17 days ago, and the latest version (5.0.2) reached the registry 33 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT Business and above.

What can I use instead?

In the same category: REA, GitHub, Serena MCP: the IDE for your agent

Others in the same category

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

REA

Reverse engineer anything from your terminal or agent with one CLI and MCP server.

by morlutoWidely used↓ 388.7K/wk★ 453.3KUpdated today

Runs on your computer

GitHub

GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.

by githubWidely used★ 34.4KUpdated 9 days ago

Computer or cloud

Serena MCP: the IDE for your agent

A powerful toolkit for coding, providing semantic retrieval and editing capabilities.

by oraiosWidely used↓ 35.2K/wk★ 31.3KUpdated 6 months ago

Runs on your computer

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Code Auditor

Architectural invariants enforced inside your AI agent's edit loop. When the agent writes code that breaks a project rule, Code Auditor catches it and blocks the edit. The agent sees the rule's message and fixes itself.

Install

npm install -g code-auditor-mcp

code-audit install --agent all

Two commands to install everywhere. code-audit install --agent all copies the skill to every AI coding tool on your machine. Use --agent for specific tools.

What you get per tool: the skill (SKILL.md), MCP server access, and hook wiring where the tool supports it (blocking on Claude Code and Codex, advisory on Cursor).

code-audit install --list   # see the support matrix

Claude Code users can also install via plugin:

claude plugin marketplace add BenAHammond/code-auditor-mcp

claude plugin install code-auditor

The hook auto-installs the auditor on first use via npx.

Requirements

  • Node 18+ to run. Node 23.4+ gets the zero-native-install path: Code Auditor uses the built-in node:sqlite module, so nothing needs to compile or download a prebuilt binary on install.
  • On older Node (18–23.3), Code Auditor falls back to better-sqlite3, an *optional* dependency whose install script must be approved once on npm 11.2+/12 (they block dependency install scripts by default): npm install-scripts approve better-sqlite3 && npm rebuild better-sqlite3 (with pnpm: pnpm approve-builds, then select better-sqlite3).

Configuration

Project-level settings live in .codeauditor.json (invariant rules, analyzer settings, and thresholds). Eleven environment variables additionally tune process-scoped behavior — worker pool size, daemon and job-queue timeouts, the index location, the SQLite backend, and the UI port.

VariablePurposeAccepted valuesDefault
CODE_AUDITOR_WORKERSPhase-model worker pool size for per-file fan-out. 1 forces the serial path for byte-identical reports.Positive integermax(1, cpus − 1)
CODE_AUDITOR_RULE_TIMINGPer-rule wall-time accounting (one accumulated timer per rule ID, surfaced in the report).1 enables; unset disablesOff
CODE_AUDITOR_DAEMON_IDLE_MSIdle timeout before the daemon shuts down.Positive finite ms; invalid → default300000 (5 min)
CODE_AUDITOR_DAEMON_LEASE_TTL_MSDaemon heartbeat lease TTL.Finite ms; blank/0 → default60000 (60 s)
CODE_AUDITOR_DATA_DIROverrides the code-index database directory.Directory path (trimmed; blank → default)user-level OS cache
CODE_AUDITOR_EXIT_ON_FATALExit the MCP server on an uncaught exception / unhandled rejection.1 or trueOff
CODE_AUDITOR_JOB_TIMEOUT_MSPer-job timeout for queued audits.Finite ms, clamped to 60s–4h; below the floor → default1800000 (30 min)
CODE_AUDITOR_JOB_LEASE_TTL_MSHeartbeat lease TTL for reclaiming stale running job rows.Strictly positive finite ms; invalid → default30000 (30 s)
CODE_AUDITOR_MAX_RUNNING_JOBSMax concurrently running queued audit jobs.Integer ≥ 1; invalid → default1
CODE_AUDITOR_SQLITE_BACKENDForces a SQLite backend. An invalid value is reported as invalid and rejected — never silently probed past.node-sqlite \better-sqlite3Auto (probe)
MCP_UI_PORTHTTP UI server port (--ui).Port number; invalid → default3001

When CODE_AUDITOR_DATA_DIR is set, the index is scoped per project ( /projects/ /index.db) so projects can't leak data into each other. When unset, the index lives in a user-level OS cache ( /code-auditor/projects/ /index.db) so it never lands inside the audited repo.

Prompt examples

"Index the codebase and run a full audit, then walk the violations file-by-file with `code-audit next-file`."

"Create a `.codeauditor.json` that bans lodash imports and prevents `src/languages/` from importing anything in `src/analyzers/`."

"Run a full audit, fix the highest-priority file, and repeat `code-audit next-file` until the tree is clean."

"Sync the code index and audit only what changed vs main."

"Add an ast-pattern rule that blocks `new Function(...)`."

"Add a naming rule requiring hooks in `src/hooks/` to start with `use`."

"Add a call-constraint so `chargeCustomer()` in `src/services/payment.ts` can only be called from `src/api/`."

Rule kinds

Seven kinds. The agent writes them to .codeauditor.json. Bad configs fail the audit, not silently.

KindWhat it blocks
import-banBanned module imports
call-constraintFunction calls from unauthorized files
module-boundaryImports across module boundaries
namingExported symbols not matching a pattern
ast-patternAST nodes matching an ast-grep pattern
style-mechanismUnapproved style mechanisms per file/glob
no-raw-valuesHardcoded values for specific CSS properties

Works with your agent

One skill, one CLI, one MCP server. Every agent gets the same audit engine — the hook contract is the only difference.

AgentSkillHooks / BlockingMCPVerified
Claude CodePlugin or code-audit installYes — blockingYes2026-07-19
Cursorcode-audit install --agent cursor (project-only)AdvisoryYes2026-07-19
Codexcode-audit install --agent codex + pluginYes — blockingYes2026-07-19
Gemini CLIcode-audit install --agent geminiNoYes2026-07-19
VS Code / Copilotcode-audit install --agent agentsNoYes2026-07-19
Other SKILL.md toolscode-audit install --agent agentsNoYes2026-07-19
ZCodecode-audit install --agent zcodeNo (plugin-scoped)Yes2026-09-10

MCP config generation covers a wider set than skill install. The MCP server's generate tool writes a client config file for any of claude, codex, cursor, gemini, copilot, continue, awsq (AWS Q Developer), codeium (Codeium/Windsurf), vscode, cline, and zcode. Four of those — Continue, AWS Q Developer, Codeium/Windsurf, and Cline — are MCP-only: they have no file-based skill or hook path, so they connect through the generate tool rather than code-audit install.

Hook behavior: Blocking means the diff-scoped changed gate is tripped — an invariant rule that declares gating: true (a binary, per-rule flag, independent of severity) blocks the edit from landing (the agent sees the violation and fixes inline). Advisory means violations are reported through the strongest available feedback channel but the edit has already occurred. Cursor's afterFileEdit hook is fire-and-forget with no output consumption. MCP is available everywhere for shell-less use.

Findings: Deterministic vs Advisory

Code Auditor's built-in rules fall into two categories:

CategoryMeaningExamples
DeterministicStructural fact — an engineer would act on every findingsingle-responsibility (300-line functions), solid/method-complexity (cyclomatic complexity > 20), solid/class-size (40+ method classes), dependency-inversion (concrete imports where an interface exists)
AdvisoryHeuristic signal — may be wrong depending on domainsql-injection-risk (AST-level string-pattern matching without type info), missing-org-filter (domain-specific — assumes SaaS tenant isolation), unknown-table (requires user-provided schema), dry/duplicate (token-identical blocks)

Deterministic rules ship at critical or severe. Advisory rules ship at severe or high. Rules proven near-zero precision on a real corpus are disabled by default (off) — users opt in when the rule matches their domain.

Recalibration

Built-in severity defaults are recalibrated from real-corpus triage. The current defaults reflect measurement on three corpora: this tool's own codebase, Gin, and Excalidraw. Six data-access rules that produced near-zero precision across all three corpora are disabled by default.

Every disabled rule documents what corpus it *would* be useful on. Users can restore any rule via severityOverrides in .codeauditor.json:

{

"severityOverrides": { "sql-injection-risk": "critical", "missing-org-filter": "severe", "loop-query": "severe" } }

Severity overrides apply globally (before per-directory path profile caps). Setting a rule to "off" removes it from the output entirely.

SQL Injection Detection

The sql-injection-risk rule is disabled by default (off) after recalibration. On the self-audit corpus, it produced 0% precision — the rule misinterpreted TypeScript pattern-matching code (string constants like 'SELECT', 'FROM', 'WHERE' used for the tool's own SQL detection) as database queries. On the Gin and Excalidraw corpora, precision was also near zero.

When to re-enable it: your project's SQL is constructed via string concatenation or template literals in functions whose sole purpose is query assembly. The rule detects those patterns. For codebases using ORMs or parameterized queries exclusively, the rule produces noise.

To re-enable and block on SQL injection:

{

"severityOverrides": { "sql-injection-risk": "critical" } }

With sql-injection-risk: critical (and the rule marked gating), your agent's hook will block edits that introduce AST-level SQL injection patterns.

Dismissals

Every finding is a measurement, not a verdict — but measurements are occasionally wrong. When the agent hits a false positive (the rule is right in general, wrong for this specific code), it can dismiss *that one instance* rather than work around it:

code-audit dismiss <fingerprint> --reason "generated code, not hand-written"

The comes from the JSON report (every violation carries a fingerprint field). A written `--reason` is required, and the dismissal clears exactly one finding — rule + file + symbol — so the same rule still fires everywhere else. Dismissals live in a committed .codeauditor.dismissals.json, reviewable in a diff.

Anonymous dismissal feedback (opt-in)

The reason an agent gives for dismissing a finding is the most useful signal for improving the rules. Code Auditor can send dismissed findings to an anonymous feedback service that collects them.

It is off by default and turned on only by an explicit opt-in, via any of three methods (in precedence order):

  1. per-invocation — code-audit dismiss --telemetry … sends just that one dismissal; --no-telemetry suppresses one.
  2. environment — CODE_AUDITOR_TELEMETRY=1 (or 0) as a machine-level default for headless/CI runs.
  3. persisted — code-audit telemetry status|enable|disable (or the telemetry MCP tool), which records the choice in your user config dir.

telemetry enable needs no arguments: it opts in against the built-in service endpoint (overridable for self-hosting). Opting in generates an anonymous install ID: a random value generated locally, never derived from your machine, user, or project, used only to group submissions by source.

What is sent — the tool version, the rule ID, the urgency level, the dismissal reason exactly as typed, a structural AST signature (grammar kinds only, never their contents), a coarse language hint, a timestamp, and the anonymous install ID. What is never sent — source code, identifiers, literals, file paths, or anything derived from your code or environment. Sending is best-effort: offline or an unreachable endpoint is silent and never blocks an edit or fails a gate.

Style Intelligence

Co

Only the beginning is shown; read the rest in the repo