MnemoQ
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MnemoQlog learning about JWT token expiry handling"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MnemoQ
Local-first memory engine for AI agents — MCP-native, graph-linked, spaced repetition.
Agent ──log──▶ MnemoQ Engine ──store──▶ learnings.jsonl
Agent ◀──retrieve── MnemoQ Engine ◀──read── learnings.jsonl
Agent ──MCP──▶ mnemoq-mcp ──read/write──▶ learnings.jsonl
Install
pip install mnemoqCLI-only users (no Python project needed):
pipx install mnemoqRelated MCP server: GroundMemory
Quick Start
1. Scaffold a project
mnemoq-scaffold ./my-project --defaultsThis creates a memory/ directory with config.json and learnings.jsonl in your project.
Wire memory into your IDE/agent platform:
mnemoq-scaffold ./my-project --defaults --ide windsurf
mnemoq-scaffold ./my-project --defaults --ide windsurf,cursor,claude-code
mnemoq-scaffold ./my-project --defaults --ide all
mnemoq-scaffold --ide ?Supported platforms: opencode, windsurf, cursor, claude-code, copilot, all.
2. Log a learning
mnemoq --log '{"step":3,"source_agent":"claude","type":"pattern","domain":"backend","components":["api","auth"],"files_touched":["src/auth.py"],"trigger":"JWT validation failed on expired tokens","action":"Added explicit expiry check before signature verification","reason":"PyJWT silently accepts expired tokens when verify_exp is not set","importance":8,"severity":"major"}'PowerShell-safe alternative (avoids JSON quoting issues):
mnemoq --log-file learning.json3. Retrieve relevant learnings
mnemoq --step 3 --components api,auth --domain backend4. Other commands
mnemoq --stats # Memory statistics
mnemoq --resolve 2025-06-25T10:30:00 # Mark a learning resolved
mnemoq --review-agents --step 3 # AGENTS.md section health report
mnemoq --consolidate # Archive + promote (sleep cycle)
mnemoq --install-hooks # Install git post-commit auto-learn hookFor the full retrieve → work → log → evaluate → auto-learn loop and how to wire it into any IDE or agent, see the Integration Guide.
5. MCP server
MCP is the primary integration path for AI agents. The server runs over stdio (JSON-RPC 2.0) with no HTTP dependency.
mnemoq-mcp # auto-discovers memory/ in cwd
mnemoq-mcp --memory-dir /path/to/memory # explicit pathOr via environment variable: AGENT_MEMORY_DIR=/path/to/memory mnemoq-mcp
Tools exposed: retrieve_learnings, log_learning, resolve_learning, get_stats, consolidate
Works with Claude Desktop, Cursor, Windsurf, VS Code, and any MCP-compatible client. See the full MCP integration guide for client configuration snippets, tool reference, and troubleshooting.
CLI Reference
Command | Description |
| Log, retrieve, consolidate, and manage agent memories |
| Initialize a new project with memory directory and config |
| Update engine files in existing projects |
| Start MCP server (JSON-RPC over stdio) |
| Generate synthetic memory entries for testing |
See docs/cli-reference.md for all flags, examples, and mutual-exclusion rules.
Configuration
memory/config.json tunes retrieval scoring, retention, embeddings, reranking, and access control for your project. Below is a summary of all parameters — see the full Config Tuning Guide for ranges, defaults, and tuning recipes.
Parameter | Default | What it controls |
|
| Project identifier |
|
| Minimum engine version |
|
| Config schema version |
|
| Cap on step values ( |
|
| Accepted domain whitelist |
|
| Accepted agent whitelist |
|
| Agents that can retrieve but not log |
|
| Custom domain → canonical tag mappings |
|
| HTTP API auth key ( |
|
| sentence-transformers model name |
|
| Model file cache path |
|
| Reranker mode: |
|
| Number of top results to rerank |
|
| Cross-encoder model name |
|
| LLM endpoint URL for |
|
| LLM model name for |
|
| Exponential decay per step (recency) |
|
| Minimum score for non-critical candidates |
|
| Weight when task components match |
|
| Weight when task files match |
|
| Weight when domain matches |
|
| Weight when nothing matches |
|
| Max critical entries per retrieval |
|
| Max non-critical entries per retrieval |
|
| Step window for minor entries |
|
| Step window for major entries |
|
| Step age for escalation flagging |
|
| BM25 term frequency saturation |
|
| BM25 document length normalization |
|
| Reciprocal rank fusion constant |
|
| Blend weight: |
|
| Cosine similarity for duplicate detection |
|
| Days between consolidation triggers |
|
| Quarantine count that triggers consolidation |
Data Schema
Each entry in learnings.jsonl is a JSON object with these required fields:
Field | Type | Constraint |
|
| ≥ 1 |
|
| must be a valid agent name |
|
|
|
|
| e.g. |
|
| non-empty |
|
| non-empty |
|
| must start with |
|
| must contain |
|
| non-empty |
|
| 1–10 |
|
|
|
The engine auto-stamps ts, commit, access_count, reinforcement_count, embedding, schema_version, and provenance fields at log time. See docs/data-schema.md for the full reference including optional fields, enum values, schema versioning, and sample entries.
Development
git clone https://github.com/Mnemoq/MnemoQ.git
cd MnemoQ
pip install -e ".[dev]"
pytestStructure
src/mnemoq/— Engine source (CLI, retrieval, validation, consolidation, MCP server, dashboard, SDK)src/mnemoq/engine/— Core modules (retrieval, scoring, reranking, consolidation, validation, server)tests/— Test suitetemplates/— Config templates, prompts, eval datadocs/— Architecture documentation (index)scripts/— Deploy scripts
Changelog
See CHANGELOG.md.
Roadmap
See docs/ROADMAP.md for current status and planned features.
License
AGPL-3.0-or-later. See LICENSE for details.
Contributing
See CONTRIBUTING.md. Submitting a PR constitutes acceptance of the CLA.
Security
Report vulnerabilities privately via GitHub Security Advisories. See SECURITY.md for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/Mnemoq/MnemoQ'
If you have feedback or need assistance with the MCP directory API, please join our Discord server