Provides containerized deployment of Neo4j database for easier setup and configuration
Clones repositories for code analysis and scanning
Parses JavaScript projects to extract code structure, relationships, and metrics for analysis
Builds a comprehensive graph database of code structure, enabling storage and analysis of classes, methods, relationships, and dependencies
Parses Python projects to extract code structure, relationships, and metrics for analysis
Parses TypeScript projects to extract code structure, relationships, and metrics for analysis
CodeRAG - Graph-Powered Code Analysis
Transform your codebase into an intelligent knowledge graph for AI-powered insights
CodeRAG is a revolutionary tool that builds a comprehensive graph database of your code structure using Neo4J. By mapping classes, methods, relationships, and dependencies, it enables AI assistants to understand your codebase at a deeper level and provide more accurate, context-aware assistance.
What CodeRAG Does
🔍 Smart Code Scanning - Automatically analyzes your codebase and builds a detailed graph of all classes, methods, interfaces, and their relationships
📊 Quality Insights - Calculates industry-standard metrics (CK metrics, package coupling, architectural patterns) to identify code smells and improvement opportunities
🤖 AI Integration - Connects seamlessly with AI coding assistants through the Model Context Protocol (MCP), giving them deep understanding of your code structure
🏗️ Architecture Analysis - Visualizes inheritance hierarchies, dependency chains, and architectural patterns to help you understand complex codebases
Perfect For
- Code Reviews - Get AI assistance that understands your entire codebase context
- Onboarding - Help new team members quickly understand large, complex projects
- Refactoring - Identify tightly coupled code, circular dependencies, and architectural issues
- Documentation - Generate insights about code relationships and design patterns
- Legacy Analysis - Map and understand inherited codebases with complex structures
Supported Languages
- TypeScript & JavaScript
- Java
- Python
- C# (coming soon)
Quick Start
Get up and running in 5 minutes:
- Clone and Install
- Setup Neo4J Database (see our detailed guide for help)
- Configure Environment
- Scan Your First Project
- Connect to Your AI AssistantAdd to your AI tool's MCP configuration:
📖 Read the Complete User Guide for detailed setup instructions, AI tool integrations, and advanced usage.
Key Features
- 🔧 Automated Scanning - Parses TypeScript, JavaScript, Java, and Python projects
- 🎯 Smart Analysis - Identifies classes, methods, interfaces, inheritance, and dependencies
- 📈 Quality Metrics - CK metrics, package coupling, architectural issue detection
- 🤖 AI-Ready - Integrates with Claude Code, Windsurf, Cursor, VS Code Continue, and more
- 💡 Guided Prompts - Interactive workflows for code analysis and exploration
- 🔄 Dual Modes - STDIO for direct AI integration, HTTP for web-based tools
Example Use Cases
🕵️ Code Investigation
"Show me all the classes that call the authenticate
method"
🏗️ Architecture Review
"What are the architectural issues in this codebase?"
📊 Quality Assessment
"How complex is my UserService class?"
🔍 Dependency Analysis
"What does this class depend on and what depends on it?"
Common Commands
Documentation
📚 Complete User Guide - Detailed setup, integrations, and workflows
Contributing
Contributions welcome! Please read our contributing guidelines and submit pull requests to help improve CodeRAG.
License
MIT - see LICENSE for details.
This server cannot be installed
An MCP server that transforms codebases into knowledge graphs using Neo4J, enabling AI assistants to understand code structure, relationships, and metrics for more context-aware assistance.
Related MCP Servers
- AsecurityFlicenseAqualityAn MCP server that enables LLMs to understand and analyze code structure through function call graphs, allowing AI assistants to explore relationships between functions and analyze dependencies in Python repositories.Last updated -67Python
- -securityFlicense-qualityAn MCP server that enables graph database interactions with Neo4j, allowing users to access and manipulate graph data through natural language commands.Last updated -Python
- -securityAlicense-qualityEnhanced knowledge graph memory server for AI assistants that uses Neo4j as the backend storage engine, enabling powerful graph queries and efficient storage of user interaction information with full MCP protocol compatibility.Last updated -TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.Last updated -10PythonMIT License