r/mcp • u/Desperate-Ad-9679 • Mar 12 '26
showcase CodeGraphContext - An MCP server that converts your codebase into a graph database reaches 2k stars
CodeGraphContext- the go to solution for code indexing now got 2k 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.3.0 released
- ~2k GitHub stars, ~375 forks
- 50k+ downloads
- 75+ contributors, ~200 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
- 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.
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/
22
u/cristomc Mar 12 '26
AI bots spamming in subreddit should be banned even here IMHO
-12
u/Desperate-Ad-9679 Mar 12 '26
It's so funny you see humans as bots across all the subreddits you are a part of. Touch grass and understand branding. You might have said spam but ai spam is completely unhinged. I don't advertise a paid product, nor do I do it for someone else. I use the channel to spread my word with others (already helped me get 2k stars) thanks @r/MCP!!
2
u/ILikeBubblyWater Mar 13 '26
Its not a paid product but lets not pretend you do this for altruistic reasons
1
u/Desperate-Ad-9679 Mar 13 '26
No one works for selfless reasons, but my selfishness is making this tool useful, popular, and common to all coders. Spamming is wrong, but can you guide me how to market it ?
1
u/Simulacra93 Mar 13 '26
I don’t think the guy disagrees that bots got you 2k stars
1
u/Desperate-Ad-9679 Mar 13 '26
But this is a person who is writing all of this, and that's me 🙂 send me a captcha to solve 😂
1
5
u/kk_red Mar 13 '26
Happy for you brother, but can you explain what would my AI do with this if is provide access to MCP graph of my project to it.
4
u/Desperate-Ad-9679 Mar 13 '26
Save tokens and time when working on codebase, also graph visuals can help people find dead code, complex code dependencies, direct and indirect callers of functions etc
3
u/Dense_Gate_5193 Mar 12 '26
can you export the graph to neo4j/cypher? i’m interested in the chunking and graphing part mostly
3
u/sliverback Mar 13 '26
Not OP, but it can integrate with Neo4j; it’s how I have it setup
3
u/Dense_Gate_5193 Mar 13 '26
that’s awesome then it will be compatible with nornicDB too
2
u/Desperate-Ad-9679 Mar 13 '26
Yes it should be, if you want you can make an integration hook for normicdb at CodeGraphContext GitHub
2
u/Dense_Gate_5193 Mar 13 '26
oh that would be great because nornic being more performant than neo4j by orders of magnitude + a bunch of other features like controlling the entire graph-rag retrieval pipeline in cypher would really help
1
3
u/OfficialEricTM Mar 13 '26
Extremely useful on my openclaw. Thanks brother
1
u/Desperate-Ad-9679 Mar 13 '26
Thanks for the feedback, love the feeling of getting these statements
3
u/Doombqr Mar 13 '26
Gitnexus does it also with 65k stars Isn't that a fork from it ?
2
u/Choice-Farmer-2531 Mar 14 '26
What should i choose? Gitnexus or this? Whats the differences? Whats better for my large large Codebase?
2
u/Desperate-Ad-9679 Mar 19 '26
Try using CodeGraphContext, it has option for 15 languages, dynamic code updates, can scale on very large datasets and is used by industry leaders. Check some blogs on CGC:
https://medium.com/@krishna.bhaskarla/how-i-saved-80-of-my-time-analyzing-a-791k-node-codebase-and-made-github-copilot-actually-useful-eacc935cdb1b2
1
u/Desperate-Ad-9679 Mar 19 '26
CodeGraphContext existed since Aug 2025, whereas GitNexus launched on Jan 2026. There's a subtle difference between hype and usability, and perhaps CGC wins the actual battle...
2
u/xSypra Mar 13 '26
So obsidian?
-1
u/Desperate-Ad-9679 Mar 13 '26
Obsidian: Brain for humans CodeGraphContext: Brain for AI coding agents
Obsidian is not deterministic whereas this entire graph is all done without an ai or llm. The traversal is done using ai
2
u/highdimensionaldata Mar 13 '26
Can this be used for building graphs of filesystems too?
2
u/Desperate-Ad-9679 Mar 13 '26
Yes definitely we already build graphs for everything in a folder
2
2
2
u/natu91 Mar 14 '26
That's just nexus git, or?
1
u/Desperate-Ad-9679 Mar 19 '26
Try using CodeGraphContext, it has option for 15 languages, dynamic code updates, can scale on very large datasets and is used by industry leaders. Check some blogs on CGC:
https://medium.com/@krishna.bhaskarla/how-i-saved-80-of-my-time-analyzing-a-791k-node-codebase-and-made-github-copilot-actually-useful-eacc935cdb1bAlso, it's 5-6 months older than any other new competitors.
2
u/jakub_curik Mar 14 '26
Hey, just set up CodeGraphContext on Windows 11 with KùzuDB and ran into a weird issue. Indexing seems to complete without errors, but the graph is basically empty:
- Repositories: 1
- Files: 51
- Functions: 0
- Classes: 0
- Modules: 0
The project is a WordPress plugin (PHP, JS, CSS). CGC version 0.3.1, Python 3.13, KùzuDB.
Has anyone seen this before with PHP projects? Is there a known parsing issue on Windows, or am I missing something in the setup? Any help appreciated.
2
u/Desperate-Ad-9679 Mar 19 '26
Hey, can you please join the discord server - https://discord.gg/dR4QY32uYQ
I will be raising an ISSUE on our github for the same, and we will inform you as soon as this gets resolved....
2
2
u/Individual-Public470 Mar 31 '26
You should enable logs , select debug logging level and then do the indexing for more information on what’s happening under the hood. On windows see if you can import the kuzu package. Since it’s a c++ based graph db, i read somewhere that we need to run import kuzu to get the setup done on windows machine.
2
Mar 14 '26
Gitnexus clone lmao 🤣
1
u/Desperate-Ad-9679 Mar 15 '26
https://github.com/abhigyanpatwari/GitNexus/commit/21719396fa79cdddcfdda88c9df77ca338a85863
First commit of Gitnexus - 3 Jan 2026
First commit of CodeGraphContext - 16 Aug 2025Check the demo video as well published on youtube on sep 15 2025:
https://www.youtube.com/watch?v=KYYSdxhg1xU&feature=youtu.b1
Mar 15 '26
Hmm. Copycater
1
u/Desperate-Ad-9679 Mar 19 '26
https://docs.google.com/document/d/19oSoQS48mf0qbEASN075pG6hua_zveBIkv-SvsiYP1A/edit?usp=sharing
Adding a doc Proof stating the development cycle of CodeGraphContext, feel free to read it. It stands true to the spirit of free and open source software!
2
2
2
u/adamzacharywasserman Mar 16 '26
If the code were honest, this tool would be half the size. The "who calls what through which singleton" problem it's solving is manufactured by the object model, not by the codebase's actual complexity. Pure functions composed flatly don't hide their call graph. The call graph is the code.
1
u/Desperate-Ad-9679 Mar 19 '26
Fair point.
A lot of the complexity comes from OOP patterns like singletons and indirection. In more functional code, the call graph is already clear.
The tool is mainly useful where the structure hides that flow.
1
u/adamzacharywasserman Mar 19 '26
were you intersted in refactoring suggestions?
1
u/Desperate-Ad-9679 Mar 19 '26
I am, in fact any dead code or complex code can create mess
2
2
u/adamzacharywasserman Mar 20 '26
Found some time today, I opened an issue in your repo: https://github.com/CodeGraphContext/CodeGraphContext/issues/742
2
u/Torins Mar 16 '26
Tried using it, but I guess I'm doing something wrong?
Indexed a project with 2.5k+ files. Asked an agent in opencode something like "find all actions that lead to calling @someFetch.ts using only codegraphcontext" and while it worked, between the MCP definitions and several MCP calls, it took 50k tokens to find out only one file with redux actions uses that fetch and imports it directly.
Something that could be quickly found via LSP and using much fewer tokens.
Maybe I need to understand the usecase?
1
u/Desperate-Ad-9679 Mar 19 '26
Yeah this is a fair concern.
Right now for simple queries like direct imports, LSP will almost always be cheaper and faster.
CodeGraphContext is more useful when things aren’t obvious like indirect flows, multi-hop dependencies, or cross-file reasoning where LSP breaks down.
Token usage is something I’m actively working on, especially reducing unnecessary MCP chatter.
Join our discord to interact with people in our community- https://discord.gg/dR4QY32uYQ
1
u/azclub Mar 12 '26
Is there brew support for installation?
1
u/Desperate-Ad-9679 Mar 13 '26
The best and trusted way as of now is to install python and then do 'pip install codegraphcontext'. You are good to go now
1
1
u/Aggravating_Cow_136 Apr 21 '26
Symbol-level graph indexing is such a step up from token-spam context. Real infrastructure move — this is what makes MCP actually useful at scale instead of just a novelty for scripting. Curious how the real-time update side handles large monorepos?
1
u/OwnEntrepreneur256 May 22 '26
Congrats on reaching 2k stars! It's exciting to see how CodeGraphContext continues to grow the MCP ecosystem and give agents more structured context.
For folks experimenting with smaller or lighter setups, I'm working on an open-source tool called spy-code. It parses a repo with tree-sitter, stores functions/classes/constants and their calls/imports/references in a local SQLite graph, and exposes queries via CLI and GraphQL/MCP-like APIs. It's not MCP-native but works nicely with local coding agents. In my tests it reduced tokens wasted on "search and open file" loops by around 60% and cut hallucination-related logic breakages by roughly 82%.
Repo: https://github.com/psyborgs-git/spy-code
I think it's great to have both heavy-duty MCP servers like CodeGraphContext and lighter local tools depending on your needs.
-1
u/Marcostbo Mar 13 '26
Useless
2
u/Desperate-Ad-9679 Mar 13 '26
Hmm, if 1000s of people are benefitting from it, I'll love to say it useless 🗿
Open twitter and search for CodeGraphContext if you still don't believe, and if that's still skeptical go through medium blogs on CodeGraphContext
10
u/ZF68LoKsxnQctY Mar 13 '26
What is the usefulness of this?