Skip to main content
mcpSource-backed

CodeGraphContext MCP Server

MCP server and CLI toolkit that indexes local code into a graph database so Claude can query functions, call chains, dependencies, and repository structure.

Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://github.com/CodeGraphContext/CodeGraphContext/blob/main/README.md, https://github.com/CodeGraphContext/CodeGraphContext
Brand
CodeGraphContext
Brand domain
github.com
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.
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.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

CLI install

Copy-ready — paste the snippet to get started.

15 minutes

Adoption plan

Balanced adoption plan

Current risk score 24/100. Use staged verification before broader rollout.

Risk 24

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    No review metadata found; increase manual validation.

    Pending
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Missing required evidence: Metadata review. Risk score 31.

Risk 31

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Missing

Review metadata is missing.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required gaps: Metadata review

Decision timeline

Decision timeline · balanced

Blocking gaps: Check metadata review status. Risk 28.

Risk 28

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is missing.

Pending

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

Blockers: Check metadata review status

Prerequisite readiness

Prerequisite readiness

5 prerequisites to line up before setup. Have accounts and credentials ready first. Includes a review or approval gate.

0/5 ready
Account & credentials1Install & runtime2Configuration1Review & approval115 minutes

Safety & privacy surface

Safety & privacy surface

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.

Schema details

Install type
cli
Troubleshooting
No
Source repository stats
Scope
Source repo
Collection metadata
Estimated setup
15 minutes
Difficulty
advanced
Full copyable content
{
  "mcpServers": {
    "codegraphcontext": {
      "command": "codegraphcontext",
      "args": ["mcp", "start"],
      "env": {
        "NEO4J_URI": "YOUR_GRAPH_DATABASE_URI",
        "NEO4J_USER": "YOUR_GRAPH_DATABASE_USER",
        "NEO4J_PASSWORD": "YOUR_GRAPH_DATABASE_PASSWORD"
      }
    }
  }
}

About this resource

Content

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.

Source Review

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.

Installation

Install the Python package:

pip install codegraphcontext

Run the setup wizard, then start the MCP server:

codegraphcontext mcp setup
codegraphcontext mcp start

For MCP clients that launch stdio servers manually:

{
  "mcpServers": {
    "codegraphcontext": {
      "command": "codegraphcontext",
      "args": ["mcp", "start"]
    }
  }
}

Restart the MCP client after adding the server.

Use Cases

  • 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.

Source citations

Add this badge to your README

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.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/mcp/codegraphcontext-mcp-server.svg)](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.

Field

MCP server and CLI toolkit that indexes local code into a graph database so Claude can query functions, call chains, dependencies, and repository structure.

Open dossier

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.

Open dossier

MCP server for semantic codebase intelligence, combining AST structure, embeddings, clustering, feature hubs, restore points, and memory graph tools.

Open dossier

Remote MCP server for analyzing, searching, retrieving, and auditing code from public Git repositories without cloning them into the local workspace.

Open dossier
Next steps
Trust
Review statusNot reviewedNot reviewedNot reviewedNot reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
Submitteroktofeesh1oktofeesh1oktofeesh1oktofeesh1
Install riskReview firstReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
Brandsearchcode.com logosearchcode.com
Categorymcpmcpmcpmcp
SourceSource-backedSource-backedSource-backedSource-backed
AuthorCodeGraphContextDeusDataforloopcodessearchcode.com
Added2026-06-052026-06-052026-06-052026-06-06
Platforms
Harness
Source repo
Safety notesCodeGraphContext 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 notesSource 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
Config
{
  "mcpServers": {
    "codegraphcontext": {
      "command": "codegraphcontext",
      "args": ["mcp", "start"],
      "env": {
        "NEO4J_URI": "YOUR_GRAPH_DATABASE_URI",
        "NEO4J_USER": "YOUR_GRAPH_DATABASE_USER",
        "NEO4J_PASSWORD": "YOUR_GRAPH_DATABASE_PASSWORD"
      }
    }
  }
}
{
  "mcpServers": {
    "codebase-memory": {
      "command": "npx",
      "args": ["-y", "codebase-memory-mcp"]
    }
  }
}
{
  "mcpServers": {
    "contextplus": {
      "command": "npx",
      "args": ["-y", "contextplus"],
      "env": {
        "CONTEXTPLUS_EMBED_PROVIDER": "ollama",
        "OLLAMA_EMBED_MODEL": "nomic-embed-text",
        "OLLAMA_CHAT_MODEL": "llama3.2"
      }
    }
  }
}
{
  "mcpServers": {
    "searchcode": {
      "url": "https://api.searchcode.com/v1/mcp"
    }
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.