CodeGraphContext
Verified Safeby Shashankss1205
Overview
An MCP server that indexes local code into a Neo4j graph database to provide real-time, accurate context and relationship analysis to AI assistants for understanding, writing, and refactoring code.
Installation
cgc startEnvironment Variables
- NEO4J_URI
- NEO4J_USERNAME
- NEO4J_PASSWORD
Security Notes
The server uses environment variables for Neo4j credentials, which is a good practice. It explicitly disallows write operations (CREATE, MERGE, DELETE, etc.) in `execute_cypher_query_tool` by stripping string literals before checking for forbidden keywords, mitigating Cypher injection risks for read-only queries. The `package_resolver.py` module uses `subprocess.run` to execute external commands (`npm`, `go`, `gem`, `pkg-config`), which introduces an inherent, albeit managed, risk if command arguments are not sufficiently sanitized or if the system's PATH is compromised. The setup wizard (`setup_wizard.py`) may execute `sudo` commands for local binary installations, requiring user trust.
Similar Servers
code-index-mcp
Provides intelligent code indexing, searching, and analysis capabilities for large language models to understand and navigate codebases.
chunkhound
Transforms codebases into searchable knowledge bases for AI assistants using semantic search and regex search, with deep research capabilities for code and files.
codegraph-rust
CodeGraph transforms your codebase into a semantically searchable knowledge graph to augment AI coding assistants with deep understanding and advanced reasoning capabilities beyond simple file searching.
tree-sitter-analyzer
Enterprise-grade code analysis and structural extraction across multiple programming languages, optimized for AI assistant integration via MCP protocol to assist in development workflows and token optimization.