Blue Synergy Cortex
Allows CrewAI agents to connect to Cortex through the REST API for persistent memory recall and ingestion.
Allows LangChain custom agents and pipelines to use Cortex memory through the REST API for context recall and turn ingestion.
Allows n8n workflows to integrate with Cortex via the REST API for memory recall and ingestion.
Enables OpenAI Custom GPTs to access Cortex memory via the REST API for context retrieval and turn ingestion.
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.
Blue Synergy Cortex (v3.0)
Long-term, drift-free cognitive memory engine for AI Agents, Cursor IDE, and Claude Desktop via Model Context Protocol (MCP).
Deep Dive: Want to understand our tri-stream model, autonomous rest cycles, and dynamic invariant guards?
Read the full Engineering Whitepaper & Architecture Model (ARCHITECTURE.md).
Stop AI Amnesia & Specification Drift
Blue Synergy Cortex implements an enterprise-grade Tri-Stream Architecture backed by transactional PostgreSQL and enterprise knowledge graph architecture:
User Stream: Generalizes conversational habits and user preferences over time.
Identity Stream: Deterministic guardrails and behavioral axioms that prevent sycophancy.
Knowledge Stream (Living Specs): Exact architecture specifications, hardware limits, and system parameters organized into an authoritative Universal Domain Ontology. This stream is protected against lossy compression, semantic decay, and accidental drift.
Quickstart (1 Minute Setup)
API Key Required: Blue Synergy Cortex is a fully hosted, zero-maintenance cognitive cloud engine. You need an active API key to connect your client.
π Get your 21-Day Free Trial Key here
(Instant activation, no credit card required, includes 500 graph nodes & up to 3 agents).
Step 1: Get your API Key
Go to cortex.bluesynergy.io and generate your trial key.
Your key will look like:
ctx_live_xxxxxxxxxxxxxxxxxxxxxx.
Step 2: Connect your AI agent
A. Cursor IDE Integration
Open Cursor Settings (
Ctrl+Shift+JorCmd+Shift+J).Navigate to Features -> MCP Servers -> Add new MCP server.
Configure as follows:
Name:
cortex-memoryType:
sseURL:
https://cortex.bluesynergy.io/v1/mcp/sse?api_key=YOUR_API_KEY
Save. Your Cursor Composer and Agent now have permanent recall across restarts!
B. Claude Desktop Integration
Edit your configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the Cortex remote configuration (Claude Desktop):
{
"mcpServers": {
"cortex": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://cortex.bluesynergy.io/v1/mcp/sse",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}Restart Claude Desktop
π‘ Crucial: Preventing Collapsed/Empty Messages in Claude Desktop
In Claude Desktop, if the assistant writes text before calling an MCP tool in the same turn, the desktop UI automatically collapses that text into the tool accordion, making the response appear empty or truncated to the user.To guarantee 100% clean UI display and continuous memory ingestion, add this exact rule to your Claude Desktop settings (Settings β‘οΈ Profile / Custom Instructions):
[CORTEX MEMORY PROTOCOL] 1. Inhale: Call `cortex_recall` before answering whenever historical or project context is needed. 2. Exhale (UI-Safe): Do NOT write conversational text before calling `cortex_ingest_turn`. Always execute the `cortex_ingest_turn` tool call first (passing both the user's prompt and your planned answer). 3. Response: Generate your full substantive answer to the user immediately after the tool completes. This ensures your response displays cleanly in the UI without being collapsed into tool artifacts.
C. Other MCP Clients (Windsurf, VS Code Cline, Roo Code, Zed, Cursor)
Use the SSE endpoint directly in your tool's MCP configuration:
{
"mcpServers": {
"cortex": {
"url": "https://cortex.bluesynergy.io/v1/mcp/sse?api_key=ctx_live_..."
}
}
}D. Custom Agents & REST API (LangChain, CrewAI, AutoGen, OpenAI Custom GPTs, LlamaIndex, n8n)
Example: Querying Context (cURL)
curl -X POST https://cortex.bluesynergy.io/v1/recall \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "System database requirements",
"user_id": "developer",
"agent_id": "backend_agent"
}'Available MCP Tools & Lifecycle Architecture
Cortex is not a passive key-value store; it is an active cognitive operating system with strict governance boundaries. Understanding when and why to call each tool ensures high-fidelity memory consolidation.
The Standard Agent Turn Cycle
For every user turn, your agent should inherently follow this golden loop:
At turn start: Call
cortex_recallto fetch ground-truth context (User Bio + Active Project Specs + Graph Relations).Generate response: Formulate the answer grounded in the retrieved memory.
At turn end: Call
cortex_ingest_turnto send the turn to the asynchronous ingestion buffer.
Detailed Tool Reference
Tool Name | Type | When to Call | System Behavior |
|
| Before answering the user (mandatory for full context awareness). | Fast context retrieval. Injects verified user preferences, active project specifications, and related domain facts. Set |
| Ingestion | Immediately after answering every conversational turn. | Asynchronously ingests the conversational turn. Automatically filters dialogue noise, learns communication preferences, and stages key technical facts for memory consolidation. |
| Discovery | Before creating projects or when the target slug is uncertain. | Returns all authorized active project workspaces with their canonical IDs, human-readable names, and descriptions. Prevents duplicate workspaces. |
| Provisioning | When the user declares, initializes, or approves a new project scope. | Registers and authorizes a new canonical |
| Write | For explicit constraints, business rules, and technical decisions that must be guaranteed. | Curated persistent write. Ensures facts are strictly validated and staged in workspace memory without risking cross-project contamination. |
| Inspection | When you need the complete Living Specification of a project. | Deterministically retrieves the unified, consolidated specification of the project (Living Document). Returns only verified specifications. |
| Execution | When the user requests an immediate update/reconciliation of project specifications. | Triggers a background reconciliation task to merge recent notes and updates into the canonical project specification. |
| Monitoring | When checking if an asynchronous consolidation has finished. | Queries task status by |
| Governance | When a new product or domain is proposed and awaits explicit authorization. | Promotes proposed project drafts into active production specifications, or permanently purges rejected concepts. |
| Maintenance | When the unassigned memory pool accumulates multi-project notes. | Automatically clusters unstructured notes, assigns them to appropriate projects, and compacts the workspace. |
| Maintenance | When the user instructs to reset or prune unassigned memory. | Selectively deletes unassigned notes by |
Project Governance & Lifecycle
To prevent memory fragmentation and unauthorized project sprawl, Cortex treats memory with strict governance boundaries:
[Incoming Note / Message]
β
βΌ
Is Project Authorized?
βββ NO βββΊ Staged in General Pool ('general')
β β
β βΌ
β Awaits Triage via `cortex_triage_general`
β (or explicitly authorized via `cortex_create_project`)
β β
βββ YES βββββββββββ
β
βΌ
[Asynchronous Consolidation Cycle]
β
βΌ
[Active Living Specification & Knowledge Topology]Why is my project_spec empty after storing notes?
Cortex enforces a Human-in-the-Loop policy. If a project_id has not yet been explicitly authorized by the user, incoming facts are safely staged in the general memory pool to prevent polluting active workspaces. Once the project is approved (via cortex_manage_draft or explicit creation), the nocturnal consolidation engine automatically synthesizes these staged notes into the official Living Specification (cortex_get_project_spec).
Why is my User Biography empty? (Fixing "Disobedient" Agents)
If your project specs work but User Biography or Agent Persona remains empty, your AI agent is skipping the required post-response "exhale" step (cortex_ingest_turn).
Why this happens:
LLMs (Claude, GPT, etc.) treat remote MCP prompt instructions with lower priority once they finish drafting a response to the user. When an agent skips cortex_ingest_turn, dialogue turns never hit the ingestion buffer, starving the Cognitive Router and Memory Firewall of data needed to distill user habits.
The Fix:
Enforce the rule at the client/system prompt level (e.g. in your system prompt, Cursor Rules .cursorrules, or Claude Desktop Custom Instructions). An instruction anchored in the client's native prompt has 10Γ higher adherence than MCP tool headers alone.
Core Architecture Highlights
Sub-120ms Zero-LLM Recall: Direct high-performance vector and topological graph matchingβcompletely bypassing slow, non-deterministic runtime LLM keyword extractors.
Dual-Zone Fast-Append: Instant raw fact capture (< 20ms) into an inbox staging zone, followed by scheduled asynchronous consolidation into an immutable, unified Living Specification.
Semantic Invariant Guard: Algorithmic verification gate that enforces factual density and continuity, mathematically preventing the truncation or loss of critical parameters during re-indexing.
Immunity Shield: Operational errors, tool crashes, transient hallucinations, and conversational apologies are filtered out by design and never committed to long-term memory.
Support & Feedback
Encountered an issue or have a feature suggestion?
Bug Reports & Issues: Open an Issue
Status & Portal: cortex.bluesynergy.io
For a detailed theoretical and operational breakdown, see our Engineering Whitepaper (ARCHITECTURE.md).
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
Project memory, documentation and controlled secret access for AI coding agents.
Shared project memory that keeps teammates and AI agents aligned across sessions.
Persistent engineering memory designed to follow developers across coding agents.
Project memory for coding agents: requirements, decisions, code graph and delivery telemetry.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to read and write persistent, local-first memory so project decisions, preferences, and cross-project guidelines survive across sessions and can be retrieved by semantic search. Optionally also exposes a task queue for autonomous execution that draws on the same stored context.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to store and retrieve persistent project and cross-project memories via semantic search, so decisions, preferences, error patterns, and guidelines survive across sessions. Optionally supports autonomous task execution built on the same local-first knowledge store.-
- AlicenseNot gradedqualityAmaintenanceGives AI agents persistent, shared memory by ingesting notes, code, transcripts, and session captures, then serving token-optimized context and hybrid keyword/semantic search over MCP and REST. Agents can classify, promote, and synthesize stored material so each session builds on prior work instead of starting from zero.10 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to read and write persistent project-scoped and cross-project memory during sessions, using local semantic search to surface relevant decisions, preferences, error patterns, and guidelines across sessions. It also optionally exposes an autonomous task queue that draws on that same stored context.-