Skip to main content

English · Português (Brasil)

🧠 Concierge Graph v3.8.2

The Open-Source Long-Term Memory (LTM) & Cognitive Palace for AI Agents, IDEs & Developer Environments

MIT License Python 3.10+ Protocol MCP Docker Supported

Concierge Graph is a high-performance, local cognitive memory server designed to solve LLM "amnesia" and context window pollution. Unlike simple RAG (Retrieval-Augmented Generation) scripts, Concierge Graph acts as a bi-temporal, self-healing memory engine combining relational SQL persistence, vector search, hierarchical context synthesis (Zoom Gear), and autonomous background maintenance (Janitor Loop).


💡 What is Concierge Graph? (For Beginners & Senior Devs)

👶 Simple Explanation (The Analogy)

Imagine hiring a brilliant senior software engineer who suffers from short-term memory loss. Every time you open a new chat window in Cursor or Claude Desktop, they forget your project structure, coding standards, and past architectural decisions.

Concierge Graph is that engineer's permanent external brain. Connected seamlessly via the Model Context Protocol (MCP), your AI assistant automatically consults, learns from, and updates this brain in milliseconds—without you ever copying and pasting context again!

🧙‍♂️ Technical Deep-Dive (For Engineers)

Concierge Graph is a local/VPS daemon that provides:

  1. Bi-Temporal Fact Persistence: Stores semantic facts and code entities with explicit valid time and transaction time tracking.
  2. Hybrid Search v4 Engine: Balances dense vector embeddings (50%), precise keyword signatures via SQLite FTS5 BM25 (25%), and graph signals (25% combining centrality and exponential recency decay $W = W_0 \cdot e^{-\lambda t}$).
  3. AST-Aware Apex Ingestion: Parses Python, TypeScript, JS, Go, Rust, Java, C/C++ files into structural AST nodes with delta-hashing (SHA-256) to skip unmodified code.
  4. Autonomous Self-Healing (Janitor Loop): Operates in a background thread to reconcile relational SQLite tables with vector collections, prune orphan embeddings, and decay inactive context.

🔌 Simultaneous Multi-Client Integration via MCP

Powered by Anthropic's Model Context Protocol (MCP), a single Concierge Graph server instance communicates simultaneously with all your favorite tools:

    ┌───────────────────────────┐      ┌───────────────────────────┐
    │     Cursor / Windsurf     │      │       Claude Desktop      │
    └─────────────┬─────────────┘      └─────────────┬─────────────┘
                  │                                  │
                  │        JSON-RPC / SSE (MCP)      │
                  └─────────────────┬────────────────┘
                                    │
                                    ▼
                     ┌─────────────────────────────┐
                     │ 🧠 Concierge Graph Server   │
                     │  (Local / VPS - Port 8000)  │
                     └─────────────────────────────┘
  • 💻 Cursor & Windsurf: Your IDE agent dynamically searches, recalls, and commits project memory as you write code.
  • 💬 Claude Desktop: Grants your desktop AI assistant instant macro awareness of your repos.
  • 🤖 Autonomous Agents & Workflows: Connect n8n, LangChain, AutoGen, or custom python scripts via SSE endpoints.

⚡ Quick Start Guide (3 Minutes)

Option 1: Install via PyPI (Recommended for Most Users)

# Install Grafo Concierge package & CLI
pip install concierge-graph

# Uninstall anytime
pip install concierge-graph --upgrade # to update
pip uninstall concierge-graph         # to uninstall

Option 2: Local Setup from Source (For Developers & Contributors)

  1. Clone & Install in Editable Mode:

    git clone https://github.com/LuisinTheLegend/GrafoConcierge.git
    cd GrafoConcierge
    pip install -e .[dev]
    
  2. Configure Environment (.env):

    cp .env.example .env
    

    Add your Gemini or OpenAI key:

    GRAFO_LLM_API_KEY=your_gemini_api_key_here
    GRAFO_LLM_MODEL=gemini-2.0-flash
    
  3. Start the MCP Server:

    concierge-mcp
    # or: python main.py
    

Option 2: VPS Deployment (Direct pip or Docker) 🌐

You can host Concierge Graph on any Linux VPS (Ubuntu/Debian) in two ways:

A) Direct Installation (Native pip)

# 1. Install directly on your VPS
pip install concierge-graph

# 2. Set your environment variables (or create a .env file)
export GRAFO_LLM_API_KEY="your_gemini_key"
export GRAFO_HOST="0.0.0.0"
export GRAFO_API_KEY="your_secure_vps_token"

# 3. Launch the server
concierge-mcp

B) Containerized Installation (Docker 🐳)

# Set your API Key for remote security in .env
echo "GRAFO_API_KEY=your_secure_vps_token" >> .env

# Boot the containerized server
docker compose up -d

💻 1-Click Configuration for IDEs & Claude Desktop

For Claude Desktop (claude_desktop_config.json)

Add Concierge Graph to your configuration file:

