🧠 KnowGraph: Graph RAG & MCP Server for Code (v1.0.0 🚀)
Transform your AI coding assistant with deep code understanding
"Your code is not just text, it's a living graph."
Shift from vector similarity to the deterministic clarity of Graph Theory and Joern Code Property Graph.
⚡ Quick Start • 📚 Full Documentation • 📘 Example Usage Guide
🔬 Why KnowGraph?
KnowGraph is an MCP (Model Context Protocol) server that enhances AI coding assistants with:
- 🎯 Graph-Based Code Understanding: Follows real relationships (imports, calls, inheritance)
- 🔍 Deep Security Analysis: Joern-powered vulnerability detection (SQL injection, XSS, buffer overflows)
- 📊 Impact Analysis: Predict ripple effects of code changes
- 🕰️ Time-Travel Debugging: Version control for your knowledge graph
- 💬 Conversational Memory: Index and search your AI chat history
- ⚡ High Performance: 30s indexing, <1s re-indexing with smart caching
Supported Languages: Python, JavaScript/TypeScript, Java, C/C++, Go, Rust, C#, Scala, PHP, Ruby, Kotlin, Swift, and more (15+ languages)
⚡ Quick Start
1. Installation
pip install knowgraph
# Setup Joern for advanced code analysis (recommended)
knowgraph-setup-joern
2. MCP Server Configuration
For Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"knowgraph": {
"command": "knowgraph",
"args": ["serve"],
"env": {
"KNOWGRAPH_API_BASE_URL": "https://openrouter.ai/api/v1",
"KNOWGRAPH_LLM_MODEL": "x-ai/grok-4.1-fast",
"KNOWGRAPH_API_KEY": "sk-your-openai-key-here"
}
}
}
}
For Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"knowgraph": {
"command": "knowgraph",
"args": ["serve"],
"env": {
"KNOWGRAPH_API_BASE_URL": "https://openrouter.ai/api/v1",
"KNOWGRAPH_LLM_MODEL": "x-ai/grok-4.1-fast",
"KNOWGRAPH_API_KEY": "sk-your-openai-key-here"
}
}
}
}
For Antigravity
Add to ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"knowgraph": {
"command": "knowgraph",
"args": ["serve"],
"env": {
"KNOWGRAPH_API_BASE_URL": "https://openrouter.ai/api/v1",
"KNOWGRAPH_LLM_MODEL": "x-ai/grok-4.1-fast",
"KNOWGRAPH_API_KEY": "sk-your-openai-key-here"
},
"disabled": false
}
}
}
Using OpenRouter (Alternative LLM Provider)
{
"mcpServers": {
"knowgraph": {
"command": "knowgraph",
"args": ["serve"],
"env": {
"KNOWGRAPH_API_BASE_URL": "https://openrouter.ai/api/v1",
"KNOWGRAPH_LLM_MODEL": "x-ai/grok-4.1-fast",
"KNOWGRAPH_API_KEY": "sk-or-v1-your-openrouter-key-here"
},
"disabled": false
}
}
}
3. Restart Your AI Editor
That's it! KnowGraph is now ready to use.
📚 Documentation
For detailed usage, configuration, and advanced features, see the User Guide.
Quick Links:
- Installation & Setup
- MCP Server Integration
- Joern Code Analysis
- Advanced Querying
- Performance Optimization
- Security Analysis
- Troubleshooting
- 📘 Example Usage Guide (New!): All commands, combinations and workflows.
- Architecture
🤝 Contributing
Contributions are welcome! Please see our Contributing Guide for details.
📄 License
🔗 Links
- GitHub: yunusgungor/knowgraph
- Documentation: User Guide
- Issues: Report a bug
- MCP Protocol: Model Context Protocol
- Joern: Code Property Graph
Metadata
Release files for knowgraph 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| knowgraph-1.0.0.tar.gz | 354.3 kB | Without provenance | Details for knowgraph-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| knowgraph-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for knowgraph-1.0.0-py3-none-any.whl |
Total release size: 649.5 kB
Release files / knowgraph-1.0.0.tar.gz
| Download URL | knowgraph-1.0.0.tar.gz |
|---|---|
| Size | 354.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8f8b37c125ebb29505313cdcee835cbadee7556e102b754336fff56a759a9e7
|
|
BLAKE2b-256 checksum How to use checksums |
ff39d3f405e96ca03760eaec76552cf08cfc1cfe28edb1765a8390f209188957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / knowgraph-1.0.0-py3-none-any.whl
| Download URL | knowgraph-1.0.0-py3-none-any.whl |
|---|---|
| Size | 295.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e82c98e5befa485b4a1dc9027a0aea50ea62ecc32f1521f7e05358814996c30e
|
|
BLAKE2b-256 checksum How to use checksums |
0a6a8bd1e9b1ca97e81f480c32a7f5758b0fa42f0b683c9e3078fdf52d8b579d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for knowgraph 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.