LogicMem MCP Server
Integrates with Hermes (an OpenClaw agent) to provide persistent memory, A2A sharing, and reasoning capabilities, configured via direct URL or local stdio 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: Memclaw
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
Open Core Model
This repo is the LogicMem SDK ā the open-source client for connecting AI agents to the LogicMem memory fabric. The SDK is fully open (MIT licensed). The reasoning engine and audit chain run on LogicMem's private server.
Open Source (This Repo) | LogicMem Pro / Enterprise | |
SDK / Client | ā Fully open (MIT) | ā Included |
Persistent Memory | ā Up to 1,000 ops/mo (free tier) | ā Unlimited |
A2A Memory Sharing | ā Basic | ā Advanced governance + cross-org |
Reasoning Engine | ā API call (server-powered) | ā Deep / Exhaustive modes |
Audit Trail | ā API call (server-verified) | ā Tamper-evident ledger + CNSA 2.0 |
Voice Agent Memory | ā | ā |
Deployment | Cloud (logicmem.io) | Cloud, on-prem, or air-gap |
Support | Community | Dedicated + SLA |
Why this model? The SDK gives developers the steering wheel. The LogicMem server is the engine. You get a great developer experience ā and your AI gets production-grade memory infrastructure without building it yourself.
Install
# Install the Python SDK (library only)
pip install --break-system-packages git+https://github.com/LogicMem/LogicMem-mcp-.git
# Install with CLI tools (includes logicmem-server for OpenClaw MCP):
pip install --break-system-packages "logicmem[cli] @ git+https://github.com/LogicMem/LogicMem-mcp-.git"
# Linux/Ubuntu (no flag needed):
pip install "logicmem[cli] @ git+https://github.com/LogicMem/LogicMem-mcp-.git"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.
ā ļø macOS users: If you see a
PEP 668error during install, rerun with--break-system-packagesflag (see Install section above).
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 ā
ā āāāāāāāāāāāāāā āāāāāāāāāāāāāā āāāāāāāāāāāāāā āāāāāāāāāā ā
ā ā Memory ā ā Reasoning ā ā A2A ā ā Audit ā ā
ā ā Tools ā ā Engine ā ā Relay ā ā Chain ā ā
ā āāāāāāāāāāāāāā āāāāāāāāāāāāāā āāāāāāāāāāāāāā āāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāā
ā¼ ā¼ ā¼
āāāāāāāāāāāāāā āāāāāāāāāāāāāā āāāāāāāāāāāāāā
ā Memory ā ā Memory ā ā Audit ā
ā Storage ā ā Index ā ā Ledger ā
ā(Supabase) ā ā (Qdrant) ā ā(Hash Chain)ā
āāāāāāāāāāāāāā āāāāāāāāāāāāāā āāāāāāāāāāāāāāOpenClaw Integration
OpenClaw is the fastest-growing open-source AI agent framework (300K+ GitHub stars). LogicMem is fully compatible with OpenClaw.
Option A ā Direct MCP Server URL (Simplest, 1 line of config)
Add LogicMem as a streamable-http MCP server in your OpenClaw config (~/.openclaw/openclaw.json):
{
"mcp": {
"servers": {
"logicmem": {
"transport": "streamable-http",
"url": "https://mcp.logicmem.io/mcp",
"headers": {
"Authorization": "Bearer lm_YOUR_API_KEY"
}
}
}
}
}Note: The
streamable-httptransport is the modern MCP standard (2024-11-05). The server atmcp.logicmem.iosupports bothstreamable-httpand legacysse.
Option B ā Local stdio Server (For power users with multiple MCP servers)
Some OpenClaw users have multiple MCP servers configured ā a mix of stdio (local programs) and HTTP/SSE (remote servers). OpenClaw has a known limitation where it can't freely mix stdio and SSE servers in the same config.
The fix: Use our local stdio server as a bridge. Install it via pip:
pip install --break-system-packages \
"logicmem[cli] @ git+https://github.com/LogicMem/LogicMem-mcp-.git"Then configure OpenClaw to use the local stdio command:
{
"mcp": {
"servers": {
"logicmem": {
"command": "logicmem-server",
"env": {
"LOGICMEM_API_KEY": "lm_YOUR_API_KEY",
"LOGICMEM_CLIENT_ID": "your-client-id"
}
}
}
}
}This approach:
Works alongside any other MCP server (stdio or HTTP)
No SSE/stdio mixing conflict
Installs in seconds via pip
Quick Test ā Verify Your Setup
After configuring, test that LogicMem is connected:
# Check if the MCP server is recognized
openclaw mcp list
# Or test directly in a conversation with your agent:
# "What is my name?" (should recall from memory if previously stored)For Specific OpenClaw Agents
Agent | Recommended Setup | Config Type |
Themis (any OpenClaw agent) | Direct URL |
|
Hermes | Direct URL or stdio pip | Same as above |
Claude Code | Direct URL |
|
Custom OpenClaw agents | Direct URL | Same as above |
Environment Variables
Variable | Default | Description |
| ā | Your API key ( |
|
| Point to self-hosted server if using logicmem-open |
|
| Default client_id for memory operations |
|
| HTTP request timeout in seconds |
MCP Protocol Reference
The server accepts JSON-RPC 2.0 requests over HTTPS.
MCP Endpoint: https://mcp.logicmem.io/mcp
REST API Base URL: https://api.logicmem.io
Authentication: Authorization: Bearer <api_key> header required for write operations.
ā ļø Tool name prefix: The MCP server at
mcp.logicmem.ioserveslogicframe_*tool names (e.g.logicframe_memory_log,logicframe_memory_recall). The local pip package (logicmem[cli]) serveslogicmem_*tool names. Both connect to the same backend.
Core Tools (via MCP server at mcp.logicmem.io)
Tool | Description |
| Store a new memory with category, importance, tags |
| Search memories with natural language |
| Get full context about a client, project, or situation |
| Multi-step reasoning with memory consultation |
| Verify a claim against stored facts |
| Self-critique ā evaluate draft against memory |
| Verify integrity of the audit chain |
| Proactive intelligence ā detect patterns and overdue items |
| Log corrections ā feeds DPO training pipeline |
| Store conversation state for auto-resume |
| Retrieve stored conversation for continuity |
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
š§ support@logicmem.io
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.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides AI assistants with persistent graph database memory using Neo4j, enabling task management, relationship understanding, semantic search with embeddings, file indexing, and multi-agent coordination through the Model Context Protocol.Last updated27276MIT
- Alicense-qualityBmaintenanceGoverned shared memory platform for AI agents and agent fleets. Provides persistent memory, cross-agent knowledge sharing, permissions, audit trails, and multi-tenant isolation through a Model Context Protocol (MCP) server.Last updated18380Apache 2.0

LogicMem MCP Serverofficial
AlicenseBqualityBmaintenanceProvides persistent memory, reasoning, agent-to-agent sharing, and immutable audit trail for AI agents via the Model Context Protocol.Last updated121MIT- Alicense-qualityDmaintenanceProvides persistent memory for AI coding agents through the Model Context Protocol, enabling them to store and retrieve project knowledge across sessions.Last updated89MIT
Related MCP Connectors
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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