1. Conduid
  2. Communication
  3. io.github.codegraph-ai/codegraph
MCP server · Communication

io.github.codegraph-ai/codegraph

CodeGraph builds a semantic graph of your codebase — functions, classes, imports, call chains — and exposes it through 42 MCP tools, 38 languages, a VS Code extension, and a persistent memory layer. AI agents get structured code understanding instead of grepping through files.

72Good

Scored 2 hours ago · breakdown

About io.github.codegraph-ai/codegraph

io.github.codegraph-ai/codegraph is an MCP server published by codegraph-ai in the Communication category: codeGraph builds a semantic graph of your codebase — functions, classes, imports, call chains — and exposes it through 42 MCP tools, 38 languages, a VS Code extension, and a persistent memory layer. AI agents get structured code understanding instead of grepping through files. Conduid read 49 tools from its source: analyze_complexity, analyze_coupling, analyze_impact, cross_project_search, design_gaps, find_by_imports and 43 more. It is published to npm as @astudioplus/codegraph-mcp and starts with npx.

The repository has 176 stars and 37 forks, is licensed Apache-2.0, and its last commit was on 15 Nov 2026. The latest release is v0.21.0 (6 Oct 2026): Engine binaries for CodeGraph 0.21.0. It follows v0.20.1 (10 Aug 2026), and the 4 most recent releases go back to model (30 Jun 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-coding, code-analysis, code-indexing, coding-assistant, graph-database and semantic-search.

Install

Claude Code
claude mcp add io-github-codegraph-ai-codegraph-b6d0 -- npx -y @astudioplus/codegraph-mcp
npx
npx -y @astudioplus/codegraph-mcp
From source
git clone https://github.com/codegraph-ai/CodeGraph

Tools (49)

analyze_complexityCyclomatic complexity with breakdown (branches, loops, nesting, exceptions, early returns)
analyze_couplingModule coupling metrics and instability scores
analyze_impactBlast radius prediction — what breaks if you modify, delete, or rename
cross_project_searchSearch across all indexed projects
design_gapsFind identifiers described in docs that don't exist in code yet — build TODO lists from specs
find_by_importsFind files importing a module
find_by_signatureSearch by param count, return type, modifiers
find_circular_depsDetect circular import/dependency chains across files
find_dead_importsFind unused imports — modules imported but never referenced
find_duplicatesDetect duplicate/near-duplicate functions
find_entry_pointsMain functions, HTTP handlers, CLI commands, event handlers
find_hot_pathsMost-called functions ranked by transitive caller count
find_implementorsFind all functions registered as ops struct callbacks
find_related_testsTests that exercise a given function
find_unused_codeDead code detection with confidence scoring
generate_architecture_docAuto-generate a structured ARCHITECTURE.md from the live code graph (modules, hot paths, complexity, circular deps)
get_ai_contextPrimary context tool. Intent-aware (explain/modify/debug/test) with token budgeting. Returns source, related symbols, imports, siblings, debug hints.
get_call_graphFunction call chains (callers and callees)
get_curated_contextCross-codebase context for a natural language query ("how does auth work?")
get_dependency_graphFile/module import relationships with depth control
get_detailed_symbolFull symbol info: source, callers, callees, complexity
get_edit_contextEverything needed before editing: source + callers + tests + memories + git history
get_module_summaryHigh-level summary of a directory: file count, functions, language breakdown, top complex functions
get_symbol_infoQuick metadata: signature, visibility, kind
index_directoryAdd directory to graph alongside existing data
index_filesAdd/update specific files without full reindex
index_markdownIndex a local `.md` file (ARCHITECTURE.md, API_DESIGN.md, etc.) into the persistent docs store. Heading-tree chunking with leaf-node embeddings.
list_doc_sourcesList all indexed source files
pr_contextOne-call PR review. Runs git diff against base branch, finds changed functions in the graph, reports: blast radius (callers), test coverage + gaps, affected modules, diff-aware change classification (signature vs body), stale-doc warnings, complexity, commit-message hint, suggested reviewers from git blame.
reindex_workspaceFull or incremental workspace reindex
remove_doc_sourceRemove all indexed chunks from a source file
scan_securitySecurity vulnerability scan: 40+ dangerous function patterns, source-to-sink taint tracing, auth coverage for HTTP endpoints (7 languages/frameworks), architectural layer violations, weak crypto, hardcoded secrets
search_by_errorFind functions that throw, catch, or handle specific error types
search_by_patternRegex search across function bodies, signatures, names, and docstrings
search_docsSemantic search over indexed docs — returns matching sections with heading-path breadcrumbs
security_audit_depsOSV vulnerability check on dependencies
security_check_cryptoCryptographic misuse: weak ciphers/hashes/PRNG/keys, static IVs, timing-leak comparisons (CWE-208/326-330/338/916, 35 patterns)
security_check_licensesLockfile license policy enforcement (copyleft detection)
security_check_search_pathUntrusted search-path / DLL-hijacking detection (CWE-426/CWE-427)
security_check_secrets_entropyShannon-entropy hardcoded-secret detection
security_control_flowMap every execution path through a function — "can this return without hitting the auth check?"
security_detect_injectionFocused SQL/XSS/cmd/path/deser/template injection detection (20 patterns)
security_export_sarifAggregate findings as SARIF 2.1.0 (GitHub Code Scanning, GitLab SAST)
security_generate_sbomCycloneDX SBOM from 8 lockfile formats
security_scan_iacDocker / Kubernetes / Terraform misconfiguration scan
security_trace_data_flowFollow a variable from birth to death — "does user input reach this SQL query?"
symbol_searchFind symbols by name or natural language (hybrid BM25 + semantic search)
traverse_graphCustom graph traversal with edge/node type filters
verify_designCross-reference doc claims vs code graph. `direction=forward` (doc→code), `reverse` (code→doc), or `both`

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 3.5K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by Cargo.lock and 2 more.
  • !No dynamic code executionScanned 431 source files and found 1 call to eval or shell execution, in vscode/src/server.ts:81. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
stdiocrates/codegraph-server/src/mcp/transport.rs:13
Starts other programs
39 callscrates/codegraph-server/build.rs:23, crates/codegraph-server/build.rs:35, crates/codegraph-server/build.rs:66
Outbound network calls
3 callscrates/codegraph-server/src/runtime_deps.rs:83, crates/codegraph-memory/src/embedding/fastembed_embed.rs:590, vscode/src/views/codeLensProvider.ts:93
Writes or deletes files
97 callscrates/codegraph-server/build.rs:58, crates/codegraph-server/src/ai_query/engine.rs:1009, crates/codegraph-server/src/ai_query/engine.rs:1053
Lockfile
Cargo.lock and 2 more

Pattern matches on the source text of 431 files: places to read, not proof of what the code does at run time.

Releases

v0.21.0CodeGraph 0.21.0 · 6 Oct 2026Engine binaries for CodeGraph 0.21.0. Each binary has a matching `.sha256`. Clients that download an engine are expected to verify it before running. Windows additionally requires `onnxruntime.dll` alongside the executable.
v0.20.1CodeGraph 0.20.1 · 10 Aug 2026Engine binaries for CodeGraph 0.20.1. Each binary has a matching `.sha256`. Clients that download an engine are expected to verify it before running. Windows additionally requires `onnxruntime.dll` alongside the executable.
v0.20.0CodeGraph 0.20.0 · 9 Aug 2026Engine binaries for CodeGraph 0.20.0. Each binary has a matching `.sha256`. Clients that download an engine are expected to verify it before running. Windows additionally requires `onnxruntime.dll` alongside the executable.
modelmodel · 30 Jun 2026

README

The repository's README runs to about 3.5K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About io.github.codegraph-ai/codegraph

How do I install io.github.codegraph-ai/codegraph?

In Claude Code, run claude mcp add io-github-codegraph-ai-codegraph-b6d0 -- npx -y @astudioplus/codegraph-mcp. Other MCP clients take the command after "--" in their server configuration.

Is io.github.codegraph-ai/codegraph safe to use with an AI agent?

Its trust score is 72 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 431 source files found that it serves MCP over stdio, starts other programs (39 calls), makes outbound network calls (3 calls) and writes or deletes files (97 calls). Its dependencies are pinned by Cargo.lock and 2 more. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.codegraph-ai/codegraph still maintained?

Yes — the latest release is v0.21.0 (6 Oct 2026), and the last commit was 16 days ago. The repository has 176 stars and 7 open issues.

What tools does io.github.codegraph-ai/codegraph provide?

Conduid read 49 tools from the source: analyze_complexity, analyze_coupling, analyze_impact, cross_project_search, design_gaps, find_by_imports, find_by_signature, find_circular_deps and 41 more.

What license is io.github.codegraph-ai/codegraph released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v0.21.0, as well.