English · 简体中文 · 日本語 · 한국어 · Español · Português (BR) · Deutsch · Français
GoGraphCtx
Single-Binary, Zero-Dependency Code Graph Indexer & Confidence-Aware MCP Server for AI Coding Agents
Give Claude Code, Cursor, Windsurf, VS Code Copilot, and Cline an accurate, token-budgeted call graph, blast-radius analysis, and repository structure—in 533ms with zero Neo4j, Docker, or Python dependencies.
Short Interactive Demo
View Architecture & Comparison Visual
Why Use GoGraphCtx?
AI coding agents struggle on real codebases for three reasons:
- The "Context Tax" of
grepandglob: Agents waste thousands of tokens and dozens of round-trips scanning comments, imports, and homonyms (Service.runvsJob.run) instead of traversing actual cross-file call chains. - Silent Guesses in Heuristic Graph Tools: Legacy code-graph tools often emit fallback guesses (substring path matches or alphabetical-first matches) as verified call edges, causing agents to miss callers or refactor the wrong function.
- Heavy Infrastructure: Python/Cypher graph servers require Neo4j/FalkorDB/Docker containers, ~90 pip dependencies, or brittle per-language LSP setups, taking seconds per query and hundreds of megabytes of RAM.
GoGraphCtx solves all three in one 15.8 MB static binary:
- Pure-Go AST & Resolution Engine: Compiled-in
gotreesitterparsers (CGO_ENABLED=0) for Go, Python, TypeScript/TSX, JavaScript/JSX, Rust, and Java. - 8-Tier Confidence Model: Every edge carries explicit confidence (
certainvsLIKELY_CALLSvsCallSiteevidence). Speculative guesses are never misrepresented as verified facts. - Zero External Graph Database: Builds an indexed in-memory graph and persists an atomic, zstd-compressed binary snapshot + CRC32C Write-Ahead Log (
.ggctx/index.ggctx). - 7 Token-Budgeted MCP Tools: Designed around strict LLM context budgets (
default: 4000tokens) with binary-search shrinking, repo-relative paths, and confidence summaries—instead of 30–50 noisy overlapping tools. - Real-Time Incremental Watcher (
~22.8ms):fsnotifyre-indexes changed files and affected reverse-dependents in milliseconds alongside live MCP serving.
30-Second Quickstart
1. Install (No Go Required)
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/roshankumar0036singh/gographctx/main/scripts/install.sh | sh
Windows (PowerShell):
irm https://raw.githubusercontent.com/roshankumar0036singh/gographctx/main/scripts/install.ps1 | iex
Go toolchain (Go 1.25+) or GitHub Releases:
go install github.com/roshankumar0036singh/gographctx/cmd/gographctx@latest
(Or build locally from source: git clone https://github.com/roshankumar0036singh/gographctx.git && cd gographctx && make build.)
2. Index & Query Any Repository
# Index a repository in ~0.5s (creates .ggctx/index.ggctx)
gographctx index ./your-repo
# Check index statistics & resolution coverage
gographctx stats ./your-repo
# Run an impact analysis query directly from CLI
gographctx query get_impact pkg::Service::Handle --path ./your-repo
3. Connect Your AI Coding Agent (MCP)
Claude Code
claude mcp add gographctx -- gographctx watch /absolute/path/to/your/repo
Cursor / Windsurf / Claude Desktop / Cline
Add to ~/.cursor/mcp.json or claude_desktop_config.json:
{
"mcpServers": {
"gographctx": {
"command": "gographctx",
"args": ["watch", "/absolute/path/to/your/repo"]
}
}
}
VS Code Copilot MCP (.vscode/mcp.json)
{
"servers": {
"gographctx": {
"type": "stdio",
"command": "gographctx",
"args": ["serve", "${workspaceFolder}"]
}
}
}
Measured Benchmarks & Multi-Tool Comparison
All GoGraphCtx numbers below were measured directly via cmd/ggctx-bench (go1.25.1, windows/amd64, 16 vCPUs):
| Benchmark Metric | Measured Result | Target SLA |
|---|---|---|
Flask-scale Python repo (83 .py files, 705 nodes, 2,208 edges) |
533.39 ms / 51.02 MB RSS | < 1s / < 80 MB |
Go monorepo (1,000 .go files, 6,002 nodes, 8,000 edges) |
1,401.70 ms / 116.92 MB RSS | < 3s / < 150 MB |
| Flask strong-tier call edge ratio | 100.0% (TierStructural..TierSamePackage) |
>= 85% |
| Incremental file update (body edit / export change, p50) | 22.78 ms / 22.77 ms | < 50ms / < 100ms |
| MCP tool query latency (warm stdio, p95) | 3.80 ms | < 10 ms |
CLI cold startup (gographctx version, p50) |
22.80 ms | < 50 ms |
Stripped static binary (CGO_ENABLED=0) |
15.79 MB | < 30 MB |
How GoGraphCtx Compares Against Other Code Intelligence Tools
| Tool | Category | Runtime / Setup | Call Graph | Impact BFS | Confidence Tiers | Key Trade-off vs GoGraphCtx |
|---|---|---|---|---|---|---|
| GoGraphCtx | Code-Graph MCP | 15.8 MB static Go binary, zero external DB | Yes | Yes (get_impact) |
Yes (8 tiers + LIKELY_CALLS + unresolved_hints) |
98.4% Flask precision, sub-second index, zero DB setup (trades aggressive speculative guesses for high-precision edges + explicit unresolved disclosure) |
| CodeGraphContext (CGC) | Code-Graph MCP | Python + ~90 pip deps + Neo4j / FalkorDB / Kuzu | Yes | Yes | Partial (emits Tier 7–8 guesses as facts; ~61% of edges) | 69.2% Flask precision, higher heuristic recall (~70% vs Jedi), requires Cypher DB & Python env |
SCIP (scip-python, scip-go) |
Compiler Oracle | Node/Python/Go toolchain + full dependency install | Yes | External script | Exact compiler oracle | Requires buildable env & project deps installed |
| Universal Ctags | Tag Indexer | Native CLI binary | No | No | No | No cross-file call graph or receiver type resolution |
ast-grep (sg) |
AST Search CLI | Rust binary | No | No | Exact syntax match | Great ad-hoc syntax search, no persistent call/impact graph |
| Serena | LSP MCP Server | Python + live language servers (pyright, gopls) |
Yes | Limited | Type-checker-backed | Heavier LSP warmup & 50+ tool context footprint |
ripgrep (rg) |
Lexical Search | Rust binary | No | No | Text only | Fast regex, high noise on homonyms/imports/comments |
See docs/benchmarks.md for reproduction commands (ggctx-bench), SCIP ground-truth evaluation details, and CI release regression workflows.
7 Focused MCP Tools
| Tool | Purpose | Key Parameters |
|---|---|---|
find_symbol |
Pattern/kind/file/language symbol lookup | name, kind, file, language, exported_only, limit |
get_callers |
Direct callers with confidence tier & call sites | symbol, file, include_likely, limit |
get_callees |
Direct callees with confidence tier & call sites | symbol, file, include_likely, limit |
get_impact |
Transitive reverse-dependency blast radius | symbol, file, max_depth, limit |
file_outline |
Structured imports, classes, functions, fields, vars | file, include_private |
search_code |
Multi-filter query with cyclomatic complexity | name_pattern, qname_pattern, kinds, min_complexity, max_complexity |
repo_overview |
Repo metrics, language mix & coverage summary | include_top_complex, limit |
Full JSON schemas and envelope examples are documented in docs/mcp-tools.md.
Comprehensive Documentation
- MCP Tools Reference — Complete schemas, confidence summaries, and token-budget truncation behavior
- CLI, Configuration & IDE Setup —
index,serve,watch,query,stats,.ggctxrc,.ggctxignore,GGCTX_*env vars, and editor configs - Architecture & Storage — In-memory
Graph/ReadView, compact.ggctxbinary snapshots, CRC32C WAL, 8-tier resolver, andfsnotifywatcher - Language Support Matrix — Go, Python, TypeScript/TSX, JavaScript/JSX, Rust, and Java AST + resolution capabilities
- Benchmarks & SCIP Validation — Reproducible benchmark methodology and multi-tool comparison suite
- Contributing Guide · Security Policy · Code of Conduct · MIT License
Roadmap (v0.2)
- Package manager distribution (Homebrew tap formula, Scoop manifest, container image)
- Expanded Python/TS/Rust framework idioms and cross-package trait/protocol resolution
- Multi-repository workspace graph linking and richer CLI query presets
Contributing & Community
Contributions of all sizes are welcome! Check CONTRIBUTING.md to set up your local environment, add new language resolvers, or run make bench-suite.
If GoGraphCtx saves tokens and time for your AI coding workflow, please consider giving the repository a Star!
Metadata
Release files for gographctx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| gographctx-0.1.0-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details for gographctx-0.1.0-py3-none-win_arm64.whl |
| gographctx-0.1.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for gographctx-0.1.0-py3-none-win_amd64.whl |
| gographctx-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for gographctx-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| gographctx-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for gographctx-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| gographctx-0.1.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for gographctx-0.1.0-py3-none-macosx_11_0_arm64.whl |
| gographctx-0.1.0-py3-none-macosx_10_9_x86_64.whl | Python 3 | none | macOS 10.9+ x86-64 | Details for gographctx-0.1.0-py3-none-macosx_10_9_x86_64.whl |
Total release size: 95.9 MB
Release files / gographctx-0.1.0-py3-none-win_arm64.whl
| Download URL | gographctx-0.1.0-py3-none-win_arm64.whl |
|---|---|
| Size | 15.5 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
10cb626477f66a0590216a0fa7371a8f353fb1a66d56cd963fa8f84b69d69db2
|
|
BLAKE2b-256 checksum How to use checksums |
b24357c82fb8c5068447f94beddbc64c2c5ad9499b8bc0fcbb80b1f2fb7a3d9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gographctx-0.1.0-py3-none-win_amd64.whl
| Download URL | gographctx-0.1.0-py3-none-win_amd64.whl |
|---|---|
| Size | 16.8 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e0b844e1e01c344739c5053706fd7f6ec32590ad0ebc7f6695fb5b3c8334940b
|
|
BLAKE2b-256 checksum How to use checksums |
63decfb7ea3589db7cd22f89c415e3d148617615861b0320dd455c2f28cd4c46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gographctx-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | gographctx-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.3 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
28bfdbf58be445ea2e6de4fd8edc4f7d59a1336ef75ef80d26938e6cc52157c0
|
|
BLAKE2b-256 checksum How to use checksums |
3ca992bd30ad5d3e52865b820e51dafd7ef9dbbdb22d9d5414888148121b5341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gographctx-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | gographctx-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 15.3 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
e52dae90d45647518ed81a0e846510ec6d976c42009c23a034d3c28fb3f21607
|
|
BLAKE2b-256 checksum How to use checksums |
3d9ea8c7e027c3dd24bf22274b61348c0f4cade7f1d53d1ad2f1eea7cffab5f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gographctx-0.1.0-py3-none-macosx_11_0_arm64.whl
| Download URL | gographctx-0.1.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 15.5 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3f84d9a5597ae38a5dd4c6601c68fcd950290f6d6e2caf6f6607801accdeda6d
|
|
BLAKE2b-256 checksum How to use checksums |
8ff7ed694d4417b9011f529d6bea408aefc0f168ac3767a29ec41560f54f0864
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / gographctx-0.1.0-py3-none-macosx_10_9_x86_64.whl
| Download URL | gographctx-0.1.0-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 16.6 MB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
568ef2a1c9198ef1e1126085e38401b71f32c66e222f1d6e459f6d3df8ecbbff
|
|
BLAKE2b-256 checksum How to use checksums |
e3b22813414352c45759763d0c1742ac7e441e2635d795b78fb8446b74b5816b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for gographctx 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for gographctx-0.1.0-py3-none-win_arm64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.