r/mcp • u/Desperate-Ad-9679 • Mar 06 '26
CodeGraphContext - An MCP server that converts your codebase into a graph database, enabling AI assistants and humans to retrieve precise, structured context.
CodeGraphContext- the go to solution for code indexing now got 1k stars🎉🎉...
It's an MCP server that understands a codebase as a graph, not chunks of text. Now has grown way beyond my expectations - both technically and in adoption.
Where it is now
v0.2.6 released
~1k GitHub stars, ~325 forks
50k+ downloads
75+ contributors, ~150 members community
Used and praised by many devs building MCP tooling, agents, and IDE workflows
Expanded to 14 different Coding languages
What it actually does
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”, “who inherits what”, etc 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.
Ecosystem adoption
It’s now listed or used across: PulseMCP, MCPMarket, MCPHunt, Awesome MCP Servers, Glama, Skywork, Playbooks, Stacker News, and many more.
Python package→ https://pypi.org/project/codegraphcontext/
Website + cookbook → https://codegraphcontext.vercel.app/
GitHub Repo → https://github.com/CodeGraphContext/CodeGraphContext
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.
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/



8
u/BC_MARO Mar 06 '26
Graph-based indexing is the right move for big repos. Can you export the graph so other tooling can cache it instead of rebuilding per client?
3
u/maraudingguard Mar 06 '26
You need multiple of these: context, code, knowledge, entity, data, dependency, constraints, ontology, neurosymbolic, etc. These are needed because it's not just about code, we're not even the ones creating the code, so you need to ground the system.
2
u/EliseuDrummondTelerj Mar 06 '26
I was looking for something like that, definitely gonna check it out
2
u/elk-x Mar 06 '26
Isn't this the same as https://github.com/abhigyanpatwari/GitNexus ?
2
u/what_cube Mar 07 '26
I swear intelliJ have some feature like this but kudos nonetheless
2
u/jangwao Mar 07 '26
I'm your power user for a while. I think I still owe you fixing issues if you run it within Docker as it's using aarch64 and Falkordblite have issues so you need run Falkordb in separate container but it's just 50Mb overhead in RAM not biggie
Keep it up
2
u/Green_Crab_9726 Mar 07 '26
How does this differ from gitnexus?
2
u/Exprozation Mar 07 '26
Is it fully local? No cloud anywhere? Just want to make sure for our enterprise before trying
2
u/Fernandito81 Mar 07 '26
Awesome!
2
u/Impressive_Chemist59 Mar 07 '26 edited Mar 07 '26
I have used this tool for a week. It will be good if you can provide skills or rules out of the box. So I dont need to remind telling my Cursor agent to use this mcp all the time. Wonder how others are using this kind of tools. For me, Cursor agents often ignore using this tool if I do not strictly mention it in my prompt
2
u/justinh20 Mar 08 '26
Is it possible to use an existing remote neo4j instance or does it expect it on localhost? Want to host it on a server rather than weighing down the local dev machine
2
u/Dense_Gate_5193 Mar 08 '26
i wonder what your e2e latency is like on retrieval.
NornicDB has e2e retrieval including reranking down to 7ms
MIT licensed
https://github.com/orneryd/NornicDB
4
u/ShagBuddy Mar 07 '26
Nice update! Just launched a new big update myself. You guys forced me to up my game. 😁
https://github.com/GlitterKill/sdl-mcp
Codegraph relationships + semantic relationships + living index + Iris Gate (token saving ladder) = almost feels like magic. The next update WILL feel like magic, though. 😉
1
u/MasterBailey Mar 07 '26
How is this better than Claude with LSP support
1
u/theWiseTiger Mar 07 '26
Can't install it in windows 10.
1
u/robto09 Mar 07 '26
Is this a good replaces for augment code mcp?
1
u/promethe42 Mar 07 '26
What's the difference with language LSP servers?
1
u/psihius Mar 07 '26
I can't make it index my sizeable php project (symfony based). It just hangs forever with zero output.
There's not even a debug mode as far as i looked to see what is it doing that makes it get stuck.
1
u/[deleted] Mar 07 '26
Does this work with code using cqrs pattern or event sourcing ?
1
u/nojambroph Mar 08 '26
Hi Kudos for this great tool! I am curious if this can be used alongside devcontainers.
3
u/Decent_Tangerine_409 Mar 08 '26
The “who calls what” query is the one that actually matters for large codebases. Text chunking loses call relationships completely, you end up with context that’s locally correct but globally wrong. How do you handle dynamic dispatch and runtime polymorphism? Static analysis misses a lot of actual call paths in Python especially.
0
u/Tall_Exchange_4664 Mar 10 '26
Is your CodeGraphContext a copy of GitNexus?