MCP.so
Sign In
M

MCP Code Analyzer

@mszewczy

About MCP Code Analyzer

A Model Context Protocol (MCP) server implementation for comprehensive code analysis. This tool integrates with Claude Desktop to provide code analysis capabilities through natural language interactions.

Basic information

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "code-analyzer": {
      "command": "python",
      "args": [
        "-m",
        "mcp_code_analyzer",
        "--analyze-paths",
        "C:\\Projects\\path1"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP Code Analyzer?

MCP Code Analyzer is a code analysis and management tool that integrates with Claude Desktop. It analyzes code at both project and file levels, providing insights for needed changes and ensuring related usages are updated when modifications are made.

How to use MCP Code Analyzer?

Install via pip install -e . after cloning the repository. Configure Claude Desktop by editing %AppData%\Claude\claude_desktop_config.json to point to your project paths using the --analyze-paths argument. Additional paths or files can be analyzed via chat messages.

Key features of MCP Code Analyzer

  • Project structure analysis in XML tree format
  • Project statistics and technology analysis
  • File and import analysis
  • Reference finding across the codebase
  • File operations with automatic version control backups
  • Line-by-line code modification (currently has issues)

Use cases of MCP Code Analyzer

  • Automatically updating all references when renaming or moving a function
  • Understanding project architecture and dependencies before making changes
  • Detecting unused imports or files across a codebase
  • Backing up and safely modifying code with version control support

FAQ from MCP Code Analyzer

What are the system requirements?

Python 3.10 or later and Windows (Linux/macOS support not yet tested).

Does MCP Code Analyzer modify or delete files?

Yes. The tool performs file operations that can modify or delete files. Always backup your codebase before using any modification features.

What working tools are available?

Project analysis tools (analyze_project_structure, analyze_project_statistics, analyze_project_technology), code analysis tools (analyze_imports, analyze_file, find_references), file operations (file_operations, version_control), and code_modifier (with known big issues).

Are there known limitations?

Chat context limitations may interrupt large file modifications. AI-generated documentation comments can affect code operation. Some tools are still in testing phase and may not work as expected.

Can I analyze multiple project paths?

Yes. Multiple project paths can be specified in the Claude Desktop configuration, and additional paths or files can be analyzed via chat messages with no limit on the number.

Comments

More Developer Tools MCP servers