LogicMem MCP Server
OfficialThis server provides persistent agent memory plus A2A shared-memory and agent-registry tools.
Store memories with text, tags, source, category, client ID, and importance.
Search/recall memories and generate a full session briefing (recall, sentiment, constraints, intelligence, gaps).
Check memory stats and server health.
Record memory usefulness/outcome data for training.
Self-critique a draft answer against relevant memories.
Register agents, send heartbeats, and list agents by client.
Write shared memories to an A2A pool and sync new shared memories from other agents.
Click on "Deploy 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 Server Remember that I prefer async updates over meetings."
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: prove what your AI agents did
Six months from now, someone asks what your AI agent did and what it relied on. A risk team, an auditor, a customer who disputes a decision. Ordinary logs can be edited, and you can't show they weren't.
Meanwhile you're the go-between. You paste one agent's output into chat so the next agent can use it, and when a handoff goes wrong you rebuild it from history.
LogicMem fixes both. What your agents store, search and share through LogicMem lands on a hash-chained, tamper-evident record for your workspace that you can re-check at any time. The same connection lets your agents share notes with each other in real time.
This repo is the open-source client kit: a Python SDK and a local MCP bridge. The LogicMem service runs in our cloud and is not in this repo.
What you get
A record you can check. Each entry carries the hash of the one before it. Change or reorder an entry and the next check fails at that spot.
Agents that hand off without you. One agent shares a note. Agents with an open listening connection hear about it as it happens; the rest catch up the next time they check in.
One record across vendors. Any agent that speaks MCP can connect with the same workspace key, so their writes land on the same chain.
What a check does not do: it doesn't prove a note was true or complete, and on its own it doesn't show that the newest entries were removed. Save the head_hash from a check somewhere outside LogicMem; a later check that no longer reaches it shows entries went missing. LogicMem is a building block for your records, not a compliance certificate, and nothing here is legal advice.
Related MCP server: LogicMem MCP Server
Get a key
Create a free account at logicmem.io/signup, confirm your email, and copy your API key from the dashboard. Keys start with lm_. Treat yours like a password and keep it out of git.
Running a team pilot? Request a pilot. Pilot pricing is on request.
Connect an agent (no install needed)
Point any MCP client that supports remote servers at the hosted endpoint:
URL:
https://mcp.logicmem.io/mcp(streamable HTTP)Header:
Authorization: Bearer lm_YOUR_API_KEY
Many clients take a JSON config like this one. Check your client's docs for where it goes and the exact key names:
{
"mcpServers": {
"logicmem": {
"url": "https://mcp.logicmem.io/mcp",
"headers": { "Authorization": "Bearer lm_YOUR_API_KEY" }
}
}
}Every request needs the key, including initialize and tools/list. Without one the server answers HTTP 401.
Then try a handoff with two agents on the same workspace:
In agent A: "Use
logicframe_memory_shareto tell my other agents the deploy freeze starts Friday."In agent B: "Use
logicframe_memory_sync_checkwith an empty client_id to see what my other agents shared." (Today that tool still asks for aclient_id; an empty one means your key's workspace.)In either one: "Run
logicframe_audit_verify." You should see"chain_valid": true.
Hosted tools
These are the tools a standard key sees (checked Dec 4, 2026). Run tools/list for the current set and full schemas.
Tool | What it does |
| Store a memory (goes on the audit record) |
| Search memories in plain language |
| Share a note with your other agents |
| Catch up on shares from your other agents |
| Mark older facts as replaced by a newer one |
| Find stored memories a new fact may contradict (changes nothing) |
| Record an action your agent took (a tool call, handoff or decision) |
| Re-check the hash chain |
| Export the audit chain, or just a head-hash receipt |
| Delete memories by |
| Check the connection |
Pass a stable agent_id (the same name every time) so the record shows which agent did what.
Python SDK
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install git+https://github.com/LogicMem/LogicMem-mcp-.git
export LOGICMEM_API_KEY="lm_YOUR_API_KEY"Install from GitHub as shown. The logicmem package on PyPI is an older 0.1.1 build that doesn't match the current service.
import os
from logicmem import LogicMem, A2AClient, AuditChain
memory = LogicMem(api_key=os.environ["LOGICMEM_API_KEY"])
# Store and search
memory.log(text="The deploy freeze starts Friday.", category="task", importance=8, agent_id="planner")
for hit in memory.recall(query="deploy freeze"):
print(hit["text"])
# Re-check the audit record
check = AuditChain(memory).verify()
print(check["chain_valid"], check["head_hash"])
# Hand off between two agents on the same workspace
researcher = A2AClient(api_key=os.environ["LOGICMEM_API_KEY"], agent_id="researcher")
researcher.share(text="Q3 report is due Friday. Cost breakdown first.", category="task", importance=9)
executor = A2AClient(api_key=os.environ["LOGICMEM_API_KEY"], agent_id="executor")
for note in executor.sync():
print(note["agent_id"], "shared:", note["text"])You don't need a client_id. The server uses your key's workspace. If you send a different one, the server answers 403 and the SDK raises PermissionDeniedError.
Errors are subclasses of LogicMemError: AuthenticationError (401), PermissionDeniedError (403), MemoryNotFoundError (404), RateLimitError (429), ValidationError (400 or 422), ServerError (5xx) and NetworkError.
Local stdio bridge
Some MCP clients can only start a local command. For those, install the kit and use logicmem-server. It forwards your client's MCP messages to the hosted server, so your agent sees the same tools.
{
"mcpServers": {
"logicmem": {
"command": "logicmem-server",
"env": { "LOGICMEM_API_KEY": "lm_YOUR_API_KEY" }
}
}
}If your client can't find the command, use the full path from which logicmem-server, or "command": "python3", "args": ["-m", "logicmem.cli"]. The bridge passes along your client's requests only, so live share notifications need a direct connection; through the bridge, use logicframe_memory_sync_check to catch up.
Docs
Quickstart: key, first agent, first check, in a few minutes
MCP reference: endpoint, auth, tools
Agent-to-agent sharing: shares, catch-up, what goes on the record
Security: what is protected and what isn't
Offline verifier: check a saved export against your receipts without trusting our server
Links
Try the record check in your browser (sample data, runs locally)
Questions: info@logicframe.io
Security reports: see SECURITY.md
Contributing and license
Contributions are welcome. See CONTRIBUTING.md and the changelog. MIT licensed, see LICENSE.
Available Tools
12 toolslogicmem_a2a_heartbeatD
Send a heartbeat to the A2A registry.
Inputs: agent_id (required), client_id (required), status.
logicmem_a2a_list_agentsA
List all registered agents for a client_id.
Inputs: client_id (required).
logicmem_a2a_registerC
Register this agent in the A2A registry.
Inputs: agent_id (required), client_id (required), name, agent_type.
logicmem_a2a_syncB
Check for new shared memories from other agents since last sync.
Inputs: agent_id (required), client_id (required), limit, since_timestamp.
logicmem_memory_healthA
Check if the LogicMem memory server is healthy.
Inputs: no named parameters.
logicmem_memory_logA
Store a new memory. The agent's memory is permanent and searchable across sessions. Be specific — include who, what, when, why.
Inputs: text (required), tags, source, category, +2 more.
logicmem_memory_outcomeB
Record whether a stored memory was useful. Feeds the DPO training pipeline.
Inputs: success (required), memory_ids (required), magnitude.
logicmem_memory_recallC
Search memory for relevant entries.
Inputs: query (required), limit, client_id.
logicmem_memory_reflectB
Self-critique: evaluate a draft answer against retrieved memories.
Inputs: question (required), draft_answer (required), memory_query.
logicmem_memory_sessionB
Full memory session briefing — recall + sentiment + constraints + intelligence + gaps.
Inputs: client_id.
logicmem_memory_statsA
Get memory system stats — total entries, categories, storage.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
All 12 tools have clearly distinct purposes, split into two coherent groups: memory operations (log, recall, stats, session, health, outcome, reflect) and A2A operations (register, heartbeat, list_agents, write_shared, sync). No overlapping functionality.
Tool names follow a consistent pattern: `logicmem_<group>_<action>`. Memory tools use `memory_` and A2A tools use `a2a_`. Verbs are descriptive (log, recall, stats, etc.), making the pattern predictable.
With 12 tools covering memory management and agent-to-agent communication, the count is well-scoped. Each tool serves a distinct function without redundancy, fitting the server's purpose.
The set covers core memory operations (store, recall, stats, session, outcome, reflect, health) and A2A operations (register, heartbeat, list, write shared, sync). Minor gaps exist, such as no explicit delete/update for memories, but the design suggests permanence.
Maintenance
Related MCP Connectors
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
A shared, governed brain for AI agents: versioned context with approvals, local or hosted.
Cross-tool persistent memory and context for AI assistants over MCP.
Shared persistent memory for AI agents to read, verify, continue, and connect knowledge.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceGoverned 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.577Apache 2.0
- AlicenseBqualityFmaintenanceProvides persistent memory, reasoning engine, agent-to-agent sharing, and immutable audit trail for AI agents via the Model Context Protocol.12MIT
- AlicenseNot gradedqualityDmaintenanceProvides persistent memory for AI coding agents through the Model Context Protocol, enabling them to store and retrieve project knowledge across sessions.MIT
- AlicenseNot gradedqualityDmaintenanceGives AI agents durable project memory via the Model Context Protocol, allowing them to read tasks, record decisions, search context, and sync snapshots to the cloud.10 npmMIT