drio
Open app

MCP Code Analyzer

Source

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.

Catalog onlyCatalog onlySTDIO

Overview

The MCP Code Analyzer is a Model Context Protocol (MCP) server implementation designed for comprehensive code analysis. It integrates with Claude Desktop to facilitate natural language interactions for code analysis and project management.

To use the MCP Code Analyzer, clone the repository, install the dependencies, and set up your Claude Desktop configuration according to the guidelines provided in the documentation. You can analyze various project files and paths using chat messages or configurations.

  • Intelligent project adaptation with code modifications. - Project and file-level code analysis. - Tools for analyzing project structures, code imports, file contents, and more. - Option to modify code line by line (warning: potential issues).
  1. Analyzing large codebase structures for insights.
  2. Facilitating code refactoring and modification.
  3. Running project statistics and technology analysis.
  4. Integration with Claude Desktop for enhanced user interactions.

Add to your AI client

Use these steps to connect MCP Code Analyzer in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-code-analyzer-emiryasar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-code-analyzer-emiryasar"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-code-analyzer-emiryasar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-code-analyzer-emiryasar"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-code-analyzer-emiryasar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-code-analyzer-emiryasar"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-code-analyzer-emiryasar": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-code-analyzer-emiryasar"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-code-analyzer-emiryasar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-code-analyzer-emiryasar"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-code-analyzer-emiryasar": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-code-analyzer-emiryasar"
      ]
    }
  }
}

FAQ

What programming languages does MCP Code Analyzer support?

The tool is written in Python and intended for projects in languages typically supported by the Claude integration.

Are there known issues?

Yes, the tool has some bugs and limitations, especially in context handling and code modifying features. Users are advised to backup their files.

How do I contribute to the project?

Contributions are welcome! You can fork the repository and submit pull requests for bug fixes, features, or documentation improvements.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":157,"uuid":"206ce0d9-8343-4bfe-9e85-f53e4c28445f","name":"mcp_code_analyzer","title":"MCP Code Analyzer","description":"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.","avatar_url":"https://avatars.githubusercontent.com/u/46162150?v=4","created_at":"2024-12-13T09:02:40.023Z","updated_at":"2024-12-13T09:49:53.277Z","status":"created","author_name":"emiryasar","author_avatar_url":"https://avatars.githubusercontent.com/u/46162150?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/emiryasar/mcp_code_analyzer","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/ea137b71d41290e33e831c0015bf1ec48d0709d3cad37e81c5458fe07df8ce86/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f4d51745a434b4e673133492f302e6a7067","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]

MCP Code Analyzer — MCP Registry