CodeGraph logo

CodeGraph

Unclaimed

by codegraph-ai

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.

Set up this server

01 / Choose your client

02 / Before you connect

Authentication is not specified. Check the project instructions before connecting.

Install the runtime required by the project and make it available to your client.

Project instructions

Use names from the project instructions, separated by commas. Enter names only, never secret values.

03 / Add the configuration

Source: generated from public install instructions

claude mcp add --transport stdio 'codegraph' -- 'npx' '-y' '@vscode/vsce' 'package'

Run in your terminal after replacing any placeholders.

04 / Check it in your client

Open your client’s MCP settings and confirm the server connects and lists its tools. A copied configuration does not confirm a working connection.

ai-codingclaudecode-analysiscode-indexingcoding-assistantcopilotgraph-databasesemantic-search

More in Databases

Browse the full directory

Unclaimed listing

Is this your MCP server?

This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.

Claim this server

Security profile

Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works

40 of 40 tools

Documented tools (40)

From project documentation. A server handshake does not verify each tool’s description or behavior.

analyze_complexity

Cyclomatic complexity with breakdown (branches, loops, nesting, exceptions, early returns)

analyze_coupling

Module coupling metrics and instability scores

analyze_impact

Blast radius prediction — what breaks if you modify, delete, or rename

core

8 — search + symbol info + AI context

design_gaps

Find identifiers described in docs that don't exist in code yet — build TODO lists from specs

find_by_imports

Find files importing a module

find_by_signature

Search by param count, return type, modifiers

find_circular_deps

Detect circular import/dependency chains across files

find_dead_imports

Find unused imports — modules imported but never referenced

find_entry_points

Main functions, HTTP handlers, CLI commands, event handlers

find_hot_paths

Most-called functions ranked by transitive caller count

find_implementors

Find all functions registered as ops struct callbacks

find_related_tests

Tests that exercise a given function

generate_architecture_doc

Auto-generate a structured ARCHITECTURE.md from the live code graph (modules, hot paths, complexity, circular deps)

get_ai_context

Primary context tool. Intent-aware (explain/modify/debug/test) with token budgeting. Returns source, related symbols, imports, siblings, debug hints.

get_call_graph

Function call chains (callers and callees)

get_curated_context

Cross-codebase context for a natural language query ("how does auth work?")

get_dependency_graph

File/module import relationships with depth control

get_detailed_symbol

Full symbol info: source, callers, callees, complexity

get_edit_context

Everything needed before editing: source + callers + tests + memories + git history

get_module_summary

High-level summary of a directory: file count, functions, language breakdown, top complex functions

get_symbol_info

Quick metadata: signature, visibility, kind

graph

17 — callers/callees/deps/impact/traverse/PR context

index_directory

Add directory to graph alongside existing data

index_files

Add/update specific files without full reindex

index_markdown

Index a local .md file (ARCHITECTURE.md, APIDESIGN.md, etc.) into the persistent docs store. Heading-tree chunking with leaf-node embeddings.

list_doc_sources

List all indexed source files

memory

14 — codegraphmemory plus the docs tools

memory_context

Get memories relevant to a file/function

pr_context

One-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 gi

reindex_workspace

Full or incremental workspace reindex

remove_doc_source

Remove all indexed chunks from a source file

scan_security

Security 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_error

Find functions that throw, catch, or handle specific error types

search_by_pattern

Regex search across function bodies, signatures, names, and docstrings

search_docs

Semantic search over indexed docs — returns matching sections with heading-path breadcrumbs

security

pro security tools only (empty on community)

symbol_search

Find symbols by name or natural language (hybrid BM25 + semantic search)

traverse_graph

Custom graph traversal with edge/node type filters

verify_design

Cross-reference doc claims vs code graph. direction=forward (doc→code), reverse (code→doc), or both

Tool change history

Compared across complete checks of the same configuration. Tools were listed, not invoked. Input-schema changes are not measured here.

No complete tool checks yet.

FAQ

Questions about CodeGraph MCP Server

How do I connect CodeGraph MCP Server to Claude?
Run `claude mcp add codegraph -- npx -y @vscode/vsce package` in Claude Code, or add the same command and arguments under mcpServers in Cursor's mcp.json or Claude Desktop's claude_desktop_config.json, then restart the client. The blocks above are ready to paste.
Is CodeGraph MCP Server free?
The listed licence is Apache-2.0. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
What can CodeGraph MCP Server do?
CodeGraph MCP Server documents 40 tools to the agent, including analyze_complexity, analyze_coupling, analyze_impact. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.