CodeGraphContext

Level ALocal

An MCP server plus a CLI tool that indexes local code into a graph database to provide context to AI assistants.

Overview

CodeGraphContext is an MCP server and CLI toolkit that indexes local code into a graph database to give AI assistants and developers code context. It turns a repository into a graph of files, symbols, calls, inheritance, and imports, so you can trace call chains across files and packages, explore class hierarchies and module boundaries, and find dead code or unexpected dependencies. Use it standalone for code analysis or connect it to an AI IDE via MCP to query complex call chains in natural lan…

⭐ 4.4kDatabasePythonRepo ↗Updated 2026-11-18

Installation

MCP client config (paste into mcp.json)

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

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/CodeGraphContext/CodeGraphContext

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "codegraphcontext-codegraphcontext": {
      "command": "codegraphcontext",
      "args": [
        "mcp",
        "start"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers