MCP Hub
Back to servers

Graqle

Dev intelligence layer: 7 MCP tools for graph-powered codebase reasoning.

Registryglama
Forks
1
Updated
Mar 16, 2026

Quick Install

uvx graqle

graQle

Query your architecture, not your files.

The dev intelligence layer that turns any codebase into a self-learning knowledge graph.
2,000+ tests. 396 modules compiled. 201 skills. Zero cloud required.

PyPI Python 3.10+ Tests: 2000+ passing License: Apache 2.0 MCP

Website · PyPI · GitHub · Changelog


3 commands. That's it.

pip install graqle[api]
graq init
graq reason "what breaks if I change auth?"

3 nodes activated. 500 tokens. 5 seconds. $0.0003.

Not 60 files. Not 50,000 tokens. Not $0.15. Not guessing.


What Graqle does

Your AI assistant reads files one at a time. It doesn't understand your architecture — it reads text.

Graqle builds a knowledge graph of your entire codebase. Every module becomes a reasoning agent. When you ask a question, only the relevant nodes activate, reason about their domain, and synthesize one answer.

pip install graqle → graq init → Knowledge Graph
                                       │
             ┌──────────┬──────────────┼──────────┐
             ▼          ▼              ▼          ▼
           CLI      Python SDK     MCP Server  Studio UI
        (terminal)  (scripts)      (any IDE)   (dashboard)

The graph is the product. Your machine, your API keys, your data.


What's new in v0.26.0

Intelligence Compilation

Graqle now compiles your knowledge graph into actionable intelligence:

graq compile                    # Compile intelligence from your graph

This produces a .graqle/intelligence/ directory with:

  • 396 module packets — risk scores, impact radius, consumers, dependencies
  • 135 insights — warnings, suggestions, connections, superlatives
  • Risk heatmap data — LOW/MEDIUM/HIGH/CRITICAL per module
  • CLAUDE.md auto-injection — your AI assistant learns your architecture automatically

Governance Gate (DRACE)

Every reasoning session is scored on 5 axes: Data quality, Relevance, Accuracy, Completeness, Evidence strength.

graq verify                     # Pre-commit governance check
  • Hash-chained audit trails (tamper-evident)
  • Evidence chains linking decisions to source
  • Scope gates preventing out-of-domain reasoning
  • Auto-recompile when intelligence goes stale

Multi-Signal Activation (Neo4j)

Gate + Rerank: semantic score gates everything, topology signals only amplify.

final = semantic × (1 + authority + memory + link + freshness)

Max amplification: 1.45×. An irrelevant node can never sneak through.

Self-Learning Loop

graq learn → graph grows → git commit → auto-recompile → CLAUDE.md updates → AI gets smarter

The graph remembers which nodes produce useful answers. Gets better with every query.

Studio Dashboards

6 new visual dashboards: Intelligence, Governance, Health, Learning, Control, Share.


Works with everything

IDE / ToolHowSetup
Claude CodeMCP server + CLAUDE.mdgraq init (auto)
CursorMCP server + .cursorrulesgraq init --ide cursor
VS Code + CopilotMCP servergraq init --ide vscode
WindsurfMCP server + .windsurfrulesgraq init --ide windsurf
JetBrains / Codex / ReplitCLI + SDKgraq init --ide generic
CI/CD pipelinesPython SDKpip install graqle

No cloud account. No infrastructure. No config files to write.


CLI

# Reasoning
graq reason "what depends on auth?"          # Graph reasoning
graq context auth-lambda                      # 500-token focused context
graq inspect --stats                          # Graph statistics
graq "what is safe to refactor?"              # Natural language (auto-routed)

# Build & compile
graq init                                     # Scan repo, build graph, wire IDE
graq scan repo .                              # Rescan codebase
graq scan all .                               # Code + JSON + documents
graq compile                                  # Compile intelligence layer
graq verify                                   # Governance gate + staleness check

# Teach
graq learn node "auth-service" --type SERVICE
graq learn edge "Payments" "auth" -r DEPENDS_ON
graq learn discover --from "auth-service"     # Auto-discover connections
graq learn doc architecture.pdf               # Document ingestion

# Studio & server
graq studio                                   # Launch visual dashboard
graq serve                                    # Start REST API
graq doctor                                   # Health check

Python SDK

from graqle.core.graph import Graqle
from graqle.backends.api import AnthropicBackend

graph = Graqle.from_json("graqle.json")
graph.set_default_backend(
    AnthropicBackend(model="claude-sonnet-4-6")
)

result = graph.reason(
    "What services depend on auth?",
    max_rounds=3,
    strategy="top_k"
)

print(result.answer)
print(f"Confidence: {result.confidence:.0%}")
print(f"Cost: ${result.cost_usd:.4f}")

MCP Tools

Available automatically in Claude Code, Cursor, VS Code, and Windsurf after graq init:

ToolWhat it does
graq_context500-token focused context (replaces reading entire files)
graq_reasonMulti-agent graph reasoning
graq_impact"What breaks if I change X?"
graq_preflightPre-change safety check
graq_lessonsSurface past mistakes before you repeat them
graq_learnTeach the graph new knowledge
graq_inspectGraph structure inspection
graq_reloadHot-reload graph without restarting

Studio Dashboard

graq studio                        # Opens http://127.0.0.1:8888/studio/
PageWhat you see
IntelligenceRisk heatmap, module packets, 135 insights, impact matrix
GovernanceDRACE radar chart, audit timeline, evidence chains, shareable badge
HealthStreak calendar, improvement suggestions, graph health trends
LearningSkill activations, domain breakdown, recompile history
Graph ExplorerInteractive force-directed graph with intelligence overlay
ControlMulti-instance management, cross-repo insights

14 backends, one config line

