English · Português (Brasil)
Concierge Graph (V4 Core)
Open-Source, Local-First Long-Term Memory (LTM), Hybrid Search & MCP Governance Server for AI Agents and IDEs
Concierge Graph is a local-first memory server built around the Model Context Protocol (MCP) that gives AI coding assistants (Cursor, Claude Desktop, and autonomous agents) persistent project memory, hybrid retrieval, recursive call-chain queries, durable agent checkpoints, and governed tool disclosure — backed by SQLite WAL (with FTS5) and pluggable vector storage (ChromaDB by default, optional Qdrant).
V4 Core Consolidation Note: Experimental modules from earlier iterations have been moved to quarantine under
archive/v4-experimental/so that the active V4 core remains lean, deterministic, and audited.
Core Capabilities (V4 Core)
- SQLite WAL + FTS5 Relational Graph (
storage/): Stores projects, code nodes, call/import edges, semantic facts, memory commits, and durable agent checkpoints (agent_checkpoints) in a local SQLite database with WAL mode and full-text indexing. - Tri-Signal Hybrid Search v4 (
core/hybrid_search.py): Blends dense vector similarity (sentence-transformers+ ChromaDB/Qdrant), SQLite FTS5 BM25 lexical scoring, and topological/recency signals with strict project/wing scoping and query-time orphan vector filtering. - Python AST Ingestion & Self-Healing Vectors (
ingestion/,services/janitor.py): Crawls repositories, extracts Python AST chunks and call edges, repairs missing embeddings during mining with honest failure reporting, and supports on-demand vector reconciliation (concierge sync-vector). - Recursive Call-Chain GraphRAG (
core/graph_rag.py): Traverses multi-hopcallsdependencies over SQLiteedgesusingWITH RECURSIVECTEs protected by strict pipe-delimited cycle guards (|node|). - Durable Agent Checkpoints with Ownership Binding (
core/checkpointer.py): Persists and retrieves structured agent state dictionaries inagent_checkpointsviaagent_save_checkpoint,agent_get_checkpoint, andagent_list_checkpointswith strict argument resolution, corrupt-JSON detection, and SHA-256owner_hashnamespace verification (GRAFO_AGENT_TOKENoverstdio, orX-Grafo-Agent-Tokenover HTTP/SSE decoupled fromAuthorization: Bearer, falling back to an ephemeral per-ServerSessionsecret). - Least-Privilege MCP Governance (
core/mcp_governor.py): Classifies all 31 live MCP tools intoREAD_ONLY(18),LOCAL_MUTATION(11), andDANGEROUS(2) across a 3-state hierarchy (PLANNING < EXECUTION < MAINTENANCE), defaulting toPLANNING(GRAFO_DEFAULT_STATE) as a hard privilege ceiling (max_state). Sessions are bound server-side to the MCP transport (WeakKeyDictionary), undeclared tool arguments are rejected, and bothlist_tools(ListToolsRequest) and runtime execution enforce fail-closed governance filtering. - Domain Neutrality & Free-Form Wings: Project wings are strictly user- or agent-defined free-form strings — no hardcoded business taxonomies exist in product code, enforced by AST guard tests (
tests/test_domain_neutrality_guard.py). - Optional Lightweight Mode & Zero-Cost LLM Defaults: Set
GRAFO_LIGHTWEIGHT_MODE=trueto operate using SQLite FTS5 BM25 at ~108 MB RSS (~5.8x less RAM than default mode) without vector model overhead or spurious embedding failure reports, andLLMAdapterautomatically runs at zero cost (is_enabled=False) when no provider API key is configured (or whenGRAFO_LLM_MODEL=none).
Architecture Overview
┌───────────────────────────┐ ┌───────────────────────────┐
│ Cursor / Windsurf │ │ Claude Desktop │
└─────────────┬─────────────┘ └─────────────┬─────────────┘
│ │
│ MCP (stdio default / SSE) │
└─────────────────┬────────────────┘
│
▼
┌─────────────────────────────┐ ┌─────────────────────┐
│ Concierge Graph MCP Server │ │ concierge CLI │
│ concierge-mcp (Port 8000) │ │ (10 subcommands) │
└──────────────┬──────────────┘ └──────────┬──────────┘
│ │
└───────────────┬────────────────┘
▼
┌──────────────────────────────┐
│ GrafoConcierge Facade │
│ + MCPToolGovernor (31) │
└──────────────┬───────────────┘
▼
┌──────────────────────────────┐
│ SQLite WAL/FTS5 + ChromaDB │
│ (or optional Qdrant) │
└──────────────────────────────┘
Quick Start
Quick Install (v4.1.1)
Release & PyPI Status: Version
4.1.1builds onv4.1.0(which superseded the legacyv3.8.2PyPI release and pre-auditV4.0.0GitHub tag).
-
Install via pip (or from source in editable mode):
# Package installation: pip install concierge-graph # Or editable source checkout: git clone https://github.com/LuisinTheLegend/ConciergeGraph.git cd ConciergeGraph python -m venv .venv # Linux / macOS: source .venv/bin/activate # Windows PowerShell: .venv\Scripts\Activate.ps1 pip install --upgrade pip pip install -e .
For development and running tests (or install via
pip install -r requirements-dev.txt;requirements.txtcontains production runtime packages only):pip install -e ".[dev]"
-
Configure environment variables (
.env):cp .env.example .env
Minimal local-first configuration (zero external LLM cost when no API key is set; read-only
PLANNINGmode by default):GRAFO_LLM_MODEL=none GRAFO_TRANSPORT=stdio GRAFO_DEFAULT_STATE=PLANNING # 18 READ_ONLY tools (default, safest); set EXECUTION to allow register/mine/commit/write tools GRAFO_DB_PATH=./data/concierge.db GRAFO_CHROMA_PATH=./data/chroma
Governance mode tip: MCP sessions start in
GRAFO_DEFAULT_STATE=PLANNING(read-only: search, wakeup, resume, checkpoints, call chains). To allow agents to callconcierge_register,concierge_mine,concierge_commit, or memory writes, setGRAFO_DEFAULT_STATE=EXECUTIONin.envor your MCP client config and restart the server. To run over HTTP/SSE instead ofstdio:GRAFO_TRANSPORT=sse GRAFO_HOST=127.0.0.1 GRAFO_PORT=8000 GRAFO_API_KEY=your_optional_bearer_token
-
Run the MCP Server or CLI:
# Launch MCP server (uses GRAFO_TRANSPORT: stdio default, or sse on port 8000) concierge-mcp --help concierge-mcp --version concierge-mcp --transport sse # Or start via Docker Compose (non-root UID 10001, SSE + /health check) docker compose up -d --build # Use the terminal CLI (10 subcommands) concierge --help concierge register --name my-project --wing backend/core concierge mine --path /path/to/my-project --name my-project concierge search --query "authentication flow" --project <project-uuid>
When running over HTTP/SSE,
GET /healthandHEAD /healthreturn200 {"status": "ok"}without requiringGRAFO_API_KEY, while/sse,/messages/, and all other paths remain protected by pure ASGIAuthorization: Bearervalidation.
MCP Tools (31 Live Tools)
| Category | Count | Tools |
|---|---|---|
READ_ONLY |
18 | concierge_search, concierge_wakeup, concierge_resume, concierge_load, concierge_status, concierge_list_projects, concierge_list_facts, concierge_get_memory, get_full_topology, get_trajectories, find_similar, search_symbols, get_implementations, get_callers, concierge_get_call_chain, count_embeddings, agent_get_checkpoint, agent_list_checkpoints |
LOCAL_MUTATION |
11 | concierge_register, concierge_mine, concierge_commit, concierge_set_state, concierge_store_fact, concierge_set_memory, concierge_feedback, update_project, add_reference_wing, remove_reference_wing, agent_save_checkpoint |
DANGEROUS |
2 | delete_project, reset_collection |
See docs-grafo-concierge/README.md for architecture details and the full list of CLI subcommands.
Testing & Verification
The active V4 core is covered by 379 passing automated tests (verified in normal and --reverse order, plus CI across Linux, Windows, and real container docker-smoke):
python -m pytest tests/ -q
Contributing & Lineage
- Read
CONTRIBUTING.mdfor architectural pillars, testing rules, and MCP governance contracts. - Read
ATTRIBUTION_AND_LINEAGE.mdfor technical credits and the active vs. quarantined status matrix. - Read
CHANGELOG.mdfor recent changes and breaking-change migration notes.
License
Distributed under the MIT License. See LICENSE for details.
Metadata
Release files for concierge-graph 4.1.1
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 |
|---|---|---|---|---|
| concierge_graph-4.1.1.tar.gz | 263.1 kB | With provenance | Details for concierge_graph-4.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| concierge_graph-4.1.1-py3-none-any.whl | Python 3 | none | any | Details for concierge_graph-4.1.1-py3-none-any.whl |
Total release size: 418.4 kB
Release files / concierge_graph-4.1.1.tar.gz
| Download URL | concierge_graph-4.1.1.tar.gz |
|---|---|
| Size | 263.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae5d0a9332b4111b5e900b57b13b275541497ac096d7058752fbef656a944f12
|
|
BLAKE2b-256 checksum How to use checksums |
99614676f4f5b6f03f56abe7ea0c6eaf5f37600ee49e7209cfe55a29baaf6b6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / concierge_graph-4.1.1-py3-none-any.whl
| Download URL | concierge_graph-4.1.1-py3-none-any.whl |
|---|---|
| Size | 155.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3159406f4831163ebcbb41556667a6cf4763e9a929648673fd48510bad979a45
|
|
BLAKE2b-256 checksum How to use checksums |
344039dd3601a5083125603f0c628089a4b35f4f392af5cff27eec13462160a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for concierge-graph 4.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for concierge_graph-4.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.