
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A fully local MCP server that stores development insights, decisions, and troubleshooting records as memories in a centralized knowledge graph, so AI assistants can recall relevant context across projects.
Local MCP server acting as a developer's persistent "second brain" is cataloged as an MCP server attributed to fuwasegu. A fully local MCP server that stores development insights, decisions, and troubleshooting records as memories in a centralized knowledge graph, so AI assistants can recall relevant context across projects. It is categorized under developer tools. 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: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Local MCP server acting as a developer's persistent "second brain" 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.
Data lives in a single centralized store under ~/.exocortex/ by default, shared across all projects.
Yes, via proxy mode, which runs a single background SSE server that multiple clients share to avoid database lock conflicts.
README.md · ccd58ed7870d · 采集于 2026-11-13 11:08:03 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
"Extend your mind." - Your External Brain
Exocortex is a local MCP (Model Context Protocol) server that acts as a developer's "second brain."
It persists development insights, technical decisions, and troubleshooting records, allowing AI assistants (like Cursor) to retrieve contextually relevant memories when needed.
Unlike tools that store data per-repository (e.g., .serena/ in each project), Exocortex uses a single, centralized knowledge store.
Traditional approach (per-repository):
project-A/.serena/ ← isolated knowledge
project-B/.serena/ ← isolated knowledge
project-C/.serena/ ← isolated knowledge
Exocortex approach (centralized):
~/.exocortex/data/ ← shared knowledge across ALL projects
├── Insights from project-A
├── Insights from project-B
└── Insights from project-C
↓
Cross-project learning!
Benefits:
# Clone the repository
git clone https://github.com/fuwasegu/exocortex.git
cd exocortex
# Install dependencies with uv
uv sync
uv run exocortex
Add the following to your ~/.cursor/mcp.json:
Auto-updates when uvx cache expires. No manual git pull needed.
{
"mcpServers": {
"exocortex": {
"command": "uvx",
"args": ["--from", "git+https://github.com/fuwasegu/exocortex", "exocortex"]
}
}
}
For development or customization.
{
"mcpServers": {
"exocortex": {
"command": "uv",
"args": ["--directory", "/path/to/exocortex", "run", "exocortex"]
}
}
}
Note: Your data is stored in
~/.exocortex/and is preserved regardless of which option you choose.
Use this method if you want to use Exocortex from multiple Cursor windows simultaneously.
KùzuDB doesn't support concurrent writes from multiple processes. With the stdio approach where each Cursor instance spawns its own server process, lock conflicts occur. Proxy mode automatically starts a single SSE server in the background, and each Cursor instance connects via proxy.
{
"mcpServers": {
"exocortex": {
"command": "uvx",
"args": [
"--from", "git+https://github.com/fuwasegu/exocortex",
"exocortex",
"--mode", "proxy",
"--ensure-server"
]
}
}
}
How it works:
Note: No manual server startup required. The
--ensure-serveroption automatically starts the server if it's not running.
If you prefer to manage the server manually:
Step 1: Start the server
# Start the server in a terminal (can also run in background)
uv run --directory /path/to/exocortex exocortex --transport sse --port 8765
Step 2: Configure Cursor
{
"mcpServers": {
"exocortex": {
"url": "http://127.0.0.1:8765/mcp/sse"
}
}
}
Bonus: With this setup, you can also access the web dashboard at
http://127.0.0.1:8765/
Tip: To auto-start the server on system boot, use
launchdon macOS orsystemdon Linux.
| Tool | Description |
|---|---|
exo_ping | Health check to verify server is running |
exo_store_memory | Store a new memory |
exo_recall_memories | Recall relevant memories via semantic search |
exo_list_memories | List stored memories with pagination |
exo_get_memory | Get a specific memory by ID |
exo_delete_memory | Delete a memory |
exo_get_stats | Get statistics about stored memories |
| Tool | Description |
|---|---|
exo_link_memories | Create a link between two memories |
exo_unlink_memories | Remove a link between memories |
exo_update_memory | Update content, tags, or type of a memory |
exo_explore_related | Discover related memories via graph traversal |
exo_get_memory_links | Get all outgoing links from a memory |
exo_trace_lineage | 🕰️ Trace the evolution/lineage of a memory (temporal reasoning) |
exo_curiosity_scan | 🤔 Scan for contradictions, outdated info, and knowledge gaps |
exo_analyze_knowledge | Analyze knowledge base health and get improvement suggestions |
exo_sleep | Trigger background consolidation (deduplication, orphan rescue, auto-linking) |
exo_consolidate | Extract abstract patterns from memory clusters |
exo_compact | 🧹 Rebuild the database to reclaim disk space (see Compaction) |
Exocortex automatically improves your knowledge graph! When you store a memory, the system:
// Example exo_store_memory response with suggestions
{
"success": true,
"memory_id": "...",
"suggested_links": [
{
"target_id": "existing-memory-id",
"similarity": 0.78,
"suggested_relation": "extends",
"reason": "High semantic similarity; may be an application of this insight"
}
],
"insights": [
{
"type": "potential_duplicate",
"message": "This memory is very similar (94%) to an existing one.",
"suggested_action": "Use exo_update_memory instead"
}
]
}
Like human sleep consolidates memories, Exocortex prompts the AI to organize after storing.
When exo_store_memory succeeds, the response includes next_actions that guide the AI to:
// Example response with next_actions
{
"success": true,
"memory_id": "abc123",
"summary": "...",
"consolidation_required": true,
"consolidation_message": "🧠 Memory stored. 2 consolidation action(s) required.",
"next_actions": [
{
"action": "link_memories",
"priority": "high",
"description": "Link to 2 related memories",
"details": [
{
"call": "exo_link_memories",
"args": {
"source_id": "abc123",
"target_id": "def456",
"relation_type": "extends",
"reason": "High semantic similarity"
}
}
]
},
{
"action": "analyze_health",
"priority": "low",
"description": "Run knowledge base health check",
"details": { "call": "exo_analyze_knowledge" }
}
]
}
Expected Flow:
User: "Remember this insight"
↓
AI: exo_store_memory() → receives next_actions
↓
AI: exo_link_memories() for each high-priority action
↓
AI: "Stored and linked to 2 related memories."
⚠️ Important Limitation: Execution of
next_actionsis at the AI agent's discretion. While the server strongly instructs consolidation viaSERVER_INSTRUCTIONSandconsolidation_required: true, execution is NOT 100% guaranteed. This is an inherent limitation of the MCP protocol—servers can only suggest, not force actions. In practice, most modern AI assistants follow these instructions, but they may be skipped during complex conversations or when competing with other tasks.
exo_link_memories| Type | Description |
|---|---|
related | Generally related memories |
supersedes | This memory updates/replaces the target |
contradicts | This memory contradicts the target |
extends | This memory extends/elaborates the target |
depends_on | This memory depends on the target |
evolved_from | This memory evolved from the target (temporal reasoning) |
rejected_because | This memory was rejected due to the target |
caused_by | This memory was caused by the target |
exo_trace_lineageTrace the lineage of decisions and knowledge over time. Understand WHY something became the way it is.
| Parameter | Description | Example |
|---|---|---|
memory_id | Starting memory ID | "abc123" |
direction | "backward" (find ancestors) or "forward" (find descendants) | "backward" |
relation_types | Relations to follow | ["evolved_from", "caused_by"] |
max_depth | Maximum traversal depth | 10 (default) |
Example: Understanding Why a Decision Was Made
Current Architecture Decision
│
▼ trace_lineage(direction="backward")
│
├─ [depth 1] Previous Design (evolved_from)
│ "Switched from monolith to microservices"
│
└─ [depth 2] Original Problem (caused_by)
"Scaling issues with single database"
Usage:
AI: exo_trace_lineage(memory_id="current-decision", direction="backward")
↓
Result: Shows the evolution chain of how the current decision came to be
Use Cases:
exo_curiosity_scanThe Curiosity Engine actively questions your knowledge base like a curious human would. It scans for inconsistencies, finds unlinked memories, and generates questions to improve knowledge quality.
What it detects:
| Category | Description | Example |
|---|---|---|
| 🔴 Contradictions | Memories that conflict with each other | Success vs Failure on same topic |
| 📅 Outdated Info | Old knowledge that may need review | Memories superseded but not linked |
| 🔗 Suggested Links | Unlinked memories that should be connected | Memories sharing tags, context, or high similarity |
| ❓ Questions | Human-like questions about your knowledge | "Is this still valid?" |
Suggested Links Detection Strategies:
| Strategy | Confidence | Description |
|---|---|---|
| Tag Sharing | High (0.7+) | Memories sharing 2+ tags are likely related |
| Context Sharing | Medium (0.6) | Same project + same type (insight/decision) |
| Semantic Similarity | High (0.7+) | High vector similarity (>70%) but not linked |
Example Output:
{
"contradictions": [
{
"memory_a_summary": "Caching approach works perfectly",
"memory_b_summary": "Caching approach failed badly",
"reason": "success vs failure on same topic",
"confidence": 0.85
}
],
"suggested_links": [
{
"source_summary": "Database optimization technique",
"target_summary": "Query performance improvement",
"reason": "Share 3 tags: database, performance, optimization",
"link_type": "tag_shared",
"confidence": 0.8,
"suggested_relation": "related"
}
],
"outdated_knowledge": [],
"questions": [
"🤔 These memories seem to contradict. Are both still valid?",
"🔗 Found unlinked related memories. Link them to strengthen the graph?"
],
"next_actions": [
{
"action": "create_link",
"priority": "medium",
"details": {
"call": "exo_link_memories",
"args": {
"source_id": "...",
"target_id": "...",
"relation_type": "related"
}
}
}
]
}
Usage:
AI: exo_curiosity_scan(context_filter="my-project")
↓
Result: Report of issues, suggested links, and questions
↓
AI: Executes next_actions to create links
↓
Result: Knowledge graph becomes richer and more connected!
Use Cases:
For higher accuracy contradiction detection in exo_curiosity_scan, you can enable BERT-based sentiment analysis:
# Local installation
pip install exocortex[sentiment]
# or
uv sync --extra sentiment
// mcp.json with sentiment support
{
"mcpServers": {
"exocortex": {
"command": "uvx",
"args": [
"--from", "exocortex[sentiment] @ git+https://github.com/fuwasegu/exocortex",
"exocortex", "--mode", "proxy", "--ensure-server"
]
}
}
}
Note: Adds ~2.5GB of dependencies (PyTorch + Transformers). The default keyword-based detection works well for most cases and supports both English and Japanese.
| Variable | Default | Description |
|---|---|---|
EXOCORTEX_DATA_DIR | ~/.exocortex | Database storage directory |
EXOCORTEX_LOG_LEVEL | INFO | Logging level (DEBUG/INFO/WARNING/ERROR) |
EXOCORTEX_EMBEDDING_MODEL | sentence-transformers/all-MiniLM-L6-v2 | Embedding model to use |
EXOCORTEX_TRANSPORT | stdio | Transport mode (stdio/sse/streamable-http) |
EXOCORTEX_HOST | 127.0.0.1 | Server bind address (for HTTP modes) |
EXOCORTEX_PORT | 8765 | Server port number (for HTTP modes) |
┌─────────────────┐ stdio ┌─────────────────────────────┐
│ AI Assistant │ ◄──────────► │ Exocortex MCP │
│ (Cursor) │ MCP │ │
└─────────────────┘ │ ┌─────────┐ ┌──────────┐ │
│ │ Tools │ │ Embedding│ │
│ │ Handler │ │ Engine │ │
│ └────┬────┘ └────┬─────┘ │
│ │ │ │
│ ┌────▼────────────▼─────┐ │
│ │ KùzuDB │ │
│ │ (Graph + Vector) │ │
│ └────────────────────────┘ │
└─────────────────────────────┘
┌─────────────────┐
│ Cursor #1 │──────┐
└─────────────────┘ │
│ HTTP ┌─────────────────────────────┐
┌─────────────────┐ ├────────►│ Exocortex MCP │
│ Cursor #2 │──────┤ SSE │ (Standalone) │
└─────────────────┘ │ │ │
│ │ ┌─────────┐ ┌──────────┐ │
┌─────────────────┐ │ │ │ Tools │ │ Embedding│ │
│ Cursor #3 │──────┘ │ │ Handler │ │ Engine │ │
└─────────────────┘ │ └────┬────┘ └────┬─────┘ │
│ │ │ │
│ ┌────▼────────────▼─────┐ │
│ │ KùzuDB │ │
│ │ (Graph + Vector) │ │
│ └────────────────────────┘ │
└─────────────────────────────┘
Memory ─── ORIGINATED_IN ──► Context (project)
Memory ─── TAGGED_WITH ────► Tag
Memory ─── RELATED_TO ─────► Memory (with relation type)
Exocortex implements a Memory Dynamics system inspired by human cognition. Memories have "lifespan" and "strength" that affect search results:
Hybrid Scoring Formula:
Score = (S_vec × w_vec) + (S_recency × w_recency) + (S_freq × w_freq) + (S_frustration × w_frustration)
| Component | Description | Default Weight |
|---|---|---|
S_vec | Vector similarity (semantic relevance) | 0.50 |
S_recency | Recency score (exponential decay: e^(-λ×Δt)) | 0.20 |
S_freq | Frequency score (log scale: log(1 + count)) | 0.15 |
S_frustration | Frustration score (painful memory boost) | 0.15 |
How it works:
last_accessed_at and access_count are updatedS_freq scoresS_recency scoresS_frustration scores for priorityThis creates an intelligent recall system where:
Based on the neuroscience insight that "painful memories are prioritized in decision-making", Exocortex automatically boosts the importance of debugging struggles and hard-won solutions.
Usage:
# Explicitly mark as a painful memory
exo_store_memory(
content="Spent 3 hours debugging KùzuDB lock issues. Root cause was...",
context_name="exocortex",
tags=["bug", "kuzu"],
is_painful=True, # ← Important!
time_cost_hours=3.0, # ← Record time spent
)
Auto-detection:
Even without is_painful, frustration level is auto-detected from content:
Search results:
{
"memories": [
{
"id": "...",
"summary": "KùzuDB lock issue resolution",
"frustration_score": 0.85,
"pain_indicator": "🔥🔥🔥", // ← Visual emphasis
"time_cost_hours": 3.0
}
]
}
Like human sleep consolidates memories, Exocortex has a background consolidation process that organizes your knowledge graph:
┌─────────────────────────────────────────────────────────────┐
│ exo_sleep() called │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Dream Worker (Detached Process) │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ 1. Deduplication │ │
│ │ - Find memories with similarity >= 95% │ │
│ │ - Link newer → older with 'related' relation │ │
│ ├──────────────────────────────────────────────────────┤ │
│ │ 2. Orphan Rescue │ │
│ │ - Find memories with no tags and no links │ │
│ │ - Link to most similar memory with 'related' │ │
│ ├──────────────────────────────────────────────────────┤ │
│ │ 3. Auto-linking (High Confidence Only) │ │
│ │ - Tag sharing: 3+ shared tags → 'related' │ │
│ │ - Semantic: 80%+ similarity → 'related' │ │
│ ├──────────────────────────────────────────────────────┤ │
│ │ 4. Pattern Mining (Phase 2) │ │
│ │ - Extract common patterns from memory clusters │ │
│ └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
Usage:
AI: "I've completed the task. Let me consolidate the knowledge base."
↓
AI: exo_sleep() → Worker spawns in background
↓
AI: "Consolidation process started. Your knowledge graph will be optimized."
Key Features:
enable_logging=True to track progressℹ️ Proxy Mode: Since v1.1.0
exo_sleepworks in proxy mode. The server now hands its database lock over before spawning the worker, and releases the lock automatically after a few seconds of inactivity.This is best-effort rather than guaranteed: if the server is busy serving requests it may reacquire the database before the worker (which loads an embedding model first) gets in. If the worker reports a lock timeout, simply retry when things are quiet.
If your database directory is far larger than the data it holds — hundreds of megabytes for a few thousand memories — it was bloated by a write-path bug present before v1.1.0. Every write query ran a full storage checkpoint, and each checkpoint rewrote relationship column chunks without reclaiming pages (~386 KiB of file growth per relationship). Badly affected databases eventually fail to read the bloated column at all:
RuntimeError: Buffer manager exception: Unable to allocate memory!
v1.1.0 fixes the cause, but an already-bloated database does not shrink on its own. Rebuild it:
# As a CLI (the server must not be running)
uvx --from git+https://github.com/fuwasegu/exocortex exocortex --mode compact
# Keep no backup (the pre-compaction copy is kept under ~/.exocortex/backups/ by default)
uvx --from git+https://github.com/fuwasegu/exocortex exocortex --mode compact --no-backup
Or ask your AI assistant to call exo_compact.
The original database is moved to ~/.exocortex/backups/ and only replaced once the rebuild fully succeeds. Relationship text that is already unreadable cannot be recovered — those columns are reported and rebuilt empty so the rest of the graph survives.
EXPORT DATABASEis not a substitute: it runs out of memory on exactly the databases that need compacting.
Exocortex can extract abstract patterns from concrete memories, creating a hierarchical knowledge structure:
┌─────────────────────────────────────────────────────────────────┐
│ Pattern Layer │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ "Always use connection pooling for database connections" │ │
│ │ Confidence: 0.85 | Instances: 5 │ │
│ └───────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
▲ INSTANCE_OF ▲ INSTANCE_OF
┌────────────┴────────────────┴────────────┐
┌──────┴──────┐ ┌───────────┐ ┌───────────┐ ┌──┴────────┐
│ Memory #1 │ │ Memory #2 │ │ Memory #3 │ │ Memory #4 │
│ PostgreSQL │ │ MySQL │ │ Redis │ │ MongoDB │
│ pooling fix │ │ pool size │ │ conn reuse│ │ pool leak │
└─────────────┘ └───────────┘ └───────────┘ └───────────┘
Memory Layer (Concrete)
Usage:
AI: exo_consolidate(tag_filter="database") → Extracts patterns from database-related memories
↓
Result: "Created 2 patterns from 8 memories"
Benefits:
Exocortex includes a beautiful web dashboard for visualizing and managing your knowledge base.
No terminal commands needed! When using proxy mode (--mode proxy --ensure-server) with Cursor, the SSE server is automatically running in the background.
Just open this in your browser:
http://127.0.0.1:8765/
Cursor starts
↓
Proxy mode → SSE server auto-starts (port 8765)
↓
├─ MCP: http://127.0.0.1:8765/mcp/sse ← Used by Cursor
└─ Dashboard: http://127.0.0.1:8765/ ← Just open in browser!
If you want to view the dashboard without using Cursor:
# Start SSE server (includes dashboard)
uv run exocortex --transport sse --port 8765
URLs:
http://127.0.0.1:8765/http://127.0.0.1:8765/mcp/sse| Tab | Description |
|---|---|
| Overview | Statistics, contexts, tags, and knowledge base health score |
| Memories | Browse, filter, and search memories with pagination |
| Dream Log | Real-time streaming log of background consolidation processes |
| Graph | Visual knowledge graph showing memory connections |
Overview Tab
Memories Tab
Graph Tab
RELATED_TO connections between memoriesYou can also run the dashboard separately on a different port:
uv run exocortex --mode dashboard --dashboard-port 8766
Note: In standalone mode, the dashboard connects to the same database but doesn't include the MCP server.
# Install dependencies
uv sync
# Run tests
uv run pytest
# Run with debug logging
EXOCORTEX_LOG_LEVEL=DEBUG uv run exocortex
MIT License
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Local MCP server acting as a developer's persistent "second brain" from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/exocortex)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.