Code MCP Server

Code Quality Auditor: Analyze code for SOLID principles, DRY violations, and more

Local serverstdioTypeScript

What is the Code MCP Server?

Code Quality Auditor: Analyze code for SOLID principles, DRY violations, and more

What the server does

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
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

How to install the Code MCP Server

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

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use Code to Kind.”
  • “Use Code to import-ban.”
  • “Use Code to call-constraint.”

Frequently asked questions

Code Quality Auditor: Analyze code for SOLID principles, DRY violations, and more Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.