MCP.Market

Cgraphy MCP server

by pmgarg·io.github.pmgarg/cgraphy·v0.1.1

Code knowledge graph over MCP: token-budgeted context for AI coding agents.

A88/100grade A
What users say
No reviews yet
Be the first
Safety scan
A88/100

full report

Adoption
New

0 stars16 downloads/wk

Reviews

Write one

Nobody has reviewed Cgraphy yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Cgraphy tools

No tool declarations could be read from the package source. They show once the server is installed.

Public scan report

scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it

no findings
  • Code scan30 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 70 days ago12/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 88/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Cgraphy compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
88/100
higher than 75% of 48,255 servers
Downloads a week
16
more than 4% of 12,191 servers with a package

Install Cgraphy in Claude Code, Cursor or VS Code

claude mcp add cgraphy -- uvx cgraphy
Add to Cursor

What the publisher says

From the Cgraphy repository's README, as published. We do not edit it. Read it on GitHub

cgraphy – Code Knowledge Graph MCP Server

Paper (DOI): https://doi.org/10.5281/zenodo.21422935 PyPI: https://pypi.org/project/cgraphy/ GitHub: https://github.com/pmgarg/cgraphy

cgraphy is a Python code knowledge graph and Model Context Protocol (MCP) server for AI coding agents such as Claude Code, Codex CLI, Cursor, and Gemini CLI.

cgraphy indexes any codebase into a knowledge graph — functions, classes and files as nodes; calls, imports, inheritance and git co-change history as edges — and serves compact, token-budgeted slices of it to AI assistants through the Model Context Protocol. Instead of re-reading dozens of files to orient itself on every prompt, an agent asks the graph and gets the relevant subgraph in a couple of thousand tokens.

Python, TypeScript/JavaScript, Java, Go, C, C++ and Rust; generic definition-level extraction for 20+ more via tree-sitter; config and docs files participate through summaries.

  • Any language. Full-fidelity extraction (calls, imports, inheritance) for

symbols first in every answer.

  • Importance-ranked. PageRank over the code graph puts load-bearing

symbol and stops exactly at your token budget — cost scales with the question, not the repo.

  • Token-budgeted. cgraphy_context expands the graph greedily around a

together (logical coupling), an edge type static analysis can't see.

  • Git-aware. --git-history mines commit history for files that change

through the enrich loop; summaries survive re-indexing via content hashing.

  • No API key. Semantic summaries are written by the host agent itself

daemons, no vector database.

  • Zero infrastructure. One SQLite file in .cgraphy/. No services, no

the deployed configuration resolved 14 vs 8 of 57 real GitHub issues (official Docker harness). Indexes kubernetes (26K files, 219K nodes) in 49s, keeps it fresh in 1.6s cycles, answers queries in 1–152ms. All benchmarks and predictions are in this repo (Research paper and benchmarks).

  • Proven end-to-end. In 400+ controlled agent runs on SWE-bench Lite,

Install

pip install cgraphy        # or: uv tool install cgraphy

Quick start

cd your-repo
cgraphy init          # one command: MCP config + agent steering + index

cgraphy init does three things:

Code** in all its forms: CLI, VSCode extension, and the desktop app.

  1. Writes a project-scoped .mcp.json — picked up automatically by **Claude

consult the graph (cgraphyoverview → cgraphysearch → cgraphycontext) before* reading files — this is what makes the graph actually replace bulk file reading. (Agents can't be forced, only steered: instruction files + persuasive tool descriptions + the tools being genuinely faster is the mechanism, and it works.)

  1. Appends a steering block to CLAUDE.md and AGENTS.md telling agents to
  1. Builds the index with git co-change history.

Or register the MCP server manually with your assistant:

Claude Code

claude mcp add cgraphy -- uvx cgraphy serve /path/to/repo

Codex CLI (~/.codex/config.toml)

[mcp_servers.cgraphy]
command = "uvx"
args = ["cgraphy", "serve", "/path/to/repo"]

Gemini CLI (~/.gemini/settings.json) / Cursor (.cursor/mcp.json)

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Cgraphy: common questions

Is Cgraphy MCP server safe?
Yes, by our scan: it is graded A (88/100). Read the Cgraphy safety report
How do I install Cgraphy?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Cgraphy need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Cgraphy maintained?
The last commit was 109 days ago (2026-07-18). The latest release is v0.1.1.
What can I use instead of Cgraphy?
Servers from other publishers that do the same job: Codebase Memory MCP server, Deja Vu MCP server and Neo4j Memory MCP server.
How does Cgraphy compare with other MCP servers?
safety score 88/100 (higher than 75% of 48,255 servers); downloads a week 16 (more than 4% of 12,191 servers with a package). Full comparison.

Alternatives to Cgraphy

Same job from other publishers: the closest match first, then the best rated.

  • Codebase Memory
    Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
    C
  • Deja Vu
    deja-vu: local memory over the session histories of forty-three coding agents.
    A
  • Neo4j Memory
    MCP Neo4j Knowledge Graph Memory Server
    A
  • Trace
    Code graph MCP: 81 languages, 91 frameworks, 72.7% fewer PR-review tokens, comprehension at parity
    A