Indexes codebases into typed semantic graphs with 40+ MCP tools for AI-driven code navigation and analysis.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Grafema.
Grafema turns your codebase, infrastructure, knowledge, and workflows around it β into one queryable graph. For humans and AI.
We treat code as text. But text is just a form.
What actually matters when you write code is the system you have in your head β its structure. Entities, invariants, limitations. Goals and purpose. And how all these things relate to each other.
Software is naturally an executable graph β and so is everything around it: your services, your decisions, your team's knowledge. Grafema uses compiler-grade AST parsers β containing years of community-shared knowledge for each language β to excavate the deepest possible model of your system, and turn it into a transparent, queryable, enrichable map that grounds your understanding of it.
We refuse to accept "that's impossible to analyze statically." You can read code and understand it β you have a mental model in your head. So it's a matter of good enough heuristics. Human brains are literally built on this.
It's not magic and won't cover 100% of your system on day one. There will be gaps and "Here be dragons" signs. You will slay these dragons one by one β extend analysis with your own rules, fill up the knowledge base. And if you contribute, you slay one for everyone.
Thinking in graphs is not easy. But once it clicks - you stop reading code and just navigate the system. And your AI minions too.
Welcome to the party!
Licensed under FSL-1.1-Apache-2.0 β free to use, source available, converts to Apache 2.0 after 2 years. Details
v0.4.1 β Early access. Changelog | Known limitations
That's it. --quickstart auto-detects your project languages, generates config, and builds the graph in one command.
For more control, use the two-step flow: grafema init (review config) β grafema analyze.
Add to .mcp.json in your project root:
There is also a Docker image for running the MCP server (stdio) in a container β see the root Dockerfile: docker run -i --rm -v "$PWD":/workspace grafema-mcp.
30+ MCP tools available: find_nodes, find_calls, trace_dataflow, get_file_overview, describe, query_graph, and more. The AI agent queries the graph instead of reading files β faster, cheaper, more complete.
find_nodes returns rich context in a single call: callers, members, parent, import/call counts. Fuzzy name matching via local embeddings means approximate queries like find_nodes(name="PtyHostHeartbeatService") find HeartbeatService even without exact match.
Analyze
Query
tldr, who, wtf, why, check, overview@grafema/util)Document
grafema export --as docs-md β generate human-readable docs from the live graphgrafema export --as openapi-3.1 β auto-generate OpenAPI for HTTP routesgrafema export --as mcp-schema β JSON-RPC tool registry, directly servable by any MCP runtimegrafema export --as json-schema β Draft 2020-12 schemas per FEATURE_ai/intents/...) β handwritten "when to use" + captured examples that augment autogen outputgrafema features --duplicates β cross-modality dedup ("which CLI commands are wrappers around the same library function as which MCP tools")Connect knowledge to code entities and flows
Enforce your rules
grafema check β CI gateEnrich with your own meaning
| Language | Parser | Analyze | Resolve | Dataflow | Status |
|---|---|---|---|---|---|
| JavaScript/TypeScript | OXC | full | full | full | Production |
| Rust | syn | full | full | partial | Beta |
| Haskell | ghc-lib-parser | full | full | partial | Beta |
| Java | JavaParser | full | full | partial | Beta |
| Kotlin | kotlin-compiler-embeddable | full | full | partial | Beta |
| Python | rustpython-parser | full | full | partial | Beta |
| Go | go/ast (stdlib) | full | full | partial | Beta |
| C/C++ | tree-sitter-c | full | full | partial | Beta |
| Swift | SwiftSyntax | full | full | - | Alpha |
| Objective-C | libclang | full | full | - | Alpha |
| Elixir/Erlang | native BEAM AST | full | full | - | Alpha |
JS/TS is the primary language with full dataflow support. Each language uses its community's canonical parser β not a generic tokenizer. grafema init includes all languages by default β analyzers for absent languages are simply skipped.
| Command | Question it answers | What it does |
|---|---|---|
grafema tldr <file> | "What's in this file?" | Compact DSL overview (10-20x token savings) |
grafema wtf <symbol> | "Where does this come from?" | Backward dataflow trace |
grafema who <symbol> | "Who uses this?" | Find all callers/references |
grafema why <symbol> | "Why is it this way?" | Knowledge base decisions |
grafema init | Initialize Grafema in a project | |
grafema analyze | Build/rebuild the code graph (--quickstart for zero-config) | |
grafema check | "Are my rules still satisfied?" | Run architectural guarantees, exit 1 on violations |
grafema doctor | Check system health | |
grafema upgrade | Clean stale artifacts and upgrade binaries | |
grafema overview | High-level project stats |
Interactive graph navigation directly in your editor. Install from the VS Code Marketplace or search "Grafema Explore" in Extensions.
| Codebase | Files | Nodes | Edges | Time |
|---|---|---|---|---|
| Grafema (self) | 509 | 203K | 385K | 25s |
| BullMQ | 90 | 24K | 50K | 8s |
| microsoft/vscode | ~5,600 | 3.56M | 7.55M | 14 min |
Methodology: 30 questions sourced from real VS Code GitHub issues, scored by LLM judge. Questions span Sillito taxonomy levels L1 (finding focus) through L4 (full architecture understanding). Each question run as independent claude -p session with no prior context.
| Condition | Accuracy | MCP Adoption | Tokens | Detail |
|---|---|---|---|---|
| Baseline (grep + read only) | 20/30 (67%) | 0% | 88K | Agent uses Grep, Read, Glob |
| Grafema (graph tools) | 23/30 (77%) | 96% | 139K | +10% accuracy, graph-guided navigation |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/disentinel-grafema)<a href="https://allmcps.com/mcp/disentinel-grafema"><img src="https://allmcps.com/api/badge/disentinel-grafema?style=directory" alt="Grafema on AllMCPs" /></a>