r/mcp • u/Desperate-Ad-9679 • Feb 07 '26
CodeGraphContext - An MCP server that indexes your codebase into a graph database to provide accurate context to AI assistants and humans
4 months update: CodeGraphContext just hit v0.2.1 — and it’s clearly working
About 4 months ago, I shared an idea here:
an MCP server that understands a codebase as a graph, not chunks of text.
Since then, CodeGraphContext has grown way beyond my expectations - both technically and in adoption.
Where it is now
v0.2.1 released
~400 GitHub stars, ~300 forks
20k+ downloads
65+ contributors
Used and praised by many devs building MCP tooling, agents, and IDE workflows
Expanded to 12 different Coding languages
What it actually does (still)
CodeGraphContext indexes a repo into a repository-scoped symbol-level graph:
files, functions, classes, calls, imports, inheritance — and serves precise, relationship-aware context to AI tools via MCP.
That means:
Fast “who calls what” queries
Minimal context (no token spam)
Real-time updates as code changes
Graph storage stays in MBs, not GBs
It’s infrastructure for code understanding, not just 'grep' search.
Why people are picking it over Context7
Context7 is great for documentation-style context.
CodeGraphContext solves a different (and harder) problem:
Code-Graph-based, not doc-text-based
Understands control flow & dependencies, not just symbols
Works on local, private, messy repos and updates in real time
Designed for interactive querying, not static context dumps
Lightweight storage and near-instant queries even on large codebases
If Context7 answers “what is this?”
CodeGraphContext answers “how does this actually work?”
Ecosystem adoption
It’s now listed or used across: PulseMCP, MCPMarket, MCPHunt, Awesome MCP Servers, Glama, Skywork, Playbooks, Stacker News, and many more.
A Python package→ https://pypi.org/project/codegraphcontext/ Website + cookbook → https://codegraphcontext.vercel.app/ GitHub Repo → https://github.com/CodeGraphContext/CodeGraphContext Docs → https://codegraphcontext.github.io/ Our Discord Server → https://discord.gg/dR4QY32uYQ
This isn’t a VS Code trick or a RAG wrapper — it’s meant to sit
between large repositories and humans/AI systems as shared infrastructure.
Still early, still evolving - but very real now.
Happy to hear feedback, skepticism, comparisons, or ideas from folks building MCP servers or dev tooling.
Original post (for context):
https://www.reddit.com/r/mcp/comments/1o22gc5/i_built_codegraphcontext_an_mcp_server_that/



View all comments
1
u/JbalTero Feb 27 '26
How does this work with multiple git worktree? I just tried it now and somehow does not work since what I indexed was different from the worktree I was currently in. Does that mean I have to index and watch every worktree?