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.
More Developer Tools MCP servers
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
Minecraft MCP Server
yuniko-softwareA Minecraft MCP Server powered by Mineflayer API. It allows to control a Minecraft character in real-time, allowing AI assistants to build structures, explore the world, and interact with the game environment through natural language instruction
Smithery CLI
smithery-aiInstall, manage and develop MCP servers and skills for agents
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps
Comments