Skip to main content
Glama

graphdex

The code graph that's never stale.

A Python library + CLI + MCP server that maintains an always-correct structural code graph (functions, classes, imports, calls, tests) and serves token-budgeted, confidence-labeled context to AI coding agents.

Status: v0.1 core engine in development — Python parsing, two-pass import-aware resolution, subtoken search, and CLI are implemented; freshness (self-healing reads) and the MCP server land next. Design spec: docs/superpowers/specs/2026-07-17-graphdex-design.md.

Why graphdex

Code-graph tools for AI agents share four recurring weaknesses:

Problem elsewhere

graphdex answer

Stale graphs served as fresh when watchers die

Self-healing reads — every query dirty-checks the working tree and repairs the graph inline; every response carries a freshness field

Cross-file calls matched by bare name (false blast radii)

Import-aware two-pass resolution with per-edge confidence tiers (RESOLVED / IMPORT_INFERRED / NAME_ONLY) and min_confidence filtering

30 MCP tools taxing every agent request

8 consolidated tools that return source snippets inline within a token_budget

Search that only sees exact identifier names

Subtoken FTS5 indexinggetUserById matches "user by id"

Related MCP server: Graft

Planned surfaces (v1)

  • Library: from graphdex import Graphdex; gd = Graphdex("."); gd.callers_of("login")

  • CLI: graphdex build | status | search | impact | serve

  • MCP: graphdex serve (stdio) — works with Claude Code, Cursor, Codex, and any MCP client

v1 languages: Python, TypeScript, JavaScript (+JSX/TSX), Go, Rust, Java.

Credits

Clean-room implementation inspired by the excellent code-review-graph (MIT) — our analysis of its trade-offs shaped this design. No code is copied from it.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides AI assistants with a structured, token-efficient map of a codebase's symbols, dependencies, and relationships via MCP tools like overview, query, and impact analysis.
    8
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Local-first codebase context engine that parses code into a ranked dependency graph and serves it to AI tools via MCP for deep structural understanding.
    5
    27
    1
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides code intelligence for AI coding agents by indexing repositories into a hybrid knowledge graph, enabling agents to query dependencies, impact, and context through 28 MCP tools.
    3
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    Provides structural code intelligence via 26 MCP tools, enabling AI assistants to query code symbols, dependencies, and call graphs accurately without file-pasting.
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vanshpatil16/graphdex'

If you have feedback or need assistance with the MCP directory API, please join our Discord server