Anthropic MCP Code Analyzer
kivo360/anthropic-mcp-code-analyzer · 12 stars · JavaScript
MCP server An MCP server for analyzing open source projects and assisting with codebase integration
Install
The repo has no one-line install. Follow its README.
Files
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
- Clone the repository:
git clone https://github.com/kivo360/anthropic-mcp-code-analyzer.git cd anthropic-mcp-code-analyzer
- Install dependencies:
npm install
- Set up environment variables:
export ANTHROPIC_API_KEY=your_api_key export PORT=3000 # Optional, defaults to 3000
Usage
- Start the server:
npm start
- 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
-
Repository Analysis
- Clones both source and target repositories
- Analyzes code structure using AST parsing
- Extracts patterns and dependencies
- Processes documentation
-
Pattern Detection
- Identifies common coding patterns
- Maps dependencies and relationships
- Analyzes architectural decisions
-
Merge Strategy Generation
- Uses Claude to analyze compatibility
- Generates step-by-step integration plan
- Identifies potential conflicts
- Suggests refactoring steps
-
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.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 12
- Language
- JavaScript
- Last push
- 2025-02-04
- Forks
- 2
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k