Contextual
OfficialContextual indexes a codebase locally and exposes it through an MCP server and CLI — giving AI coding agents structural call resolution, class-hierarchy awareness, and temporal, git-history-aware retrieval. Grounded answers about what a codebase actually does, not what a model assumes it does.
This repository is the public home of Contextual: documentation, and the place to report bugs or request features. It is proprietary, closed-source software — this repository does not contain, and will never contain, the engine's source code.
Install
uv tool install contextual-enginepipx works the same way if you don't use uv:
pipx install contextual-engineThen, from the root of the repository you want Contextual to understand:
contextual init
contextual indexConnect an AI client (Claude Code, Claude Desktop, Cursor, Windsurf, and others), and it can now ground its answers in your actual codebase — not a guess. Full walkthrough: Getting Started.
Related MCP server: Turbo Quant Memory MCP Server
What is Contextual?
Contextual is a local-first context engine for AI coding agents: a CLI and MCP server that build a structural + semantic + temporal understanding of a codebase on-device, then serve it to whatever agent is asking. No code ever leaves the machine.
Use it for onboarding onto an unfamiliar codebase, keeping an AI agent grounded in a large monorepo, code review context, or any workflow where "the model guessed" isn't good enough.
%%{init: {'theme':'neutral'}}%%
flowchart LR
A[Your repository] --> B["contextual index<br/>local, on-device"]
B --> C[MCP server]
C --> D["AI client<br/>Claude Code · Cursor · Windsurf · ..."]Documentation
Full docs: contextuallabs.dev/docs — or browse them directly in this repo:
docs/cli/— the Python CLIdocs/mcp-server/— the MCP server and its toolsdocs/web-dashboard/— the web dashboarddocs/concepts/— architecture and cross-cutting conceptsdocs/account/— licensing, trial, device managementdocs/changelog/— release notes
Report a bug or request a feature
GitHub Issues is the official channel for bug reports, docs feedback, and feature requests. Contextual is closed-source, proprietary software, so this isn't a place for code contributions — it's where the community side of this project actually lives: tell us what's broken, what's missing, or what you'd like to see.
Open an issue and pick the template that
matches. Typical first response is 1–3 business days — see
SUPPORT.md for the full detail, and
SECURITY.md to report a vulnerability privately instead.
For anything else: team@contextuallabs.dev
License
All rights reserved — this repository's content is publicly viewable, not
publicly licensed. No commercial use, copying, or redistribution is
permitted. See LICENSE. Contextual (the CLI/MCP server) is
closed-source, licensed software — see contextuallabs.dev
for terms.
This server cannot be deployed
Maintenance
Related MCP Connectors
Local-first memory and continuity for AI coding agents. No cloud backend; optional hosted lane.
- memoryOAuthcom.humaux
Persistent long-term memory for AI agents: semantic search, knowledge graph, and task canvas.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenancePersistent memory for AI coding agents449 PyPI218Apache 2.0
- AlicenseNot gradedqualityAmaintenanceProvides persistent, local-first memory with knowledge graph and hybrid search for AI coding agents, reducing token usage by storing decisions, patterns, and codebase context.343 PyPI9MIT
- AlicenseAqualityDmaintenancePersistent memory for AI coding agents. Builds semantic memory from git history and codebase, searchable via MCP tools.412 npm2MIT
- AlicenseNot gradedqualityDmaintenancePersistent memory for AI coding agents with local-first, zero-cost, privacy-first SQLite/FTS5 storage and biological-inspired decay.14 npm3MIT