Code Analyzer
About
Integrates with open source projects to analyze codebases, detect patterns, and generate intelligent merge strategies for streamlined integration and refactoring.
Details
- Author
- kivo360
- Repository
- kivo360/anthropic-mcp-code-analyzer
- GitHub stars
- 5
- Downloads
- 487
- Categories
- Developer Tools, Design, Workplace, File Management, AI, Project Management, Frontend
- Tags
- #integration
Jump to
- Repository analysis and code pattern detection
- Documentation extraction and processing
- Intelligent merge strategy generation using Claude
- AST-based code analysis
- Dependency tracking
- Architecture pattern detection
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Code AnalyzerCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
1. Start the server:
npm start
2. Analyze repositories and get merge strategies:
curl -X POST http://localhost:3000/analyze \
-H "Content-Type: application/json" \
-d '{
"sourceRepo": "https://github.com/user/source-repo.git",
"targetRepo": "https://github.com/user/target-repo.git"
}'
The server will return:
- Source repository analysis
- Target repository analysis
- Recommended merge strategy
- Potential conflicts and solutions
analyze
Analyzes source and target repositories and generates a merge strategy. Parameters: sourceRepo (string), targetRepo (string)
health
Health check endpoint to verify server status.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"code analyzer": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
Anthropic MCP Code Analyzer
An MCP server that helps analyze open source projects and integrate them with your existing codebase. This tool uses Claude to analyze code patterns, architecture, and documentation to provide intelligent merge strategies.
Features
- Repository analysis and code pattern detection
- Documentation extraction and processing
- Intelligent merge strategy generation using Claude
- AST-based code analysis
- Dependency tracking
- Architecture pattern detection
Installation
1. Clone the repository:
git clone https://github.com/kivo360/anthropic-mcp-code-analyzer.git
cd anthropic-mcp-code-analyzer
2. Install dependencies:
npm install
3. Set up environment variables:
export ANTHROPIC_API_KEY=your_api_key
export PORT=3000 # Optional, defaults to 3000
Usage
1. Start the server:
npm start
2. Analyze repositories and get merge strategies:
curl -X POST http://localhost:3000/analyze \
-H "Content-Type: application/json" \
-d '{
"sourceRepo": "https://github.com/user/source-repo.git",
"targetRepo": "https://github.com/user/target-repo.git"
}'
The server will return:
- Source repository analysis
- Target repository analysis
- Recommended merge strategy
- Potential conflicts and solutions
API Endpoints
POST /analyze
Analyzes source and target repositories and generates a merge strategy.Request body:
{
"sourceRepo": "string",
"targetRepo": "string"
}
GET /health
Health check endpoint to verify server status.How it Works
1. Repository Analysis
- Clones both source and target repositories
- Analyzes code structure using AST parsing
- Extracts patterns and dependencies
- Processes documentation
2. Pattern Detection
- Identifies common coding patterns
- Maps dependencies and relationships
- Analyzes architectural decisions
3. Merge Strategy Generation
- Uses Claude to analyze compatibility
- Generates step-by-step integration plan
- Identifies potential conflicts
- Suggests refactoring steps
4. Documentation Processing
- Extracts and analyzes documentation
- Maps knowledge between codebases
- Provides context for decisions
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





