home / mcp / mcp code analysis & quality server

MCP Code Analysis & Quality Server

Provides three MCP servers for static analysis, dependency analysis, and code complexity, plus an intelligent prioritizer.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "cbunting99-mcp-code-analysis-server": {
      "command": "node",
      "args": [
        "/path/to/mcp-code-analysis-server/packages/static-analysis-server/dist/index.js"
      ],
      "env": {
        "NODE_ENV": "development"
      }
    }
  }
}

You work with MCP servers that analyze code quality, manage dependencies, and measure code complexity, all while leveraging an intelligent prioritization library. This suite helps you maintain high-quality code, surface security concerns, and prioritize issues based on context and learning-driven insights.

How to use

To use these MCP servers, run them locally or in your environment and connect via your MCP client. Each server exposes its capabilities so you can perform static analysis, dependency analysis, and complexity measurements as part of your automated workflows. The Intelligent Prioritizer library is used by the other servers to rank issues and recommendations based on context and learned patterns.

How to install

Prerequisites: install Node.js 18.0 or higher and npm 8.0 or higher, and ensure Git is available.

Now install and build the packages, then start the servers for local testing. Use these commands in sequence:

# Clone the repository
git clone <repository-url>
cd mcp-code-analysis-server

# Install all dependencies
npm install

# Build all packages
npm run build

Configuration and running servers

After building, you configure your MCP client to connect to the servers. The following stdio configurations use Node to execute the built server entry points.

{
  "mcpServers": {
    "static_analysis": {
      "command": "node",
      "args": ["/path/to/mcp-code-analysis-server/packages/static-analysis-server/dist/index.js"],
      "env": {
        "NODE_ENV": "development"
      }
    },
    "dependency_analysis": {
      "command": "node",
      "args": ["/path/to/mcp-code-analysis-server/packages/dependency-analysis-server/dist/index.js"],
      "env": {
        "NODE_ENV": "development"
      }
    },
    "complexity_analyzer": {
      "command": "node",
      "args": ["/path/to/mcp-code-analysis-server/packages/complexity-analyzer-server/dist/index.js"],
      "env": {
        "NODE_ENV": "development"
      }
    }
  }
}

Security and maintenance notes

This project is a newly completed suite and may require additional testing in production scenarios. Monitor for issues and report findings to improve reliability and security over time.

Available tools

Static analysis

Performs code quality checks, security vulnerability detection, and best practices validation across multiple languages.

Dependency analysis

Analyzes dependencies, checks compatibility, scans for security vulnerabilities, and resolves versions.

Complexity analysis

Measures code complexity and assesses maintainability through structural analysis.

Intelligent prioritizer

AI-powered prioritization library used by other servers to rank issues and recommendations.