Dense Mem
Storage backend for memory as a knowledge graph, enabling durable fact and claim storage with relationships.
Provides embedding generation and verifier calls via the OpenAI API for semantic memory operations.
Relational database backend for storing additional structured data alongside the graph.
Optional telemetry overlay for monitoring usage, performance, and recall quality metrics.
Optional in-memory cache to improve performance in single-node deployments.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Dense-Mem is a standalone HTTP MCP memory server using Streamable HTTP. AI clients choose what to remember; Dense-Mem stores exact Evidence, preserves its sources and lifecycle, and retrieves authorized memory across conversations.
PostgreSQL with pgvector is the durable authority. Redis is coordination only: a single-node deployment can use process memory; a multi-instance deployment requires Redis or equivalent distributed coordination.
Try the demo
Open the hosted demo to create a temporary, isolated team and try disposable memory before self-hosting.
Related MCP server: Strata
Why Dense-Mem
Keep the source. Exact Evidence retains occurrences, source revisions, provenance, and an append-only lifecycle.
Control access. Private and team-shared memory have explicit destinations; shared visibility does not grant permission to change another owner's Evidence.
Follow the history. Recall returns eligible Evidence; Trace explains its provenance, and corrections or retractions preserve lineage.
Organize without inventing facts. Derived topics help discovery while Evidence remains canonical memory.
See Using Dense-Mem for the memory workflow and Architecture for the system design.
Quickstart
Install Docker with Compose. This fresh-install example pins the image and configuration files to the same published release:
mkdir dense-mem-local
cd dense-mem-local
export DENSE_MEM_VERSION=v2.8.0
export DENSE_MEM_IMAGE="ghcr.io/markhuangai/dense-mem:${DENSE_MEM_VERSION}"
curl -fsSLo docker-compose.yml \
"https://raw.githubusercontent.com/markhuangai/dense-mem/${DENSE_MEM_VERSION}/examples/docker-compose.base.yml"
curl -fsSLo .env.example \
"https://raw.githubusercontent.com/markhuangai/dense-mem/${DENSE_MEM_VERSION}/examples/.env.example"
cp .env.example .env
${EDITOR:-vi} .envSet these values in .env:
Setting | Purpose |
| Password for the local PostgreSQL instance |
| Private control-portal access token |
| Model-provider credential |
| Chat model used to assess Evidence |
The example supplies OpenAI embedding defaults. For other providers, change the endpoint, model, and dimensions together; see Configuration.
docker compose up -d
docker compose ps
curl -fsS http://127.0.0.1:8080/readyStartup applies migrations before readiness. Keep the image pin for later starts; consult the Operations Runbook before changing an existing database.
Connect your AI client
Open the private control portal at
http://127.0.0.1:8090/withCONTROL_PORTAL_TOKEN. Create a team, then create its first credential.Open the user portal at
http://127.0.0.1:8080/ui. Its Connect page shows the MCP connection details. The local MCP endpoint ishttp://127.0.0.1:8080/mcp.Configure your host using the MCP client guide, then try a Remember, Recall, and Trace workflow.
The control listener stays private. Configured hosted model providers can
receive Evidence and queries; use self-hosted providers when that traffic must
stay within your infrastructure. External memory automation uses /mcp.
Documentation
Goal | Guide |
Learn how memory works | |
Configure and operate a server | |
Choose deployment examples | |
Integrate a client | |
Develop and test | Scripts · Evaluation · ADRs |
The documentation site holds interactive walkthroughs and detailed reference.
Directory READMEs cover the files they accompany. For documented behavior
changes, link a companion gh-pages PR or explain why the site needs no update.
Dense-Mem is part of the research preprint Governed Enterprise AI Memory Beyond RAG: From Vector Retrieval to Permissioned Knowledge Graphs.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Persistent memory for AI agents. Semantic search, memory graph, W3C DID identity.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
An MCP memory server. One memory your agents share — across models, devices and apps.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceSelf-hosted, governed long-term memory and knowledge-graph server for AI agents with access control, hybrid retrieval, and typed graph linking.AGPL 3.0
- FlicenseNot gradedqualityDmaintenanceSelf-hosted AI memory server that provides persistent memory for MCP-compatible AI agents with semantic search, file vault, and per-agent API keys.6-
- AlicenseNot gradedqualityCmaintenanceSelf-hosted, local-first knowledge graph and memory server for AI agents. Enables agents to persist, recall, and organize knowledge through MCP with automatic distillation, deduplication, and cross-linking.MIT
- AlicenseNot gradedqualityBmaintenanceProvides a self-hosted shared memory service that lets AI agents capture and recall durable facts, decisions, and context across multiple tools and MCP-capable clients.3MIT