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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Related MCP Connectors
- 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.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Related MCP Servers
- Apache 2.0
- FlicenseNot 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.8-
- AlicenseNot gradedqualityDmaintenancePersistent memory for AI coding agents. Builds semantic memory from git history and codebase, searchable via MCP tools.122MIT
- AlicenseNot gradedqualityDmaintenancePersistent memory for AI coding agents with local-first, zero-cost, privacy-first SQLite/FTS5 storage and biological-inspired decay.182MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Contextual-Laboratories/Contextual-Labs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server