# graqle.yaml
model:
  backend: groq    # or: anthropic, openai, bedrock, gemini, ollama, deepseek, mistral, ...
BackendCostSetup
Ollama$0 (local)backend: ollama
Anthropic~$0.001/querybackend: anthropic
OpenAI~$0.001/querybackend: openai
AWS BedrockAWS pricingbackend: bedrock
Google Gemini~$0.0001/querybackend: gemini
Groq~$0.0005/querybackend: groq
DeepSeek~$0.0001/querybackend: deepseek
Mistral~$0.0002/querybackend: mistral
Together~$0.0005/querybackend: together
OpenRouterVariesbackend: openrouter
Fireworks~$0.0005/querybackend: fireworks
Cohere~$0.0003/querybackend: cohere
vLLMYour GPUbackend: local
llama.cpp$0 (CPU)backend: local

Task-based routing

Different models for different tasks. Fast models for lookups, smart models for reasoning:

routing:
  default_provider: groq
  rules:
    - task: reason
      provider: anthropic
      model: claude-sonnet-4-6
    - task: context
      provider: groq
      model: llama-3.1-8b-instant

Auto-scaling backend

Graqle starts with JSON/NetworkX (zero deps). When your graph grows:

Graph sizeBackendWhat happens
< 5,000 nodesJSON/NetworkXDefault. Instant. Zero config.
5,000+ nodesNeo4jAuto-recommended. Migration handled.
Team/EnterpriseNeo4j + GDSVector search, PageRank, Adamic-Adar proximity.
pip install graqle[neo4j]     # Adds neo4j driver — same API, just faster

Document-aware intelligence

Graqle connects code to documents to configs in one graph.

SourceFormatsWhat it extracts
CodePython, TypeScript, JavaScript, Go, Rust, JavaFunctions, classes, modules, imports, call graphs
DocumentsPDF, DOCX, PPTX, XLSX, Markdown, TXTSections, decisions, requirements, stakeholders
JSONpackage.json, OpenAPI, tsconfig, CDK, SAMDependencies, endpoints, infrastructure resources

Auto-linking: exact match, fuzzy match, semantic match, LLM-assisted. Cross-source deduplication. Contradiction detection.


The numbers

MetricGraqleReading files
Tokens per query50050,000
Cost per query$0.0003$0.15
Time to answer<5 seconds20 minutes
Tests passing2,000+
Modules compiled396
Skills available201

Installation

pip install graqle              # Minimal (no API keys needed)
pip install graqle[api]         # + Anthropic, OpenAI, Bedrock
pip install graqle[docs]        # + PDF, DOCX, PPTX, XLSX
pip install graqle[neo4j]       # + Neo4j graph database
pip install graqle[all]         # Everything
ExtraWhat it adds
apianthropic, openai, boto3
docspdfplumber, python-docx, python-pptx, openpyxl
neo4jneo4j driver
embeddingssentence-transformers
gputorch, transformers, peft, vllm
cpullama-cpp-python
studiofastapi, uvicorn, jinja2
devpytest, ruff, mypy, coverage

15 Innovations (Patent EP26162901.8)

Every innovation is free under Apache 2.0.

#InnovationWhy it matters
1Chunk-level semantic scoringFinds the exact function, not the file
2Zero-cost transparencySee which agents activated and why
3Convergent message passingAgents discuss until they agree
4Backend fallback chainAuto-switches models on failure
5Topology-aware synthesisAnswers reflect graph structure
63-layer governance (DRACE)Domain boundaries on every output
7Formula-based complianceQuantitative scores, not pass/fail
8Auto-generate ontologiesOWL+SHACL from your codebase
9Adaptive activation3 nodes for simple, 50 for complex
10Cross-query learningRemembers what works for which patterns
11Per-entity model selectionSecurity nodes use capable models
12Retrieval-to-reasoning pipelineDocuments → graph reasoning
13Hybrid skill matchingRegex precision + semantic flexibility
14Neo4j vector + graph searchEmbedding similarity + graph traversal in one query
15Activation memoryPersistent cross-session node effectiveness

Quick start

# Python project
pip install graqle[api] && cd my-project && graq init
graq reason "what depends on the database module?"

# With documents
pip install graqle[api,docs]
graq scan all . && graq scan wait
graq reason "what does the architecture doc say about auth?"

# Claude Code (auto-wired)
graq init    # Claude Code now has graq_context, graq_reason, graq_impact, etc.

# Cursor
graq init --ide cursor

Pricing

Free for individuals. Always.

Free ($0)Pro ($19/mo)Team ($29/dev/mo)
All 15 innovationsYesYesYes
CLI + SDK + MCP + APIYesYesYes
14 LLM backendsYesYesYes
Document scanningYesYesYes
Intelligence compilationYesYesYes
Studio dashboardsBasicFullFull + team
Governance (DRACE)Current session30-session historyUnlimited
Audit trails3 sessions20 sessionsUnlimited
Health streaks7 daysFull yearTeam streaks
Commercial useYesYesYes

Citation

@article{kumar2026graqle,
  title   = {Graqle: Governed Intelligence through Graph-of-Agents Reasoning
             over Knowledge Graph Topologies with Semantic SHACL Validation},
  author  = {Kumar, Harish},
  year    = {2026},
  institution = {Quantamix Solutions B.V.},
  note    = {European Patent Application EP26162901.8},
  url     = {https://github.com/quantamixsol/graqle}
}

Contributing

git clone https://github.com/quantamixsol/graqle
cd graqle
pip install -e ".[dev]"
pytest                         # 2,000+ tests

See CONTRIBUTING.md for development setup, testing, and PR guidelines.

License

Apache 2.0 — use it commercially, modify it freely, keep the attribution.

Reviews

No reviews yet

Sign in to write a review