CodeRAG
Advanced graph-based code analysis for AI-assisted software development
claude mcp add --transport stdio jonnoc-coderag docker run -i coderag:latest \ --env NEO4J_URL="bolt://neo4j:7687" \ --env NEO4J_PASSWORD="password" \ --env NEO4J_USERNAME="neo4j" \ --env CODE_RAG_REMOTE_REPO_TOKEN="your-token-if-needed"
How to use
CodeRAG is an enterprise-grade code intelligence platform that maps your codebases into a rich knowledge graph using Neo4j. It analyzes multiple languages to identify classes, methods, dependencies, architectural relationships, and project structure. It can scan remote repositories directly from GitHub, GitLab, or Bitbucket, including private repositories with secure authentication, and it provides semantic code search to answer natural-language queries like “show me where a specific API is used across projects.” The platform also surfaces quality metrics such as CK metrics and coupling patterns to help identify technical debt and opportunities for modernization. With multi-project management, CodeRAG enables enterprise teams to manage and compare several codebases from a single interface, making cross-project analysis and governance feasible. To get started, deploy the CodeRAG server (via the Docker image in this document), point it at your Neo4j instance, and connect your AI tooling or dashboards to leverage the semantic search, relationship mapping, and architectural analysis features.
How to install
Prerequisites:
- Docker installed on your host (Docker Engine and Docker CLI)
- Access to a Neo4j instance (URL, username, and password)
Installation steps:
-
Pull the CodeRAG Docker image (or build it if you have a custom image): docker pull coderag:latest
-
Run the CodeRAG container with required environment variables and a link to Neo4j: docker run -d --name coderag
-e NEO4J_URL=bolt://neo4j:7687
-e NEO4J_USERNAME=neo4j
-e NEO4J_PASSWORD=password
-p 8080:8080
coderag:latest -
Verify the service is running and accessible (adjust port mapping as needed). If you need to connect to a remote Neo4j instance, ensure network access and proper credentials are configured via the environment variables above.
-
Optional: configure remote repository access tokens and security settings as required by your environment. You can establish connectivity to GitHub/GitLab/Bitbucket using the platform’s built-in authentication mechanisms.
-
Connect your client tools or dashboards to the exposed API endpoints provided by CodeRAG to start scanning projects and querying the knowledge graph.
Additional notes
Tips and common issues:
- Ensure your Neo4j instance is reachable from the CodeRAG container. Network routing or VPNs may require additional configuration.
- For private repositories, provide a valid access token or SSH key configuration as required by your integration method.
- If you scale to multiple projects, use the multi-project management features to isolate analyses while enabling cross-project insights.
- The semantic search capability relies on embeddings; ensure your deployment has sufficient resources (CPU/Memory) to support indexing and query workloads.
- If you encounter connection errors to Neo4j, verify that the NEO4J_USERNAME and NEO4J_PASSWORD are correct and that the Bolt port (default 7687) is reachable from the container.
- Monitor container logs (docker logs coderag) for startup progress and error messages to diagnose issues quickly.
Related MCP Servers
Mantic.sh
A structural code search engine for Al agents.
pluggedin-app
The Crossroads for AI Data Exchanges. A unified, self-hostable web interface for discovering, configuring, and managing Model Context Protocol (MCP) servers—bringing together AI tools, workspaces, prompts, and logs from multiple MCP sources (Claude, Cursor, etc.) under one roof.
furi
CLI & API for MCP management
mcp-rag
mcp-rag-server is a Model Context Protocol (MCP) server that enables Retrieval Augmented Generation (RAG) capabilities. It empowers Large Language Models (LLMs) to answer questions based on your document content by indexing and retrieving relevant information efficiently.
mcp-dingding-bot
MCP Server for send text/markdown message via dingding (aka dingtalk) group custom robot
mcp-for-database
MCP Database Console is a revolutionary web application that bridges the gap between natural language and database queries. Built with Next.js and powered by the MCP-DB Connector, it allows users to interact with databases using plain English instead of complex SQL syntax.