LogicMem MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LogicMem MCP ServerRemember that I prefer Telegram for urgent messages."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🧠 LogicMem — AI Agent Memory Infrastructure
Persistent memory, A2A sharing, reasoning engine, and immutable audit trail for AI agents via the Model Context Protocol.
The Problem
AI agents are stateless by design. Every session starts from scratch:
Session 1 Session 2
────────── ──────────
User: "I'm building a SaaS" → User: "How's my SaaS coming?"
Agent: "Tell me more..." Agent: "I don't know anything
... about your SaaS"
[Session ends]
Agent forgot EVERYTHING.This is fine for demos. It's catastrophic for production AI workflows.
Related MCP server: M.I.M.I.R - Multi-agent Intelligent Memory & Insight Repository
The Solution
LogicMem gives your AI agent persistent memory — connect any MCP client and get:
🔍 Persistent Memory — Store and search memories across sessions
🧠 Reasoning Engine — Multi-step reasoning that consults memory
🔗 A2A Memory Sharing — Agents share context in real-time
📋 Immutable Audit Trail — Cryptographically verifiable history
🎙️ Voice Memory — Caller history for VAPI, Retell AI, Bland AI
Install
pip install logicmemOr with optional dependencies:
pip install "logicmem[pydantic]" # Pydantic models for validation
pip install "logicmem[dev]" # Development tools (pytest, ruff, etc.)Quick Start (< 5 minutes)
1. Get an API Key
Sign up at logicmem.io → Settings → API Keys → Create Key.
Free tier: 1,000 memory operations/month.
2. Use the Python SDK
from logicmem import LogicMem
# Initialize the client
memory = LogicMem(api_key="lm_your_api_key")
# Store a memory
memory.log(
text="User prefers urgent messages via Telegram, not email.",
category="preference",
importance=8,
)
# Search memories
results = memory.recall(query="user communication preferences")
print(results[0]["text"])
# → "User prefers urgent messages via Telegram, not email."
# Store a task with context
memory.log(
text="Review Q3 proposal by Friday. Priority: cost breakdown first, then timeline.",
category="task",
importance=9,
)
# Session briefing — full context at start of session
brief = memory.session(client_id="ed_creed")
print(brief["confidence"]) # How confident is the agent about this user?
print(brief["relationship_trend"]) # improving / declining / stable3. Reasoning Engine
# Multi-step reasoning with memory at each step
answer = memory.reason(
question="Should we prioritize the mobile app or web dashboard first?",
context="User is a solo founder with limited engineering bandwidth.",
mode="deep", # fast / deep / exhaustive
)
print(answer["answer"])
print(answer["confidence"])
# Verify a claim against stored facts
verdict = memory.verify("User has a budget of $50k for this project")
print(verdict["verdict"]) # supported / contradicted / inconclusive
print(verdict["evidence"]) # supporting entries
# Self-critique before committing to an answer
review = memory.reflect(
draft_answer="You should build the web dashboard first.",
question="What should we prioritize first?",
memory_query="user preferences priorities",
)
print(review["score"]) # 0-100
print(review["gaps"]) # weaknesses in the answer4. Agent-to-Agent (A2A) Memory Sharing
from logicmem.a2a import A2AClient
# Agent A: Share a memory with Agent B
a2a = A2AClient(api_key="lm_agent_a_key", agent_id="agent-researcher")
# Register this agent
a2a.register(name="Researcher Agent", agent_type="agent", client_id="team-alpha")
# Share context with another agent
a2a.share_memory(
target_agent_id="agent-executor",
memory={"text": "User needs Q3 report by Friday. High priority."},
category="task",
importance=9,
)
# Check for new shared memories from other agents
shared = a2a.sync()
for entry in shared:
print(f"From {entry['from_agent_id']}: {entry['text']}")5. Verify Audit Chain
from logicmem.audit import AuditChain
audit = AuditChain(memory) # pass LogicMem client
# Verify the audit chain has not been tampered with
result = audit.verify()
print(result["valid"]) # True if chain integrity is intact
# Log a correction (improves the model)
audit.log_correction(
original="The user prefers email for urgent messages.",
corrected="The user prefers Telegram for urgent messages, not email.",
reason="User explicitly stated Telegram in call on 2026-06-10.",
)
# Check DPO training pipeline stats
stats = audit.dpo_stats()
print(f"Correction pairs ready: {stats['ready_count']}")Architecture
┌──────────────────────────────────────────────────────────────┐
│ Your AI Agent │
│ (Claude, GPT, Any MCP Client) │
└──────────────────────────────────────────────────────────────┘
│ MCP
▼
┌──────────────────────────────────────────────────────────────┐
│ LogicMem MCP Server │
│ mcp.logicmem.io:8423 │
│ ┌────────────┐ ┌────────────┐ ┌────────────┐ ┌────────┐ │
│ │ Memory │ │ Reasoning │ │ A2A │ │ Audit │ │
│ │ Tools │ │ Engine │ │ Relay │ │ Chain │ │
│ └────────────┘ └────────────┘ └────────────┘ └────────┘ │
└──────────────────────────────────────────────────────────────┘
│
┌─────────────────┼─────────────────┐
▼ ▼ ▼
┌────────────┐ ┌────────────┐ ┌────────────┐
│ Memory │ │ Memory │ │ Audit │
│ Storage │ │ Index │ │ Ledger │
│(Supabase) │ │ (Qdrant) │ │(Hash Chain)│
└────────────┘ └────────────┘ └────────────┘MCP Protocol Reference
The server accepts JSON-RPC 2.0 requests over HTTPS.
Base URL: https://mcp.logicmem.io
Authentication: Authorization: Bearer <api_key> header.
Core Tools
Tool | Description |
| Store a new memory with category, importance, tags |
| Search memories with natural language |
| Get full context briefing for current session |
| Multi-step reasoning with memory consultation |
| Verify a claim against stored facts |
| Self-critique — evaluate draft against memory |
| Verify integrity of the audit chain |
| Share memory with another agent |
| Receive shared memory from another agent |
See MCP-PROTOCOL.md for the full protocol reference.
Comparison
Feature | LogicMem | Mem0 | Letta | Zep |
MCP-native | ✅ Full | ⚠️ | ✅ | ⚠️ |
Reasoning engine | ✅ | ❌ | ⚠️ | ❌ |
A2A memory sharing | ✅ | ❌ | ⚠️ | ❌ |
Immutable audit trail | ✅ | ❌ | ❌ | ⚠️ |
DPO training pipeline | ✅ | ❌ | ❌ | ❌ |
Voice agent memory | ✅ | ❌ | ⚠️ | ❌ |
Federated memory | ✅ | ❌ | ❌ | ❌ |
Security
Encryption: AES-256-GCM at rest, TLS 1.3 in transit
Compliance: CNSA 2.0 cryptography for defense/government workloads
Audit: Every operation logged to immutable hash-linked chain
API Keys: Per-agent keys with fine-grained permissions
See SECURITY.md for the full security model.
Documentation
All documentation lives in the docs/ folder right here in this repo:
Doc | What You Need |
Install + first 10 lines of code | |
Full protocol reference | |
Agent-to-agent memory | |
Encryption, CNSA 2.0, audit | |
All examples in one place |
Links
🌐 logicmem.io — Product
💬 Discord — Community
Contributing
Contributions welcome. Please see CONTRIBUTING.md.
We especially welcome:
MCP client examples (more clients → more adoption)
Framework integrations (LangChain, AutoGPT, CrewAI, etc.)
A2A protocol extensions
SDK implementations in other languages
License
MIT License. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CreedLab/logicmem-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server