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 mcp add io-github-codegraph-ai-codegraph-b6d0 -- npx -y @astudioplus/codegraph-mcpnpx -y @astudioplus/codegraph-mcpgit clone https://github.com/codegraph-ai/CodeGraphTools (49)
analyze_complexityCyclomatic complexity with breakdown (branches, loops, nesting, exceptions, early returns)analyze_couplingModule coupling metrics and instability scoresanalyze_impactBlast radius prediction — what breaks if you modify, delete, or renamecross_project_searchSearch across all indexed projectsdesign_gapsFind identifiers described in docs that don't exist in code yet — build TODO lists from specsfind_by_importsFind files importing a modulefind_by_signatureSearch by param count, return type, modifiersfind_circular_depsDetect circular import/dependency chains across filesfind_dead_importsFind unused imports — modules imported but never referencedfind_duplicatesDetect duplicate/near-duplicate functionsfind_entry_pointsMain functions, HTTP handlers, CLI commands, event handlersfind_hot_pathsMost-called functions ranked by transitive caller countfind_implementorsFind all functions registered as ops struct callbacksfind_related_testsTests that exercise a given functionfind_unused_codeDead code detection with confidence scoringgenerate_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 controlget_detailed_symbolFull symbol info: source, callers, callees, complexityget_edit_contextEverything needed before editing: source + callers + tests + memories + git historyget_module_summaryHigh-level summary of a directory: file count, functions, language breakdown, top complex functionsget_symbol_infoQuick metadata: signature, visibility, kindindex_directoryAdd directory to graph alongside existing dataindex_filesAdd/update specific files without full reindexindex_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 filespr_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 reindexremove_doc_sourceRemove all indexed chunks from a source filescan_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 secretssearch_by_errorFind functions that throw, catch, or handle specific error typessearch_by_patternRegex search across function bodies, signatures, names, and docstringssearch_docsSemantic search over indexed docs — returns matching sections with heading-path breadcrumbssecurity_audit_depsOSV vulnerability check on dependenciessecurity_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 detectionsecurity_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 formatssecurity_scan_iacDocker / Kubernetes / Terraform misconfiguration scansecurity_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 filtersverify_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
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