Code Quality Auditor: Analyze code for SOLID principles, DRY violations, and more
MCPpedia last refreshed this data
Code Auditor MCP Server is an MCP server that code Quality Auditor: Analyze code for SOLID principles, DRY violations, and more. Its tool list has not been published yet over stdio and http, requires no API key, and scores 89/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"code-auditor": {
"env": {
"CODE_AUDITOR_DATA_DIR": "/Users/you/Library/Application Support/code-auditor"
},
"args": [
"/absolute/path/to/code-auditor/app/dist/mcp-index.js",
"--stdio"
],
"command": "node"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Your AI understands your code across languages. Code Auditor indexes your entire codebase (TypeScript, JavaScript, and Go) and provides real-time analysis that AI assistants like Claude can actually use to help you write better code.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'code-auditor-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked code-auditor-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Code Auditor MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
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.
"Index the codebase and run a full audit. Create tasks from any violations."
"Create a .codeauditor.json that bans lodash imports and prevents src/languages/ from importing anything in src/analyzers/."
"Run a full code audit and create tasks from the violations."
"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/."
Five kinds. The agent writes them to .codeauditor.json. Bad configs fail the audit, not silently.
| Kind | What it blocks |
|---|---|
import-ban | Banned module imports |
call-constraint | Function calls from unauthorized files |
module-boundary | Imports across module boundaries |
naming | Exported symbols not matching a pattern |
ast-pattern | AST nodes matching an ast-grep pattern |
style-mechanism | Unapproved style mechanisms per file/glob |
no-raw-values | Hardcoded values for specific CSS properties |
One skill, one CLI, one MCP server. Every agent gets the same audit engine — the hook contract is the only difference.
| Agent | Skill | Hooks / Blocking | MCP | Verified |
|---|---|---|---|---|
| Claude Code | Plugin or code-audit install | Yes — blocking | Yes | 2026-07-19 |
| Cursor | code-audit install --agent cursor (project-only) | Advisory | Yes | 2026-07-19 |
| Codex | code-audit install --agent codex + plugin | Yes — blocking | Yes | 2026-07-19 |
| Gemini CLI | code-audit install --agent gemini | No | Yes | 2026-07-19 |
| VS Code / Copilot | code-audit install --agent agents | No | Yes | 2026-07-19 |
| Other SKILL.md tools | code-audit install --agent agents | No | Yes | 2026-07-19 |
Hook behavior: Blocking means violations at or above --fail-on severity prevent 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.
Code Auditor's built-in rules fall into two categories:
| Category | Meaning | Examples |
|---|---|---|
| Deterministic | Structural fact — an engineer would act on every finding | single-responsibility (300-line functions), solid/method-complexity (cyclomatic complexity > 20), solid/class-size (40+ method classes), dependency-inversion (concrete imports where an interface exists) |
| Advisory | Heuristic signal — may be wrong depending on domain | sql-injection-risk (AST-level string-pattern matching without type info), missing-org-filter (domain-specific — assumes SaaS tenant isol |