Back to Home
Shashankss1205 icon

CodeGraphContext

Verified Safe

by 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

Run Command
cgc start

Environment 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

Stats

Interest Score88
Security Score8
Cost ClassMedium
Avg Tokens750
Stars201
Forks253
Last Update2025-11-19

Tags

Code AnalysisGraph DatabaseAI AssistantLLM ToolNeo4jMulti-language