Install
$ agentstack add mcp-ishandutta2007-code-knowledge-graph β scanned Β· β verified, works with Claude Code, Cursor, and more.
Security review
β PassedNo issues found. Passed automated security review. Β· v0.1.0 How review works β
- β Prompt-injection patterns
- β Secret / credential exfiltration
- β Dangerous shell & filesystem operations
- β Untrusted network calls
- β Known-malicious package signatures
What it can access
- β Network access No
- β Filesystem access No
- β Shell / process execution No
- β Environment & secrets No
- β Dynamic code execution No
From automated source analysis of v0.1.0. βUsedβ means the capability is present in the source β more access means more to trust, not that itβs unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work βAbout
π§ Code Knowledge Graph (GKG)
The Pre-indexed Intelligence Layer for your AI Agents
[](https://opensource.org/licenses/MIT) [](#) [](#) [](http://makeapullrequest.com)
π Stop Wasting Tokens. Start Coding Faster.
Code-Knowledge-Graph is a high-performance, local indexing engine that maps your codebase into a structured graph. It allows AI agents to understand your project instantly without exhaustive file crawling.
[Features](#-key-features) β’ [Getting Started](#-quick-start) β’ [Supported Agents](#-agent-compatibility) β’ [Why Graph?](#-why-code-knowledge-graph)
β¨ Key Features
- ποΈ Graph-Based Indexing: Transforms flat files into a rich semantic network of classes, functions, and dependencies.
- π Token Optimization: Drastically reduces the "context window tax" by providing surgical code snippets instead of full-file dumps.
- β‘ Zero Latency: 100% local processing. No API calls required for indexing.
- π€ Agent Ready: Native support for Claude Code, Codex, Cursor, OpenCode, and Hermes Agent.
- π‘οΈ Privacy First: Your code never leaves your machine.
π½οΈ Demo
Example: Rapidly mapping a 100k LOC repository in seconds.
π§© Agent Compatibility
| Agent | Support Level | Integration Method | | :--- | :---: | :--- | | Claude Code | π Full | Custom Tool / Hook | | Cursor | β
Native | .cursorrules / Indexing | | Codex | β
High | Plugin | | OpenCode | π οΈ Beta | API Bridge | | Hermes Agent | π Optimized | Native Protocol |
π οΈ Quick Start
1. Installation
# Clone the repository
git clone https://github.com/ishandutta2007/Code-Knowledge-Graph.git
# Navigate to the directory
cd Code-Knowledge-Graph
# Install dependencies
npm install
2. Index your codebase
npm run ckg -- index ./path/to/your/project
3. Query the graph
npm run ckg -- query SymbolName
4. Run the MCP Server
To use this with Claude Code or other MCP-compatible agents:
npm run mcp
Then add it to your agent's config (e.g., in claude_desktop_config.json):
{
"mcpServers": {
"code-knowledge-graph": {
"command": "node",
"args": ["--loader", "ts-node/esm", "C:/path/to/Code-Knowledge-Graph/src/index.ts", "mcp"],
"cwd": "C:/path/to/Code-Knowledge-Graph"
}
}
}
π Why Code Knowledge Graph?
Traditional AI agents spend ~40% of their tokens just trying to find where a function is defined. By providing a pre-indexed graph, we flip the script:
| Metric | Without CKG | With CKG | Improvement | | :--- | :--- | :--- | :--- | | Initial Context Load | 15,000 Tokens | 1,200 Tokens | 92% Reduction | | Tool Call Latency | 5-10s |
Built with β€οΈ for the AI Engineering Community.
[](https://twitter.com/ishandutta2007)
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source β we do not rehost the code.
- Author: ishandutta2007
- Source: ishandutta2007/Code-Knowledge-Graph
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.