{
  "mcpServers": {
    "concierge-graph": {
      "command": "python",
      "args": ["-m", "interface.mcp_server"],
      "cwd": "/path/to/GrafoConcierge",
      "env": {
        "GRAFO_LLM_API_KEY": "your_api_key_here"
      }
    }
  }
}

For Remote VPS / SSE Connections (Cursor / Custom Scripts)

When running on a server:

{
  "mcpServers": {
    "concierge-graph": {
      "url": "http://your-vps-ip:8000/sse",
      "headers": {
        "Authorization": "Bearer your_secure_remote_token"
      }
    }
  }
}

🚀 Performance Benchmarks (Colossus Protocol)

Tested against 20,000 code nodes under the Colossus Protocol:

Metric Result (20,000 nodes)
Search Latency (P50) 41.69 ms
Search Latency (P99) 112.75 ms
Scalability Factor 0.93x (Linear performance preserved)
Ingestion Throughput (SQLite) ~536 nodes/second
Ingestion Throughput (ChromaDB) ~914 vectors/second
Background Maintenance (Janitor) 20,000 orphan vectors reconciled in ~11s

🛠️ Hybrid Search v4 Formula

Relevance scores are calculated by composing three distinct signals:

$$\text{Score} = (0.50 \times \text{Vector Similarity}) + (0.25 \times \text{Normalized FTS5 BM25}) + (0.25 \times \max(\text{Recency}, \text{Centrality}))$$

  1. Vector Similarity (50%): Captures deep conceptual meaning using dense embeddings.
  2. FTS5 BM25 (25%): Exact token signatures for function names, classes, and symbols.
  3. Graph Signals (25%):
    • Centrality: Relative connectivity of a node (in-degree normalized).
    • Recency: Time-based exponential decay ensuring historical context ages gracefully: $$W = W_0 \cdot e^{-\lambda t}$$

🔌 Core MCP Tools Reference

  • concierge_mine: Ingests a directory, chunks code (AST), extracts tags, and generates L0/L1/L2 summaries.
  • concierge_search: Runs the complete Hybrid Search v4 pipeline across indexed projects.
  • concierge_wakeup: Reactivates agent consciousness on session start by returning the Context Compass, reference wings, and recent commits.
  • concierge_resume: Retrieves macro summary of project context (ideal for system prompt injection).
  • concierge_load: On-demand lazy loader for full node contents, edges, and dependencies.
  • concierge_commit: Registers audited architectural changes to the cognitive ledger.
  • concierge_store_fact: Records user preferences and architectural rules with bi-temporal invalidation.

🛠️ Global CLI Subcommands Reference (concierge)

After running pip install concierge-graph, two global terminal commands are installed via pyproject.toml:

  1. concierge-mcp: Boots the FastMCP Server daemon.
  2. concierge: Multifunctional CLI utility supporting the following subcommands:
# 1. Register a new workspace/project
concierge register --name my-project --wing backend --privacy PUBLIC

# 2. Mine / Ingest a codebase directory into the memory graph
concierge mine --path /path/to/codebase --name my-project

# 3. Perform Hybrid Search v4 across indexed memory
concierge search --query "authentication middleware" --project my-project

# 4. Reactivate agent consciousness (Compass + Wings + Commits)
concierge wakeup --project my-project

# 5. Retrieve Context Compass macro summary
concierge resume --project my-project

# 6. Register audited architectural commit to ledger
concierge commit --project <uuid> --phase build --technical_changes "Added Auth JWT"

# 7. Lazy load a single node on demand
concierge load --node_id 42

# 8. Display system health, counts, and database status
concierge status

# 9. List all registered projects inside the local database
concierge projects

# 10. Purge a project and all associated relational & vector records
concierge delete --project my-project

🧪 Test Suite & Health Diagnostics

Run all unit and stress tests:

python -m pytest

Run full memory diagnostics:

python -m tests.check_brain

📄 License

Distributed under the MIT License. See LICENSE for details.

Metadata

Release files for concierge-graph 3.8.2

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 3.8.2
File Size Uploaded
concierge_graph-3.8.2.tar.gz 138.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for concierge-graph 3.8.2
File Interpreter ABI Platform
concierge_graph-3.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 278.3 kB

Release files / concierge_graph-3.8.2.tar.gz

Download URL concierge_graph-3.8.2.tar.gz
Size 138.7 kB
Tags Source
SHA-256 checksum
How to use checksums
be31669c73063e3a1c0af185120aaaf440b108dedb3a6eeffc75e2c80b342cbd
BLAKE2b-256 checksum
How to use checksums
2315112052c86b8321ad235960bde067b629f9825994fe76c7ca5c11d0de1cd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / concierge_graph-3.8.2-py3-none-any.whl

Download URL concierge_graph-3.8.2-py3-none-any.whl
Size 139.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12051812ecae73e85563c33d52d4ca5765f0eebf275432fa2efd7c01b8f9e07e
BLAKE2b-256 checksum
How to use checksums
867a2a8d77dc36d35cb1bddaa69b4d565bb7262ef79a0087d6abc0c43db051d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

3.8.2 This release

2 release files

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