Skip to main content

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

MIT License Python 3.10+ Protocol MCP MCP Tools Tests Passing

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)

  1. 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.
  2. 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.
  3. 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).
  4. Recursive Call-Chain GraphRAG (core/graph_rag.py): Traverses multi-hop calls dependencies over SQLite edges using WITH RECURSIVE CTEs protected by strict pipe-delimited cycle guards (|node|).
  5. Durable Agent Checkpoints with Ownership Binding (core/checkpointer.py): Persists and retrieves structured agent state dictionaries in agent_checkpoints via agent_save_checkpoint, agent_get_checkpoint, and agent_list_checkpoints with strict argument resolution, corrupt-JSON detection, and SHA-256 owner_hash namespace verification (GRAFO_AGENT_TOKEN over stdio, or X-Grafo-Agent-Token over HTTP/SSE decoupled from Authorization: Bearer, falling back to an ephemeral per-ServerSession secret).
  6. Least-Privilege MCP Governance (core/mcp_governor.py): Classifies all 31 live MCP tools into READ_ONLY (18), LOCAL_MUTATION (11), and DANGEROUS (2) across a 3-state hierarchy (PLANNING < EXECUTION < MAINTENANCE), defaulting to PLANNING (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 both list_tools (ListToolsRequest) and runtime execution enforce fail-closed governance filtering.
  7. 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).
  8. Optional Lightweight Mode & Zero-Cost LLM Defaults: Set GRAFO_LIGHTWEIGHT_MODE=true to 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, and LLMAdapter automatically runs at zero cost (is_enabled=False) when no provider API key is configured (or when GRAFO_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.1 builds on v4.1.0 (which superseded the legacy v3.8.2 PyPI release and pre-audit V4.0.0 GitHub tag).

  1. 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.txt contains production runtime packages only):

    pip install -e ".[dev]"
    
  2. Configure environment variables (.env):

    cp .env.example .env
    

    Minimal local-first configuration (zero external LLM cost when no API key is set; read-only PLANNING mode 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 call concierge_register, concierge_mine, concierge_commit, or memory writes, set GRAFO_DEFAULT_STATE=EXECUTION in .env or your MCP client config and restart the server. To run over HTTP/SSE instead of stdio:

    GRAFO_TRANSPORT=sse
    GRAFO_HOST=127.0.0.1
    GRAFO_PORT=8000
    GRAFO_API_KEY=your_optional_bearer_token
    
  3. 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 /health and HEAD /health return 200 {"status": "ok"} without requiring GRAFO_API_KEY, while /sse, /messages/, and all other paths remain protected by pure ASGI Authorization: Bearer validation.


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.md for architectural pillars, testing rules, and MCP governance contracts.
  • Read ATTRIBUTION_AND_LINEAGE.md for technical credits and the active vs. quarantined status matrix.
  • Read CHANGELOG.md for 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)

Source distribution for concierge-graph 4.1.1
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)

Table of built distributions (wheels) for concierge-graph 4.1.1
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page