
The open-source persistent cognitive memory layer for AI coding agents. Stop your Cursor, Claude &
The open-source persistent cognitive memory layer for AI coding agents. Stop your Cursor, Claude & Copilot from having amnesia.
·
Self-hosted persistent cognitive memory layer for AI coding agents.
Persists architecture decisions, schemas, and constraints across sessions via the Model Context Protocol (MCP).
| The Problem | Architecture | Dual-Engine | Memory Lifecycle | Quickstart | Python SDK | MCP Setup | Agent Rules | API Reference |
Modern AI coding agents (Cursor, Claude Code, Antigravity, VS Code) excel at isolated code generation. However, in continuous engineering workflows, developers encounter a structural limitation: Session Amnesia.
Current workarounds fall into three deeply flawed patterns:
┌─────────────────────────────────────────────────────────┐
│ WHY STANDARD APPROACHES BREAK DOWN │
└─────────────────────────────────────────────────────────┘
1. Context Windows (RAM) 2. Static Rules Files 3. Standard Vector RAG
┌─────────────────────────┐ ┌─────────────────────────┐ ┌─────────────────────────┐
│ • Ephemeral volatile │ │ • Linear token tax │ │ • Matches text phrasing,│
│ memory (clears on │ │ (2,500 tokens burned │ │ NOT system topology │
│ every new thread) │ │ on every trivial fix) │ │ • Blind to directed │
│ • Lost-in-the-middle │ │ • Stale rules accumu- │ │ call graphs & schema │
│ degradation on 50k+ │ │ late & conflict │ │ dependencies │
│ token prompts │ │ • Zero cross-tool sync │ │ • Hallucinates blast │
│ • High latency & cost │ │ (Cursor ≠ Claude CLI) │ │ radii of refactors │
└─────────────────────────┘ └─────────────────────────┘ └─────────────────────────┘.cursorrules, AGENTS.md) forces the model to re-read thousands of lines on every keystroke, leading to contradictory instructions and cross-editor fragmentation.Friday runs as a self-hosted background service providing a structured, four-tier memory substrate accessed via the Model Context Protocol (MCP):
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ AI CODING CLIENTS (Cursor / Claude Code / Antigravity / VS Code) │
└───────────────────────────────────────────┬────────────────────────────────────────────┘
│
7 MCP Tools (stdio / HTTP)
├── add_memory (persist decisions & rationale)
├── add_fact (versioned immutable truths)
├── memory_search (targeted semantic recall)
├── get_context (compiled multi-layer prompt)
├── get_blast_radius (graph dependency traversal)
├── delete_memory (evict obsolete episodic memories)
└── revoke_fact (prune conflicting/invalid truths)
│
▼
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ FRIDAY COGNITIVE ENGINE │
│ │
│ Layer 1: Facts Ledger Layer 2: Episodic Memory Layer 3: Graph Topology │
│ ┌─────────────────────────┐ ┌───────────────────────────┐ ┌──────────────────────┐ │
│ │ Versioned Facts Ledger │ │ Mem0 Conversational │ │ Neo4j Property Graph │ │
│ │ • Deterministic truths │ │ • Semantic decisions │ │ • Directed call-trees│ │
│ │ • Conflict detection │ │ • User preferences │ │ • Schema blast-radius│ │
│ │ • Zero prompt overhead │ │ • Sub-100ms retrieval │ │ • Entity dependencies│ │
│ └─────────────────────────┘ └───────────────────────────┘ └──────────────────────┘ │
│ │
│ Layer 4: Cognitive Dynamics Engine │
│ • Synaptic Energy Decay: E(t) = E₀ · 2^(-Δt / 14d) automatically evicts stale clutter│
│ • Nightly Dream Cycle (03:00 UTC): Prunes noise, crystallizes graph insights & backups│
│ • Empathy State Tracking: Adapts agent brevity and tone to developer urgency & mood │
│ • Neural Studio: WebGL-based 3D graph visualizer for human and agent state auditing. │
│ • Persona Synchronization: /export/persona compiles canonical rules on-demand. │
└────────────────────────────────────────────────────────────────────────────────────────┘| Layer | Technology | Primary Role | Retrieval Speed | Why It Matters |
|---|---|---|---|---|
| Layer 1: Facts Ledger | S3-Style Versioned JSON / SQLite | Immutable ground-truths (ports, endpoints, schemas, business invariants). | < 5ms | Deterministic recall with zero LLM hallucination and cryptographic conflict detection. |
| Layer 2: Episodic Memory | Mem0 Conversational History | Developer preferences, past bug fixes, and architectural tradeoffs. | < 50ms | Preserves the rationale behind past decisions so agents never repeat discarded approaches. |
| Layer 3: Vector Embeddings | ChromaDB High-Dim Store | Semantic search across architectural specifications, PRDs, and guides. | < 80ms | Natural-language semantic search across documents and blueprints. |
| Layer 4: Relational Graph | Neo4j 5.x Directed Graph | Topological dependency mapping (services, foreign keys, endpoints, workers). | < 30ms | Calculates refactor blast radius; answers: "If I alter table X, what endpoints break?" |
| Capability | Static Prompts (.cursorrules) | Traditional Vector RAG | Friday Cognitive Substrate |
|---|---|---|---|
| Cross-Session Persistence | None (resets with thread) | Text chunks only | Full architectural state & decisions |
| Dependency Graph Traversal | None | Lexical similarity only | Neo4j Directed Property Graph |
| Token Efficiency | Burns 2,000–5,000 tokens/turn | Unfiltered chunk dumps | Targeted queries (~280 tokens/turn) |
| Toolchain Synchronization | Isolated per editor config | Disconnected silos | Unified MCP across Cursor, Claude, CLI |
| Conflict Resolution | Manual file editing required | Ingests conflicting chunks | Versioned Fact Ledger with status flags |
| Memory Life-Cycle | Static forever (bloats) | Flat chunk retention | Synaptic Decay + Nightly Dream Consolidation |
| Topology Auditing | None | None | Neural Studio 3D interactive viewer |
| Deployment Model | Local flat files | Cloud SaaS vendor lock-in | 100% Self-Hosted Docker Compose |
A foundational architectural decision in Friday is:
"Why does Friday maintain a background worker LLM (such as Groq, DeepSeek, or local Ollama) on the server, completely separate from the frontier model running in Cursor, Claude Code, or Antigravity?"
Interactive coding agents require low latency, while knowledge graph maintenance requires continuous data extraction and synthesis. Friday enforces a Dual-Engine Architecture that cleanly decouples frontline developer workflows from background data pipelines:
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ THE DUAL-ENGINE ARCHITECTURE MODEL │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ │
│ INTERACTIVE AGENT (Frontline Client) BACKGROUND WORKER (Async Engine) │
│ ┌─────────────────────────────────────┐ ┌─────────────────────────────────────┐ │
│ │ Client: Cursor / Claude / Antigravity│ │ Engine: Self-Hosted Friday Server │ │
│ │ Model: Frontier (Claude 3.5 / GPT-4o)│ │ Model: Fast Worker (Groq / Ollama) │ │
│ │ Role: Complex code generation │ │ Role: Async graph extraction │ │
│ │ Context: Lean, task-specific prompt │ │ Role: Conflict pruning & decay │ │
│ │ State: Ephemeral session lifetime │ │ State: 24/7 background persistent │ │
│ └──────────────────┬──────────────────┘ └──────────────────▲──────────────────┘ │
│ │ │ │
│ │ 1. MCP Tools (memory_search, add_memory) │ 2. Microsecond │
│ ▼ │ Async Parsing │
│ ┌──────────────────────────────────────────────────────────────┴──────────────────┐ │
│ │ FRIDAY PERSISTENT MEMORY ARCHITECTURE │ │
│ │ │ │
│ │ Layer 1: Facts Ledger (Deterministic S3-style Hash Table) │ │
│ │ Layer 2: Episodic Memory (Mem0 Conversational Thread History) │ │
│ │ Layer 3: Vector Embeddings (ChromaDB Semantic Chunks) │ │
│ │ Layer 4: Property Knowledge Graph (Neo4j Directed Topology) │ │
│ │ Memory Lifecycle: Dynamic Decay (E(t)) & Nightly Dream Cycle (03:00 UTC) │ │
│ └─────────────────────────────────────────────────────────────────────────────────┘ │
└────────────────────────────────────────────────────────────────────────────────────────┘When you type in Cursor or Claude Code and an agent records a major decision via add_memory, the Conscious model cannot pause for 4–6 seconds while an LLM parses semantic entities, identifies foreign keys, and runs Cypher mutations.
Frontier reasoning models (Claude 3.5 Sonnet, GPT-4o) cost $3.00 to $15.00 per million tokens. Using these expensive models for routine structural maintenance—such as extracting triples (Entity A $\longrightarrow$ RELATION $\longrightarrow$ Entity B), verifying fact hashes, or applying synaptic decay—wastes massive token budgets.
Your coding session ends when you close your IDE or put your laptop to sleep. But memory evolution cannot stop when the laptop closes:
Dumping a monolithic 500-node graph or 100 historical decisions directly into your editor's prompt causes Instruction Dilution: the LLM becomes confused, forgets recent constraints, and hallucinates outdated patterns.
Friday implements active memory lifecycle management to ensure AI agents retain critical constraints without context bloat or stale instruction interference:
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ FRIDAY MEMORY LIFECYCLE ENGINE │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ │
│ 🔥 Dynamic Memory Heat & Decay 🌙 The Dream Cycle (Nightly 03:00 UTC) │
│ ┌───────────────────────────────────┐ ┌────────────────────────────────────────┐ │
│ │ Exponential Synaptic Decay │ │ 1. Synaptic Pruning (Evaporates noise) │ │
│ │ • E(t) = E₀ · 2^(-Δt / T_half) │───>│ 2. Episodic Synthesis (Distills gems) │ │
│ │ • Recall Potentiation (+0.25) │ │ 3. Neo4j Crystallization (Graph edges) │ │
│ │ • Soft Archive if E < 0.25 │ │ 4. Autonomous Backup to Git │ │
│ └───────────────────────────────────┘ └────────────────────────────────────────┘ │
│ │
│ 🤍 Adaptive Context & Persona Calibration │
│ ┌──────────────────────────────────────────────────────────────────────────────────┐ │
│ │ Multi-Dimensional Response Calibration │ │
│ │ • Interaction Modes: tactical_sprint | deep_architecture | casual_brainstorm │ │
│ │ • Task Context & Urgency Detection (0.0 to 1.0) │ │
│ │ • Dynamic Response Calibration: Brevity (high/med/low) & Tone Tuning │ │
│ └──────────────────────────────────────────────────────────────────────────────────┘ │
└────────────────────────────────────────────────────────────────────────────────────────┘Memories and verified facts are not static text—they have energy. Active, frequently recalled directives remain bright ($E > 1.0$). Irrelevant or outdated details experience exponential half-life decay ($T_{half} = 14\text{ days}$):
$$E(t) = E_0 \times 2^{-\frac{\Delta t}{T_{half}}}$$
When a memory is queried during coding, it receives a recall potentiation boost ($+0.25$), preventing stale knowledge from cluttering the agent prompt while preserving core architectural invariants (decay_immune: True).
Every night at 03:00 UTC (or on-demand via client.run_dream_cycle()), Friday enters the Dream Cycle:
CRYSTALLIZED_INTO edges.Friday monitors the developer interaction context (urgent bug-fix sprint, late-night architecture exploration, or casual brainstorming). The engine dynamically adjusts agent response characteristics:
high (zero fluff, code-first) vs. detailed (system-wide breakdown).technical_concise (code-first, direct) vs. architectural_detailed (system-wide breakdown)./export/persona so all agents naturally calibrate their output.We evaluated five realistic engineering scenarios using the DeepEval evaluation framework:
| Memory Architecture | Contextual Precision | Contextual Recall | Faithfulness | Prompt Tokens / Turn | Session Retention |
|---|---|---|---|---|---|
Static Prompts (.cursorrules) | 38.0% | 44.0% | 62.0% | 3,150 tokens | 15.0% (resets) |
| Naive Vector RAG (Vector Only) | 64.0% | 58.0% | 74.0% | 1,820 tokens | 55.0% |
| Friday Cognitive Substrate | 95.0% | 93.0% | 99.0% | 280 tokens | 100.0% |
python benchmarks/benchmark_deepeval.pyRun the self-contained installation script:
curl -fsSL https://raw.githubusercontent.com/friday-memory/friday/main/install.sh | bashThe script verifies Docker availability, allocates required ports (8000, 7474, 7687), generates secure random API secrets, writes a validated .env, and launches Friday via Docker Compose.
Clone the Repository:
git clone https://github.com/friday-memory/friday.git
cd fridayConfigure Environment (.env):
cp .env.example .env# Master API key for endpoint security
BRAIN_API_KEY=choose_a_strong_secret_key
# Fast Subconscious LLM provider (Groq or DeepSeek)
DEEPSEEK_API_KEY=your_key_here
DEEPSEEK_BASE_URL=https://api.deepseek.com
DEEPSEEK_MODEL=deepseek-chat
# Mem0 key for vector memory (optional)
MEM0_API_KEY=your_mem0_key_here
# Neo4j database credentials
NEO4J_URI=bolt://neo4j:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=choose_a_strong_passwordStart the Stack:
make up
# or: docker compose up -dVerify Health:
curl http://localhost:8000/health{
"status": "healthy",
"service": "friday-cognitive-substrate",
"version": "1.4.4",
"layers": {
"L1_core": "healthy",
"L2_mem0": "healthy",
"L3_chromadb": "healthy",
"L4_neo4j": "healthy"
}
}friday-memory)The official Python client for Friday is available on PyPI as friday-memory. Connect your agentic workflows, LangChain pipelines, or autonomous scripts directly to Friday with zero boilerplate:
pip install --upgrade friday-memoryfrom friday import Friday
# Automatically resolves FRIDAY_URL and FRIDAY_API_KEY from environment
with Friday(api_key="your_secret_key", base_url="http://localhost:8000") as client:
# 1. Health check
status = client.health()
print("Friday Status:", status["status"])
# 2. Store architectural decision
client.add_memory(
"PostgreSQL 16 selected with pgvector for hybrid retrieval",
project="backend-api",
)
# 3. Commit scoped ground-truth fact with auto-conflict resolution
client.add_fact("Production database endpoint is db.internal.net:5432", project="backend-api")
# 4. Query multi-hop dependency blast radius before refactoring
blast = client.get_blast_radius(entity="OrdersTable", depth=2, project="backend-api")
print(
f"Impacted components ({blast['total_impacted']}):",
[n["name"] for n in blast["impacted_nodes"]],
)
# 5. Multi-layer search (L2 Facts + L3 ChromaDB + L4 Knowledge Graph)
context = client.search("database connection configuration", project="backend-api")
print(context["results"])
# 5. Cognitive State & Dynamic Response Calibration
state = client.get_cognitive_state()
print("Active Mode:", state["current_mode"]) # tactical_sprint, deep_architecture, etc.
# 6. Trigger Nightly Dream Cycle Consolidation (Consolidates & Prunes)
dream_report = client.run_dream_cycle(half_life_days=14.0)
print("Crystallized Insights:", dream_report["crystallized_insights"])
# 7. Apply Synaptic Decay
decay_report = client.apply_decay(half_life_days=14.0)
print("Active Facts Remaining:", decay_report["active_facts_count"])import asyncio
from friday import AsyncFriday
async def main():
async with AsyncFriday(api_key="your_secret_key") as client:
# Commit context concurrently
await client.add_memory("Redis cluster deployed for token bucket rate limiting")
facts = await client.get_facts(min_energy=0.5)
print(f"Verified high-energy facts: {len(facts)}")
asyncio.run(main())FridayRetriever)pip install "friday-memory[langchain]"from friday.integrations.langchain import FridayRetriever
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnablePassthrough
from langchain_openai import ChatOpenAI
retriever = FridayRetriever(
api_key="your_secret_key",
base_url="http://localhost:8000",
project="reeldm",
)
# Connect directly to LCEL chains
prompt = ChatPromptTemplate.from_template(
"Answer using verified system memory:\n{context}\n\nQuestion: {question}"
)
chain = {"context": retriever, "question": RunnablePassthrough()} | prompt | ChatOpenAI()Friday provides an official Model Context Protocol (MCP) server over stdio or HTTP, enabling real-time context retrieval for all supported IDEs.
┌───────────────────────┐
│ Cursor (Desktop) │──┐
└───────────────────────┘ │
┌───────────────────────┐ │
│ Claude Code CLI │──┼── MCP Protocol (stdio transport)
└───────────────────────┘ │ FRIDAY_URL="http://127.0.0.1:8000"
┌───────────────────────┐ │ BRAIN_API_KEY="your_secret_key"
│ Antigravity IDE │──┤
└───────────────────────┘ │
┌───────────────────────┐ │
│ Windsurf / VS Code │──┤
└───────────────────────┘ │
┌───────────────────────┐ │
│ Codex CLI │──┘
└───────────────────────┘
▼
┌──────────────────────────────┐
│ FRIDAY CENTRAL BRAIN │
│ (Localhost or Remote VM) │
│ FastAPI + Mem0 + Neo4j │
└──────────────────────────────┘Add to .cursor/mcp.json in your project or globally in Cursor Settings → MCP:
Local Docker Setup:
{
"mcpServers": {
"friday": {
"command": "python",
"args": ["-m", "mcp.server"],
"cwd": "/path/to/friday",
"env": {
"FRIDAY_URL": "http://localhost:8000",
"BRAIN_API_KEY": "your_secret_key"
}
}
}
}Remote Cloud VM Setup (via SSH Tunnel):
{
"mcpServers": {
"friday": {
"command": "ssh",
"args": [
"-i", "/path/to/ssh_key.pem",
"-o", "StrictHostKeyChecking=no",
"ubuntu@YOUR_SERVER_IP",
"docker exec -i fridays-brain-app python /app/mcp_server/server.py"
]
}
}
}Register Friday directly via CLI:
claude mcp add friday \
-e FRIDAY_URL="http://localhost:8000" \
-e BRAIN_API_KEY="your_secret_key" \
-- python -m mcp.serverAdd to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"friday": {
"command": "python",
"args": ["-m", "mcp.server"],
"cwd": "/path/to/friday",
"env": {
"FRIDAY_URL": "http://localhost:8000",
"BRAIN_API_KEY": "your_secret_key"
}
}
}
}Add to ~/.codex/config.toml:
[mcp.servers.friday]
command = "python"
args = ["-m", "mcp.server"]
cwd = "/path/to/friday"
[mcp.servers.friday.env]
FRIDAY_URL = "http://localhost:8000"
BRAIN_API_KEY = "your_secret_key"Add to your VS Code MCP configuration:
{
"cline.mcpServers": {
"friday": {
"command": "python",
"args": ["-m", "mcp.server"],
"cwd": "/path/to/friday",
"env": {
"FRIDAY_URL": "http://localhost:8000",
"BRAIN_API_KEY": "your_secret_key"
}
}
}
}Connected agents automatically access four core MCP primitives:
| Primitive | Purpose | Trigger Phase |
|---|---|---|
get_context | Ingests active verified facts and recent context filtered by project namespace. | Session initialization. |
memory_search | Queries vector and graph indices for architectural decisions and system dependencies. | Prior to answering technical questions or planning refactors. |
get_blast_radius | Computes multi-hop transitive dependency blast radius for a service or entity. | Prior to refactoring schemas or modifying critical APIs. |
add_memory | Records implementation details, rationale, and tradeoffs; triggers background graph extraction. | Post-implementation or bug resolution. |
add_fact | Commits versioned ground truths with automatic key conflict resolution and project isolation. | Architectural declarations or configuration changes. |
delete_memory | Evicts obsolete or invalid episodic memory entries by ID. | Memory hygiene and state cleanup. |
revoke_fact | Revokes and supersedes conflicting, obsolete, or invalid ground truths. | Architectural migrations or rule deprecations. |
| Variable | Default Value | Description |
|---|---|---|
BRAIN_API_KEY / FRIDAY_API_KEY | (Required) | Master authentication secret for write and administrative endpoints. |
FACTS_PATH | /app/facts/facts.json | Local filesystem path to the versioned JSON facts ledger. |
NEO4J_URI | bolt://neo4j:7687 | Bolt connection URI for the Layer 4 Neo4j instance. |
NEO4J_USER | neo4j | Neo4j database username. |
NEO4J_PASSWORD | (Required) | Neo4j database password. |
DEEPSEEK_API_KEY / GROQ_API_KEY | "" | API key for the Subconscious background LLM parser. |
DEEPSEEK_BASE_URL | https://api.deepseek.com | Base URL for the OpenAI-compatible Subconscious provider. |
DEEPSEEK_MODEL | deepseek-chat | Model name for automated graph extraction and conflict detection. |
MEM0_API_KEY | "" | Optional API key for Mem0 managed episodic memory layer. |
COGNITIVE_STATE_PATH | /app/core/cognitive_state.json | Path to persistent developer cognitive and emotional calibration state. |
/export/persona)Friday can compile stored facts and architectural constraints into synchronized markdown directives on-demand, preventing rules drift across teams:
# Export canonical AGENTS.md
curl -s "http://localhost:8000/export/persona?target=agents" \
-H "X-Brain-Key: your_key" > AGENTS.md
# Export Cursor .cursorrules
curl -s "http://localhost:8000/export/persona?target=cursor" \
-H "X-Brain-Key: your_key" > .cursorrulesDifferent AI coding assistants rely on different workspace instruction formats. Friday includes a built-in CLI engine that generates standardized, bidirectional memory directives for any editor or autonomous agent runner:
| Target Environment | Generated File | Default Location |
|---|---|---|
| Universal Agent Standard | AGENTS.md | Repository root |
| Claude Code | CLAUDE.md | Repository root |
| Cursor IDE | .cursorrules | Repository root |
| Google Gemini & Antigravity | GEMINI.md | Repository root |
| GitHub Copilot | copilot-instructions.md | .github/ |
| Windsurf & Cascade | .windsurfrules | Repository root |
| Continue.dev | rules.md | .continue/ |
| Aider | CONVENTIONS.md | Repository root |
friday rules listGenerate an optimized rule file for a specific agent:
friday rules generate --target claude
friday rules generate --target cursor
friday rules generate --target geminiOr generate standardized rule files for all supported tools at once:
friday rules generate --allFor proprietary agents, internal corporate tooling, or newly released frameworks, register and output custom adapted rule files:
friday rules custom \
--key myagent \
--name "Internal SRE Agent" \
--file ".myagent/rules.md"Each generated rule file enforces the Two-Way Zero-Amnesia Protocol:
friday:get_context and friday:memory_search before formulating implementation plans.friday:add_fact and friday:add_memory.Every memory written via add_memory is analyzed asynchronously by the Subconscious worker. Entities and typed relations are automatically wired into Neo4j without manual schema definitions:
Input:
"Billing engine connects to Stripe API for recurring charges. Webhook dispatched to /api/webhooks/stripe."
Extracted Graph Nodes & Edges:
(:Service {name: "BillingEngine"}) -[:CONNECTS_TO]-> (:API {name: "Stripe"})
(:API {name: "Stripe"}) -[:DISPATCHES_TO]-> (:Endpoint {path: "/api/webhooks/stripe"})A browser-based 3D WebGL visualizer powered by Three.js for real-time knowledge graph exploration and system telemetry:
Hot ≥ 0.7) and aging/deprecated context (Decayed < 0.4).+0.25), trace bidirectional relationship chains, and smoothly focus the 3D camera on target nodes.Deterministic project constants are recorded with immutable version history and project isolation (reeldm, friday, global). Conflicting keys (Key: Value) automatically supersede older versions within the same project namespace:
# Add initial constraint (project-scoped)
POST /facts -> {"content": "Payment Gateway: Stripe", "project": "billing"}
# Recorded: id="c41b8a9", superseded=false
# Update constraint — automatically detects conflicting key 'Payment Gateway'
POST /facts -> {"content": "Payment Gateway: DodoPayments", "project": "billing"}
# Prior fact marked superseded=true; active fact updated without hallucination.Before modifying database schemas, refactoring shared middleware, or removing endpoints, agents query get_blast_radius to compute downstream transitive impacts up to 4 hops away across Layer 4:
# Query blast radius for a service or entity
GET /graph/blast-radius?entity=UserSession&depth=2&project=backend-api
# Returns: directly impacted services, traversal distance, and edge relationship types.friday/
├── friday/ # Official Python SDK & CLI (client, rules engine, types)
├── gateway/ # FastAPI REST application & routing (Neo4j + ChromaDB + Mem0)
├── layers/ # Pluggable cognitive adapters (ChromaDB, Neo4j, Decay)
├── pipelines/ # Background entity extraction, Dream Cycle & fact pipelines
├── orchestrator/ # Multi-layer retrieval router & cognitive state engine
├── mcp/ # Model Context Protocol stdio server
├── studio/ # Three.js Neural Studio 3D visualizer
├── benchmarks/ # DeepEval evaluation suite
├── tests/ # Pytest test suite (100% green)
├── docker-compose.yml # Production container definition
├── Makefile # Developer task automation
└── pyproject.toml # Tooling & packaging configurationAll authenticated endpoints require the X-Brain-Key request header.
| Method | Path | Auth | Description |
|---|---|---|---|
GET | / | No | Serves Neural Studio visualizer. |
GET | /health | No | Layered health status check. |
POST | /add | Yes | Ingest memory and trigger background graph extraction. |
POST | /facts | Yes | Record or update a versioned fact. |
GET | /facts | No | List active ground-truth facts (supports min_energy). |
POST | /search | Yes | Semantic search across vector stores. |
POST | /ingest | Yes | Batch ingest architectural specifications. |
GET | /export/persona | Yes | Export synchronized IDE rules (agents or cursor). |
GET | /api/graph-data | No | Fetch nodes and edges for 3D visualizer. |
GET | /state | No | Retrieve active developer cognitive state & calibration. |
POST | /state/update | Yes | Update mode, urgency, stress, and response calibration. |
POST | /dream/run | Yes | Trigger biological Dream Cycle memory consolidation. |
POST | /decay/apply | Yes | Apply exponential synaptic decay across facts ledger. |
POST | /api/node/create | Yes | Create a graph entity node. |
DELETE | /api/node/{id} | Yes | Delete an entity and cascading relationships. |
# Install dependencies
make install
# Run test suite
make test
# Code formatting & linting
make lint
make format
# Start local dev server
make devFriday supports an opt-in serverless execution model backed by remote libSQL (Turso) or local SQLite transactions, ideal for ephemeral environments like Google Cloud Run.
gateway.serverless:create_app exposes all core memory, fact, graph, and blueprint endpoints with project-scoped isolation and authenticated reads.Note: Serverless storage is completely opt-in and does not alter the default Docker Compose deployment or client routing.
Review CONTRIBUTING.md for pull request guidelines, commit conventions, and architectural standards.
![]() Shobhit Singh Creator & Maintainer | ![]() Dan Strong Open Source Contributor |
Friday is licensed under the MIT License.
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add friday -- python -m mcp.server{
"mcpServers": {
"friday": {
"env": {
"FRIDAY_URL": "",
"BRAIN_API_KEY": ""
},
"args": [
"-m",
"mcp.server"
],
"command": "python"
}
}
}code --add-mcp '{"name":"friday","env":{"FRIDAY_URL":"","BRAIN_API_KEY":""},"args":["-m","mcp.server"],"command":"python"}'[mcp_servers.friday]
command = "python"
args = ["-m", "mcp.server"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/friday-2 to learn what the "Friday" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
claude mcp add fridaypip install "friday-memory[langchain]"This server runs locally, so we can't read its tool list over the web yet.
We could not run this server: it ships no npx package for our sandbox and no public endpoint. The four checks that need a live server are left out, and the grade tops out at B until one exists.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/friday-2)Nothing comparable is listed yet.
v1.5.2v1.5.2: Security Patch - Project-Scope Isolation for Memory EndpointsRelease notesv1.5.1v1.5.1: Flagship Gateway Hygiene Parity & Memory Revocation ToolsRelease notesv1.5.0v1.5.0: Opt-in libSQL / Turso Storage & Serverless GatewayRelease notesv1.4.5v1.4.5: Graph Blast-Radius Analysis & Multi-Project Facts Auto-SupersedeRelease notesv1.4.4v1.4.4 — Universal Agent Rule Engine & Extensible Adapter CLIRelease notesv1.4.3v1.4.3 — Enterprise Systems Documentation & Health AlignmentRelease notesv1.4.2v1.4.2 — Clean Flagship Distribution & Security HygieneRelease notesv1.3.0Friday v1.3.0 — Cognitive Core 2.0 (Dream Cycle, Dynamic Decay, Empathy Engine)Release notesv1.2.0Friday v1.2.0 — Official Python SDK ('friday-memory') & Systems EngineRelease notesv1.1.0Friday v1.1.0 — Cognitive Rationale, 1-Command Installer & Dynamic Persona SyncRelease notesv1.0.0Friday v1.0.0 — The Persistent Cognitive Memory Layer for AI Coding AgentsRelease notesConnect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "friday-2" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.