
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP server that provides AI coding agents with persistent, graph-connected memory across projects, storing decisions, learnings, and session progress in a local SQLite knowledge base.
Hive Memory is cataloged as an MCP server attributed to moonx010. An MCP server that provides AI coding agents with persistent, graph-connected memory across projects, storing decisions, learnings, and session progress in a local SQLite knowledge base. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Hive Memory are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Memories are connected through directed, weighted synapses inspired by neuroscience, with axon types such as temporal, causal, semantic, refinement, conflict, dependency, and derived.
No cloud, accounts, or embeddings are required; everything stays on the local machine.
Yes, it can run in HTTP mode for shared team access with per-user API keys and rate limiting.
README.md · 4bbf36c037ff · Fetched 2026-11-13 14:08:58 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
██╗ ██╗██╗██╗ ██╗███████╗
██║ ██║██║██║ ██║██╔════╝
███████║██║██║ ██║█████╗
██╔══██║██║╚██╗ ██╔╝██╔══╝
██║ ██║██║ ╚████╔╝ ███████╗
╚═╝ ╚═╝╚═╝ ╚═══╝ ╚══════╝
███╗ ███╗███████╗███╗ ███╗ ██████╗ ██████╗ ██╗ ██╗
████╗ ████║██╔════╝████╗ ████║██╔═══██╗██╔══██╗╚██╗ ██╔╝
██╔████╔██║█████╗ ██╔████╔██║██║ ██║██████╔╝ ╚████╔╝
██║╚██╔╝██║██╔══╝ ██║╚██╔╝██║██║ ██║██╔══██╗ ╚██╔╝
██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║╚██████╔╝██║ ██║ ██║
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
Cross-project memory layer for AI coding agents — with graph memory
Hive Memory is an MCP server that gives AI coding agents persistent, graph-connected memory across projects. It stores decisions, learnings, and session progress in a local knowledge base with brain-inspired synaptic connections — so your agent can discover related context through topology-based traversal, not just keyword search.
schema_meta tablehive-memory backup [--output path] for database snapshots┌──────────────────────────────────────────────────────────┐
│ Hive Memory (cortex) │
│ │
│ ┌────────────┐ ┌──────────────┐ ┌─────────────────┐ │
│ │ MCP Server │ │ HTTP Server │ │ CLI Interface │ │
│ │ (stdio) │ │ (port 3179) │ │ (hive-memory) │ │
│ └─────┬──────┘ └──────┬───────┘ └────────┬────────┘ │
│ └────────────────┼────────────────────┘ │
│ │ │
│ ┌──────────────────────▼────────────────────────────┐ │
│ │ CortexStore │ │
│ │ ┌────────────┐ ┌──────────┐ ┌──────────────┐ │ │
│ │ │HiveDatabase│ │ Synapse │ │ Enrichment │ │ │
│ │ │ (SQLite) │ │ Graph │ │ Engine │ │ │
│ │ └─────┬──────┘ └──────────┘ └──────────────┘ │ │
│ │ │ │ │
│ │ ┌─────▼──────────────────────────────────────┐ │ │
│ │ │ SQLite Database (cortex.db) │ │ │
│ │ │ entities · synapses · sessions · projects │ │ │
│ │ │ connectors · users · labels · schema_meta │ │ │
│ │ └─────────────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────┘
▲ ▲ ▲
┌─────┴─────┐ ┌─────┴─────┐ ┌───┴──────┐
│ GitHub │ │ Slack │ │ Notion │
│ Connector │ │ Connector │ │ Connector│
└───────────┘ └───────────┘ └──────────┘
npm install -g hive-memory
Add to ~/.claude/settings.json:
{
"mcpServers": {
"hive-memory": {
"command": "hive-memory"
}
},
"permissions": {
"allow": [
"mcp__hive-memory__*"
]
}
}
The
permissions.allowentry auto-approves all Hive Memory tools so Claude won't prompt for permission every session.
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"hive-memory": {
"command": "hive-memory"
}
}
}
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"hive-memory": {
"command": "hive-memory"
}
}
}
CORTEX_HTTP=true CORTEX_AUTH_TOKEN=secret hive-memory --http
Or with Docker:
docker compose up
Hive Memory works best when your AI agent knows when to call the tools. Copy the provided instruction templates into your agent's instruction file:
| Agent | Instruction file | Template |
|---|---|---|
| Claude Code | ~/.claude/CLAUDE.md | claude-md-template.md |
| Codex | ~/AGENTS.md or ./AGENTS.md | codex-md-template.md |
See the full setup guide for step-by-step instructions.
| Tool | Description |
|---|---|
project_register | Register or update a project (upsert) |
project_search | Search projects by name/tags, or list all (empty query) |
project_status | Get project context (full mode includes cross-project insights) |
project_onboard | Auto-discover projects in a directory + scan for agent memory files |
| Tool | Description |
|---|---|
memory_store | Store a decision, learning, or note. Auto-creates synapses to related memories |
memory_recall | Search using keyword matching + graph traversal (spreading activation) |
memory_link | Form an explicit synapse between two memory entries |
memory_traverse | Deep graph traversal — find memories connected through synaptic pathways |
memory_connections | View the synaptic connections of a specific memory entry |
| Tool | Description |
|---|---|
session_save | Save session progress — what was done, what's next |
| Tool | Description |
|---|---|
memory_ls | List entities with filters (project, type, status, domain) |
memory_tree | Tree view of entities grouped by project and type |
memory_grep | Regex/substring search across entity content |
memory_inspect | Detailed view of a specific entity including synapses |
memory_timeline | Chronological view of entities in a time range |
| Tool | Description |
|---|---|
memory_trail | View the access trail of recently used memories |
memory_who | See which agents have contributed to a project |
memory_decay | Apply synapse weight decay and prune weak connections |
| Tool | Description |
|---|---|
connector_sync | Trigger a connector sync (GitHub, Slack, Notion, Calendar) |
connector_status | View sync status and entry counts for all connectors |
| Tool | Description |
|---|---|
team_init | Initialize a Git-based shared team cortex |
team_push | Push local entries to the team cortex |
team_pull | Pull team entries into local database |
team_status | View pending push/pull and conflict count |
| Tool | Description |
|---|---|
context_enrich | Run enrichment on an entity (classification, topics, decisions) |
entity_resolve | Find and deduplicate person entities across sources |
| Tool | Description |
|---|---|
meeting_process | Process a meeting transcript into structured notes and decisions |
meeting_briefing | Generate a meeting briefing from recent meetings |
| Tool | Description |
|---|---|
memory_audit | Run data quality audit on stored memories |
memory_briefing | Generate daily or weekly memory briefing |
| Tool | Description |
|---|---|
workflow_analyze | Analyze workflow patterns and generate insights |
| Tool | Description |
|---|---|
user_manage | Manage users — add, list, revoke, rotate API keys |
memory_audit_log | Retrieve recent MCP tool call audit log (admin only) |
| Connector | Env Variable | What it syncs |
|---|---|---|
| GitHub | GITHUB_TOKEN | PRs, Issues, ADRs, CODEOWNERS |
| Slack | SLACK_TOKEN | Signal-filtered messages, threads |
| Notion | NOTION_TOKEN | Pages, databases, block content |
| Google Calendar | GOOGLE_CALENDAR_CREDENTIALS | Events, attendees (OAuth2/service account) |
| Outlook | OUTLOOK_TOKEN | Calendar events |
┌──────────┐ ┌──────────┐ ┌──────────┐
│ Claude │ │ Cursor │ │ Codex │
│ Code │ │ │ │ │
│ (Proj A) │ │ (Proj B) │ │ (Proj C) │
└────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │
└────────────────┼────────────────┘
│ MCP (stdio)
┌─────────────┐
│ Hive Memory │
│ MCP Server │
└──────┬──────┘
│
┌────────────────┼────────────────┐
▼ ▼ ▼
┌─────────┐ ┌───────────┐ ┌───────────┐
│ Hive │ │ Synapse │ │ Spreading │
│ Cell │ │ Graph │ │ Activation│
│ Tree │ │ (LTP/LTD) │ │ │
└─────────┘ └───────────┘ └───────────┘
No cloud. No accounts. No embeddings required. Everything stays on your machine.
Every memory can be connected to other memories through synapses — directed, weighted edges inspired by neuroscience:
"Use JWT for auth" ──[causal:0.8]──→ "Add token refresh logic"
│ │
│──[semantic:0.5]──→ "OAuth2 decision" │
│
"Rate limit API" ←──[dependency:0.6]───────────┘
Axon Types:
| Type | Meaning | Example |
|---|---|---|
temporal | A occurred before B | Decision A was made before Decision B |
causal | A caused/led to B | "Use PostgreSQL" → "Add pgvector extension" |
semantic | Topically related | Both about authentication |
refinement | B refines/updates A | "Use JWT" → "Use JWT with 15min expiry" |
conflict | A contradicts B | "Use SQL" vs "Use NoSQL" |
dependency | B depends on A | Feature B requires Feature A |
derived | B was derived from A | Learning extracted from a decision |
When you search with memory_recall or memory_traverse, the system propagates signal through the synapse graph:
Query: "auth token handling"
│
▼ keyword match
Seed: "Use JWT for auth" (activation: 1.0)
│
├─[causal:0.8]──→ "Add token refresh" (activation: 0.4)
│ │
│ ├─[dependency:0.6]──→ "Rate limit API" (activation: 0.12)
│
└─[semantic:0.5]──→ "OAuth2 decision" (activation: 0.25)
"Neurons that fire together, wire together":
Deploy as an HTTP server for shared team access:
# Create an admin user
hive-memory user create admin-name
# Start HTTP server
CORTEX_HTTP=true CORTEX_AUTH_TOKEN=<token> hive-memory
# Or use Docker
docker compose up
hive-memory user rotate <user-id>
The new key is active immediately. The graceUntil timestamp is stored for audit purposes.
The HTTP server enforces a limit of 100 requests per minute per user (in-memory, per instance).
Hive Memory can automatically save sessions when Claude Code exits. Add to ~/.claude/settings.json:
{
"hooks": {
"SessionEnd": [{
"matcher": "",
"hooks": [{
"type": "command",
"command": "hive-memory hook session-end"
}]
}]
}
}
This parses the Claude Code transcript and auto-saves a session summary. It skips if session_save was already called during the session.
# Create a backup
hive-memory backup
# Specify output path
hive-memory backup --output /path/to/backup.db
| Variable | Default | Description |
|---|---|---|
CORTEX_DATA_DIR | ~/.cortex | Data storage directory |
CORTEX_LOCAL_SYNC | true | Set to "false" to disable writing .cortex.md into project directories |
CORTEX_LOCAL_FILENAME | .cortex.md | Custom filename for local context files |
CORTEX_HTTP | false | Set to "true" to enable HTTP server mode |
CORTEX_AUTH_TOKEN | — | Admin API token for HTTP mode |
PORT / CORTEX_PORT | 3179 | HTTP server port |
CORTEX_SYNC_INTERVAL_MIN | 30 | Connector auto-sync interval in minutes |
Example with custom config:
{
"mcpServers": {
"hive-memory": {
"command": "hive-memory",
"env": {
"CORTEX_DATA_DIR": "/custom/path",
"CORTEX_LOCAL_SYNC": "false"
}
}
}
}
Hive Memory writes a .cortex.md file in each registered project directory. This file contains a snapshot of the project's current context — summary, recent session, next tasks, and cross-project insights. It's auto-generated and should be added to .gitignore.
To disable this feature, set CORTEX_LOCAL_SYNC=false.
Hive Memory v3 automatically migrates existing data:
knowledge/ files are migrated to hive direct entries on first startup, then renamed to knowledge.bak/index.json, summary.json, sessions) are unchangedvectors.json, embedding model cache) is no longer used and can be safely deleted@huggingface/transformers dependency has been removed — no more model downloadsschema_meta tableNo manual action needed — just update and restart.
npm install # Install dependencies
npm run build # Build TypeScript
npm run dev # Dev mode with auto-reload
npm run lint # Lint with ESLint
npm run typecheck # Type check
npm test # Run tests
npm run test:coverage # Run tests with coverage report
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Hive Memory from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/hive-memory)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.