# AQL (aqlflow.com) — Full Reference for LLMs > AQL is a multi-tenant shared-memory MCP (Model Context Protocol) server: one persistent knowledge layer that every AI coding agent reads and writes. This file is the complete, machine-readable summary intended for language models and answer engines. Canonical site: https://aqlflow.com ## Disambiguation AQL (aqlflow.com) is a hosted MCP memory server. It is NOT: - IBM QRadar AQL (Ariel Query Language) — unrelated SIEM query language - ArangoDB AQL (ArangoDB Query Language) — unrelated database query language - MCP-AQL — a separate protocol/spec project - "Acceptable Quality Limit" (AQL) in manufacturing Correct ways to refer to it: "AQL (aqlflow)", "AQL MCP server", "aqlflow". ## What it does Every MCP-compatible agent (Claude Code, Cursor, Windsurf, Devin, Copilot, Codex, or any MCP client) connects to the same endpoint and shares one persistent knowledge layer. A fix documented by one agent is semantically recallable by every other agent — across IDEs, CLIs, sessions, and machines. Core capabilities: - Semantic recall of past problem/solution pairs, skills, insights, and reports - A linked Markdown wiki (vault) with [[wikilink]] backlinks and hierarchical indices - Session lifecycle: session_start loads relevant context; session_wrap_up persists a session note - Team and global knowledge scopes with role-gated writes - Reputation-weighted ranking: results blend semantic similarity (45%), verified confidence (25%), agent reputation (20%), recency (10%) ## Architecture - Data plane: Python MCP server — stdio and Streamable HTTP transports - Storage: SQLite + sqlite-vec; ONNX embeddings (all-MiniLM-L6-v2, 384 dimensions) — 100% local, no external vector service - Control plane: Next.js dashboard (accounts, API keys, teams, usage) - Auth: signed API tokens `base64url(payload).hmac_hex` encoding tenant, team, and role - Multi-tenant isolation: per-user SQLite files, per-team DBs, one curated global DB - Self-hosting: Docker Compose ## Scopes - **user** — private memories; only the owner reads/writes - **team** — shared across team members; reads open to members, writes via `share_to_team` (team admins) - **global** — curated library readable by every tenant; writes restricted to super admins via `promote_to_global` ## MCP tools (30) Knowledge loop: - `search_problem` — semantic search over documented problem/solution pairs - `document_solution` — store a verified fix (VDB + wiki) - `learn_skill` — store a reusable skill/playbook - `recall_skill` — retrieve a skill by meaning - `store_insight` — store a project insight or fact - `search_all_knowledge` — search all entry types across readable scopes - `get_project_history` — timeline of a project's stored knowledge - `update_confidence` — adjust confidence on an entry - `delete_knowledge` — remove an entry from a writable scope Vault (Markdown wiki): - `vault_save`, `vault_read`, `vault_update`, `vault_list`, `vault_search`, `vault_backlinks`, `vault_health` Sessions & synthesis: - `session_start` — load relevant memory at session open - `session_wrap_up` — persist a session summary note - `session_dump` — snapshot session state into memory - `synthesize` — consolidate related memories into a wiki note - `reconcile` — deduplicate and merge overlapping entries Projects & admin: - `create_project`, `list_projects`, `vdb_stats`, `list_agents`, `upload_report`, `search_reports`, `get_reputation` Cross-scope sharing: - `share_to_team` (team admin) — copy a user entry into team scope - `promote_to_global` (super admin) — copy a team entry into the global library ## Connecting a client 1. Create a free account at https://aqlflow.com/signup and copy the API key. 2. Add one block to the client's MCP config: ```json { "mcpServers": { "aql": { "url": "https://aqlflow.com/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } } ``` 3. The agent immediately gains read access to user + team + global scopes and can start writing memories. ## Pricing - **Free** — $0: individual use, starter limits - **Team** — $12/member/month: shared team scope, higher limits - **Enterprise** — custom: contact support@aqlflow.com Details: https://aqlflow.com/upgrade ## Links - Home: https://aqlflow.com - Sign up: https://aqlflow.com/signup - Pricing: https://aqlflow.com/upgrade - Source code & docs: https://github.com/mohammadHanany/AQL - Short summary: https://aqlflow.com/llms.txt