MCP server and CLI toolkit that indexes local code into a graph database so Claude can query functions, call chains, dependencies, and repository structure.
CodeGraphContext indexes repository contents and can expose code structure, symbols, dependencies, comments, filenames, and relationships to Claude., Live file watching can keep graph data updated as files change, so verify the watched tree before enabling it on private workspaces., External graph databases can retain indexed source metadata after the MCP session ends., Generated graph context may include prompt-injection text from comments, documentation, fixtures, tests, or vendored files., Review database credentials, ignored paths, and repository scope before connecting the server to an MCP client.
Privacy notes
Source code, file paths, symbol names, comments, dependency names, call graphs, class hierarchies, search terms, prompts, graph queries, and tool outputs may be visible to the MCP client and model provider., Indexing proprietary repositories can reveal architecture, product plans, credentials accidentally committed to code, internal package names, or security-sensitive paths., If using a remote graph backend, review its authentication, retention, backups, logging, and access controls before indexing private code., Remove or ignore secrets, customer data, generated dumps, logs, and vendor directories before building code graphs for model access.
Author
CodeGraphContext
Submitted by
oktofeesh1
Claim status
unclaimed
Last verified
2026-06-05
Decision playbook
Review trust signals before you adopt
Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.
Compare context
Selected
0
Current score
63
Baseline
—
Delta
No baseline selected
No major trust-signal divergence detected in the current selection.
Source and provenance checks
Needs review
Confirm ownership and provenance before trusting install instructions.
Source link availableRequired
Open the canonical repository and verify ownership.
Done
Source provenance statusRequired
Marked as source-backed.
Done
Metadata reviewed
No reviewed flag detected in metadata.
Pending
Safety and privacy checks
Complete
Validate risk disclosures before installation or API wiring.
Safety notes presentRequired
Review the listed safety guidance before running commands.
Done
Privacy notes presentRequired
Review data handling notes before connecting accounts or secrets.
Done
Trust level risk gateRequired
Trust level does not block evaluation.
Done
Package and install checks
Needs review
Check package metadata and artifact integrity signals.
Install payload available
Install or copy payload is available for review.
Done
Package verification flag
No package verification flag provided.
Pending
Checksum metadata
No checksum provided for downloaded artifact.
Pending
Compare-driven decision checks
Needs review
Use compare context to validate trade-offs before adoption.
Compare tray has multiple entries
Add at least one more entry to compare trust differences.
5 safety and 4 privacy notes across 4 risk areas. Review closely: credentials & tokens, permissions & scopes, third-party handling.
4 areas
SafetyLocal filesCodeGraphContext indexes repository contents and can expose code structure, symbols, dependencies, comments, filenames, and relationships to Claude.
SafetyLocal filesLive file watching can keep graph data updated as files change, so verify the watched tree before enabling it on private workspaces.
SafetyCredentials & tokensExternal graph databases can retain indexed source metadata after the MCP session ends.
SafetyThird-party handlingGenerated graph context may include prompt-injection text from comments, documentation, fixtures, tests, or vendored files.
SafetyCredentials & tokensReview database credentials, ignored paths, and repository scope before connecting the server to an MCP client.
PrivacyThird-party handlingSource code, file paths, symbol names, comments, dependency names, call graphs, class hierarchies, search terms, prompts, graph queries, and tool outputs may be visible to the MCP client and model provider.
PrivacyCredentials & tokensIndexing proprietary repositories can reveal architecture, product plans, credentials accidentally committed to code, internal package names, or security-sensitive paths.
PrivacyPermissions & scopesIf using a remote graph backend, review its authentication, retention, backups, logging, and access controls before indexing private code.
PrivacyCredentials & tokensRemove or ignore secrets, customer data, generated dumps, logs, and vendor directories before building code graphs for model access.
Safety notes
CodeGraphContext indexes repository contents and can expose code structure, symbols, dependencies, comments, filenames, and relationships to Claude.
Live file watching can keep graph data updated as files change, so verify the watched tree before enabling it on private workspaces.
External graph databases can retain indexed source metadata after the MCP session ends.
Generated graph context may include prompt-injection text from comments, documentation, fixtures, tests, or vendored files.
Review database credentials, ignored paths, and repository scope before connecting the server to an MCP client.
Privacy notes
Source code, file paths, symbol names, comments, dependency names, call graphs, class hierarchies, search terms, prompts, graph queries, and tool outputs may be visible to the MCP client and model provider.
Indexing proprietary repositories can reveal architecture, product plans, credentials accidentally committed to code, internal package names, or security-sensitive paths.
If using a remote graph backend, review its authentication, retention, backups, logging, and access controls before indexing private code.
Remove or ignore secrets, customer data, generated dumps, logs, and vendor directories before building code graphs for model access.
Prerequisites
Python 3.10 or newer available for the CodeGraphContext package.
A local repository you are allowed to index and share with an MCP client.
Optional graph database backend reviewed if you use Neo4j, FalkorDB, KuzuDB, LadybugDB, or another supported backend.
Optional SCIP indexers configured if you need more precise language-specific call and inheritance data.
Sensitive files, generated artifacts, credentials, and ignored paths reviewed before indexing.
CodeGraphContext is an MCP server and CLI toolkit for turning repositories into
queryable code graphs. Claude can use it to ask about callers, callees, class
hierarchies, call chains, complexity, dead code, search results, and repository
structure after a project has been indexed.
The upstream README documents both CLI mode and MCP server mode. The Python
package exposes the codegraphcontext command, with codegraphcontext mcp setup
for client configuration and codegraphcontext mcp start for launching the MCP
server.
These sources were reviewed on 2026-06-05. Prefer the live repository,
README, security policy, and PyPI metadata for current package version,
supported commands, database backend options, language support, and MCP setup
behavior.
Features
Index local repositories into a graph database.
Query callers, callees, class hierarchies, dependencies, and call chains.
Search code and inspect complexity or dead-code signals.
Watch directories and update graph data as files change.
Use embedded or external graph database backends.
Support multiple programming languages through tree-sitter and optional SCIP indexing.
Configure MCP clients through the built-in setup wizard or manual server config.
Ask Claude which functions call a risky API before refactoring.
Trace call chains across modules in a large repository.
Explore class hierarchies and dependency relationships.
Search for feature-specific code and understand nearby symbols.
Find complexity hotspots or possible dead code.
Keep a code graph updated while working on an active branch.
Safety and Privacy
CodeGraphContext is useful because it indexes real source trees. That also means
it can expose private code, filenames, architecture, comments, fixtures, test
data, generated files, and accidentally committed secrets to an MCP client and
model provider.
Limit indexing to repositories and directories approved for model access. Review
ignore rules before enabling live file watching, and avoid indexing broad
workspace roots that contain unrelated private projects.
If you use an external graph database, treat it as a secondary copy of source
metadata. Review authentication, network access, backups, and retention before
using it with proprietary code.
Duplicate Check
No CodeGraphContext/CodeGraphContext entry, codegraphcontext package entry,
or matching source URL was found in content/mcp.
Show that CodeGraphContext MCP Server is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/mcp/codegraphcontext-mcp-server)
How it compares
CodeGraphContext MCP Server side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
MCP server and CLI toolkit that indexes local code into a graph database so Claude can query functions, call chains, dependencies, and repository structure.
High-performance MCP server that indexes codebases into a persistent knowledge graph for structural search, call tracing, architecture summaries, dead-code detection, and cross-repo analysis.
✓CodeGraphContext indexes repository contents and can expose code structure, symbols, dependencies, comments, filenames, and relationships to Claude.
Live file watching can keep graph data updated as files change, so verify the watched tree before enabling it on private workspaces.
External graph databases can retain indexed source metadata after the MCP session ends.
Generated graph context may include prompt-injection text from comments, documentation, fixtures, tests, or vendored files.
Review database credentials, ignored paths, and repository scope before connecting the server to an MCP client.
✓Codebase Memory MCP reads source files across indexed repositories and writes MCP entries, instruction files, skills, hooks, and agent configuration files during install.
The background watcher and auto-index features can keep graph data updated as source files change.
The optional graph UI exposes a local visualization server on a localhost port.
Shared graph artifacts and SQLite databases can persist source metadata after an MCP session ends.
Verify downloaded release binaries, checksums, signatures, and provenance before running them in sensitive environments.
✓Context+ can inspect source files, build AST and embedding indexes, run static analysis, create memory graph nodes, and propose code changes.
The `propose_commit` tool is designed to write code after validation and creates shadow restore points before saving.
Static analysis tools may invoke local compilers, linters, or language tools depending on the repository.
Runtime caches and memory graph data can persist source-derived embeddings and relationships after the MCP session ends.
External embedding providers can receive source-derived text, identifiers, prompts, and cluster-labeling context.
✓Searchcode analyzes public repositories through a hosted remote service; do not point it at private repository URLs unless you have a private/enterprise arrangement and have reviewed the current access controls.
The service can return code snippets, file contents, symbols, file trees, static-analysis findings, and credential-scan findings from public repositories.
Treat tool results as machine-assisted code intelligence. Confirm security findings, complexity claims, and dependency conclusions against the repository before making merge, hiring, acquisition, or incident decisions.
Large or repeated repository analysis can create automated traffic to Searchcode; keep agent loops bounded and avoid broad unattended scans.
Privacy notes
✓Source code, file paths, symbol names, comments, dependency names, call graphs, class hierarchies, search terms, prompts, graph queries, and tool outputs may be visible to the MCP client and model provider.
Indexing proprietary repositories can reveal architecture, product plans, credentials accidentally committed to code, internal package names, or security-sensitive paths.
If using a remote graph backend, review its authentication, retention, backups, logging, and access controls before indexing private code.
Remove or ignore secrets, customer data, generated dumps, logs, and vendor directories before building code graphs for model access.
✓Source code, filenames, paths, symbols, comments, imports, routes, call graphs, architecture summaries, ADRs, graph queries, prompts, and tool outputs may be visible to the MCP client and model provider.
Persistent graph databases and shared artifacts can retain proprietary architecture, internal package names, route names, service boundaries, and accidentally committed secrets.
Auto-indexing broad workspace roots can include unrelated private repositories or generated files.
Avoid committing shared graph artifacts unless the repository owners explicitly approve storing derived code intelligence in version control.
✓Source code, file paths, symbol names, comments, identifiers, embeddings, memory nodes, relations, prompts, API keys, static-analysis output, proposed diffs, and tool results may be visible to the MCP client and model provider.
Proprietary codebases can expose internal architecture, feature maps, naming conventions, secrets accidentally present in code, and product plans.
Keep API keys and provider base URLs out of committed MCP configs, logs, screenshots, and shared prompts.
Review `.mcp_data` and generated restore-point data before sharing workspaces or artifacts.
✓Prompts and tool inputs can reveal which public repositories, symbols, files, dependencies, security concerns, or candidate portfolios a team is investigating.
Returned code snippets, findings, file paths, and repository metadata become part of the MCP client transcript and may be processed by the connected model provider.
Public code can still contain secrets, personal data, proprietary code accidentally committed upstream, or prompt-injection text. Review returned snippets before forwarding them into other tools or reports.
Searchcode's public page says the hosted MCP server is free during beta and does not require signup or an API key; review the live site before production use because pricing and private-code options may change.
Prerequisites
Python 3.10 or newer available for the CodeGraphContext package.
A local repository you are allowed to index and share with an MCP client.
Optional graph database backend reviewed if you use Neo4j, FalkorDB, KuzuDB, LadybugDB, or another supported backend.
Optional SCIP indexers configured if you need more precise language-specific call and inheritance data.
A local repository or workspace you are authorized to index.
Platform-compatible Codebase Memory MCP release binary verified before use.
Agent configuration write access reviewed before running the installer.
Sensitive paths, generated files, vendored code, secrets, and private repositories reviewed before indexing.
Node.js and npx available to the MCP client runtime.
A repository or workspace you are authorized to index and expose to an MCP client.
Ollama embedding model available, or an approved OpenAI-compatible embedding provider and API key.
Static analysis tools installed if you want Context+ to run native linters or compilers.
MCP client with remote Streamable HTTP support, or `mcp-remote` for clients that still need a stdio bridge.
Public Git repository URLs or `owner/repo` names for the repositories Claude should inspect.
Team agreement that public repository metadata, code snippets, file paths, and static-analysis results may be sent through a hosted third-party MCP service.
Client-side policy for whether model-generated findings should be treated as triage hints or reviewed security results.
Install
pip install codegraphcontext
npm install -g codebase-memory-mcp
npx -y contextplus
claude mcp add searchcode --transport http https://api.searchcode.com/v1/mcp