Memories With LessonsSAFE
I enhance the existing memory mcp server from the official mcp github, so big thanks and credits for creating this
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@T1nker-1220/memories-with-lessons-mcp-server)
A basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats and learn from past errors through a lesson system.
Core Concepts
Entities
Entities are the primary nodes in the knowledge graph. Each entity has:
- A unique name (identifier)
- An entity type (e.g., "person", "organization", "event")
- A list of observations
Example:
{
"name": "John_Smith",
"entityType": "person",
"observations": ["Speaks fluent Spanish"]
}Relations
Relations define directed connections between entities. They are always stored in active voice and describe how entities interact or relate to each other.
Example:
{
"from": "John_Smith",
"to": "Anthropic",
"relationType": "works_at"
}Observations
Observations are discrete pieces of information about an entity. They are:
- Stored as strings
- Attached to specific entities
- Can be added or removed independently
- Should be atomic (one fact per observation)
Example:
{
"entityName": "John_Smith",
"observations": [
"Speaks fluent Spanish",
"Graduated in 2019",
"Prefers morning meetings"
]
}Lessons
Lessons are special entities that capture knowledge about errors and their solutions. Each lesson has:
- A unique name (identifier)
- Error pattern information (type, message, context)
- Solution steps and verification
- Success rate tracking
- Environmental context
- Metadata (severity, timestamps, frequency)
Example:
{
"name": "NPM_VERSION_MISMATCH_01",
"entityType": "lesson",
"observ7992a63e791bOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add server-memory -- npx -y @modelcontextprotocol/[email protected]
{
"mcpServers": {
"server-memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/[email protected]"
]
}
}
}Exposed tools (13)
5 read · 5 write · 3 destructive. Blast radius: 3 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
add_observations | write | Add new observations to existing entities in the knowledge graph |
create_entities | write | Create multiple new entities in the knowledge graph |
create_lesson | write | Create a new lesson from an error and its solution |
create_relations | write | Create multiple new relations between entities in the knowledge graph. Relations should be in active voice |
delete_entities | destructive | Delete multiple entities and their associated relations from the knowledge graph |
delete_observations | destructive | Delete specific observations from entities in the knowledge graph |
delete_relations | destructive | Delete multiple relations from the knowledge graph |
find_similar_errors | read | Find similar errors and their solutions in the knowledge graph |
get_lesson_recommendations | read | Get relevant lessons based on the current context |
open_nodes | read | Open specific nodes in the knowledge graph by their names |
read_graph | read | Read the entire knowledge graph |
search_nodes | read | Search for nodes in the knowledge graph based on a query |
update_lesson_success | write | Update the success rate of a lesson after applying its solution |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
delete_entities, delete_observations, delete_relations
.what-is-this.md
@types/node, shx, typescript
Gates applied: no_behavioural_pass.
7992a63e791bfull audit observations/trust-audit/mcp-server/t1nker-1220__memories-with-lessons.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 7992a63e791b | SAFE | B | 89 | first audit |
Questions
What is the Memories With Lessons MCP server?
I enhance the existing memory mcp server from the official mcp github, so big thanks and credits for creating this
What tools does Memories With Lessons expose?
13 in total: 5 read-only, 5 that write, and 3 that can delete or overwrite (delete_entities, delete_observations, delete_relations). Every one is listed on this page with its risk.
Is Memories With Lessons safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 3 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Memories With Lessons need?
No credential environment variables were found in its source, so it appears to need none.
How does Memories With Lessons run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @modelcontextprotocol/server-memory at 0.6.3.
How current is this page?
The grade is for one exact copy of the source (7992a63e791b), read on 2026-10-08. The repository is watched and re-audited when it changes.