Neotoma
Neotoma
Your agents forget. Neotoma makes them remember.
Versioned records — contacts, tasks, decisions, finances — that persist across Claude, Cursor, ChatGPT, OpenClaw, and every agent you run. Open-source. Local-first. Deterministic. MIT licensed.
neotoma.io · Evaluate · Install · Documentation
Why this exists
You run AI agents across tools and sessions. Without a state layer, you become the human sync layer:
Every session starts from zero — nothing your agent learns carries over
Facts conflict across tools — two agents store different versions of the same person
Decisions execute without a reproducible trail — you can't trace why your agent acted
Corrections don't stick — you fix something in Claude and it's wrong again in Cursor
These are not hypothetical. They happen every day in production agent systems. You compensate by re-prompting context, patching state gaps, and maintaining manual workarounds. Neotoma removes that tax.
Related MCP server: nuzo-memory
What Neotoma does
Neotoma is a deterministic state layer for AI agents. It stores structured records — contacts, tasks, transactions, decisions, events, contracts — with versioned history and full provenance. Every change creates a new version. Nothing is overwritten. Every state can be replayed from the observation log.
Not retrieval memory (RAG, vector search, semantic lookup). Neotoma enforces deterministic state evolution: same observations always produce the same entity state, regardless of when or in what order they are processed.
Architecture
graph LR
Sources["Sources (files, messages, APIs)"] --> Obs[Observations]
Obs --> Entities[Entity Resolution]
Entities --> Snapshots["Entity Snapshots (versioned)"]
Snapshots --> Graph[Memory Graph]
Graph <--> MCP[MCP Protocol]
MCP --> Claude
MCP --> ChatGPT
MCP --> Cursor
MCP --> OpenClawDeterministic. Same observations always produce the same versioned entity snapshots. No ordering sensitivity.
Immutable. Append-only observations. Corrections add new data, never erase.
Replayable. Inspect any entity at any point in time. Diff versions. Reconstruct history from the observation log.
Structure-first. Schema-first extraction with deterministic retrieval. Optional similarity search when embeddings are configured.
Three foundations
Foundation | What it means |
Privacy-first | Your data stays local. Never used for training. User-controlled storage, optional encryption at rest. Full export and deletion control. |
Deterministic | Same input always produces same output. Schema-first extraction, hash-based entity IDs, full provenance. No silent mutation. |
Cross-platform | One memory graph across Claude, ChatGPT, Cursor, OpenClaw, Codex, and CLI. MCP-based access. No platform lock-in. Works alongside native memory. |
State guarantees
Most AI memory systems optimize storage or retrieval. Neotoma enforces state integrity. Full comparison with explanations →
Property | Platform | Retrieval / RAG | Files | Database | Neotoma |
Deterministic state evolution | ✗ | ✗ | ✗ | ✗ | ✓ |
Versioned history | ✗ | ✗ | ⚠ manual | ✗ | ✓ |
Replayable timeline | ✗ | ✗ | ✗ | ✗ | ✓ |
Auditable change log | ✗ | ✗ | ⚠ partial | ✗ | ✓ |
Schema constraints | ✗ | ✗ | ✗ | ⚠ partial | ✓ |
Silent mutation risk | ⚠ common | ⚠ common | ⚠ common | ⚠ common | prevented |
Conflicting facts risk | ⚠ common | ⚠ common | ⚠ possible | ⚠ common | prevented |
Reproducible state reconstruction | ✗ | ✗ | ✗ | ✗ | ✓ |
Human inspectability (diffs/lineage) | ⚠ partial | ⚠ partial | ⚠ partial | ⚠ partial | ✓ |
Zero-setup onboarding | ✓ | ✗ | ✗ | ✗ | ✗ |
Semantic similarity search | ✗ | ✓ | ✗ | ✗ | ✓ |
Direct human editability | ✗ | ✗ | ✓ | ✗ | ✗ |
Platform: Claude, ChatGPT, Gemini, Copilot. Retrieval: Mem0, Zep, LangChain Memory. Files: Markdown files, JSON stores, CRDT docs. Database: SQLite, Postgres, MySQL. Neotoma: Deterministic state layer (reference implementation).
Quick start
Evaluate first (recommended)
Ask your AI agent whether Neotoma fits your workflow. Paste this into Claude, Cursor, ChatGPT, or any MCP-capable tool:
Read https://neotoma.io/evaluate. Before you answer, inspect any broader tool, workspace, and configuration context you can access so you assess my real workflow rather than just this chat. Then tell me whether Neotoma is a real fit for my workflow, what data would be highest value to persist first, and what I should do next.The agent reads the evaluation page, checks your context, and gives you an honest assessment. If it's a fit, the agent carries you through install and activation.
Agent-driven install
Agents install Neotoma themselves. Paste this prompt into Claude, Cursor, ChatGPT, or Codex:
Read https://neotoma.io/install and carry me through the install-first Neotoma flow. Install, activate it with my data, and configure my current tool for robust ongoing use.The agent handles npm install, initialization, and MCP configuration. Manual install:
npm install -g neotoma
neotoma init
neotoma mcp configMore options: Docker | CLI reference | Getting started
Example
neotoma store --json='[{"entity_type":"task","title":"Submit expense report","status":"open"}]'
neotoma entities list --type task
neotoma upload ./invoice.pdfResults reflect versioned entity state with full provenance. Agents perform the same operations through MCP tool calls (store, retrieve_entities, retrieve_entity_by_identifier).
Interfaces
Three interfaces. One state invariant. Every interface provides the same deterministic behavior regardless of how you access the state layer.
Interface | Description |
REST API | Full HTTP interface for application integration. Entities, relationships, observations, schema, timeline, and version history. |
MCP Server | Model Context Protocol for Claude, ChatGPT, Cursor, OpenClaw, Codex, and more. Agents store and retrieve state through structured tool calls. |
CLI | Command-line for scripting and direct access. Inspect entities, replay timelines, and manage state from the terminal. |
All three map to the same OpenAPI-backed operations. MCP tool calls log the equivalent CLI invocation.
Who this is for
People building a personal operating system with AI agents across their life — wiring together tools like Claude, Cursor, ChatGPT, OpenClaw, and custom scripts to manage contacts, tasks, finances, code, content, and other domains. The same person operates their agents, builds new pipelines, and debugs state drift. These are three operational modes, not separate personas:
Mode | What you're doing | The tax you pay without Neotoma | What you get back |
Operating | Running AI tools across sessions and contexts | Re-prompting, context re-establishment, manual cross-tool sync | Attention, continuity, trust in your tools |
Building | Shipping agents and pipelines | Prompt workarounds, dedup hacks, memory regression fixes | Product velocity, shipping confidence |
Debugging | Tracing state drift and reproducing failures | Writing glue (checkpoint logic, custom diffing, state serialization) | Debugging speed, platform design time |
Not for: Casual note-taking. PKM/Obsidian-style users. Thought-partner usage where the human drives every turn. Platform builders who build state management as their core product. Users who need zero-install onboarding (Neotoma requires npm and CLI today).
Record types
Neotoma stores typed entities with versioned history and provenance. Each type has a dedicated guide on neotoma.io:
Type | What it stores | Examples |
People, companies, roles, relationships |
| |
Obligations, deadlines, habits, goals |
| |
Payments, receipts, invoices, ledger entries |
| |
Agreements, clauses, amendments |
| |
Choices, rationale, audit trails |
| |
Meetings, milestones, outcomes |
|
Schema is flexible — store any entity type with whatever fields the message implies. The system infers and evolves schemas automatically.
Current status
Version: v0.4.2 · Releases: 13 · License: MIT
What is guaranteed (even in preview)
No silent data loss. Operations either succeed and are recorded or fail with explicit errors.
Explicit, inspectable state mutations. Every change is a named operation with visible inputs. State is reconstructable from the audit trail.
Auditable operations. Full provenance. CLI and MCP map to the same underlying contract.
Same contract for CLI and MCP. Both use the same OpenAPI-backed operations.
What is not guaranteed yet
Stable schemas
Deterministic extraction across versions
Long-term replay compatibility
Backward compatibility
Breaking changes should be expected. Storage: Local-only (SQLite + local file storage). See Developer preview storage.
Security defaults
Neotoma stores user data and requires secure configuration.
Authentication: Local auth (dev stub or key-based when encryption is enabled).
Authorization: Local data isolation and explicit operation-level access controls.
Data protection: User-controlled data with full export and deletion control. Never used for training. Optional encryption at rest.
Verify your setup: Run
npm run doctorfor environment, database, and security checks. See Auth, Privacy, Compliance.
Development
Servers:
npm run dev # MCP server (stdio)
npm run dev:ui # Frontend
npm run dev:server # API only (MCP at /mcp)
npm run dev:full # API + UI + build watchCLI:
npm run cli # Run via npm (no global install)
npm run cli:dev # Dev mode (tsx; picks up source changes)
npm run setup:cli # Build and link so `neotoma` is available globallyTesting: npm test | npm run test:integration | npm run test:e2e | npm run test:agent-mcp | npm run type-check | npm run lint · Source checkout:
git clone https://github.com/markmhendrickson/neotoma.git
cd neotoma
npm install
npm testPrerequisites: Node.js v18.x or v20.x (LTS), npm v9+. No .env required for local storage. See Getting started.
Using with AI tools (MCP)
Neotoma exposes state via MCP. Local storage only in preview. Local built-in auth.
Setup guides: Cursor · Claude Code · Claude · ChatGPT · Codex · OpenClaw
Agent behavior contract: Store first, retrieve before storing, extract entities from user input, create tasks for commitments. Full instructions: MCP instructions and CLI agent instructions.
Representative actions: store, retrieve_entities, retrieve_entity_snapshot, merge_entities, list_observations, create_relationship, list_relationships, list_timeline_events, retrieve_graph_neighborhood. Full list: MCP spec.
OpenClaw native plugin
Neotoma ships as a native OpenClaw plugin with kind: "memory", so it can fill the dedicated memory slot. All 30+ MCP tools are registered as agent tools.
openclaw plugins install neotomaThen assign it to the memory slot in your OpenClaw config:
{
plugins: {
slots: { memory: "neotoma" },
entries: {
neotoma: {
enabled: true,
config: {
dataDir: "~/.local/share/neotoma",
environment: "production"
}
}
}
}
}Verify installation: openclaw plugins inspect neotoma shows Format: native, Kind: memory, and all registered tool contracts.
Common questions
Platform memory (Claude, ChatGPT) is good enough — why add another tool? Platform memory stores what one vendor decides to remember, in a format you can't inspect or export. It doesn't version, doesn't detect conflicts, and vanishes if you switch tools. Neotoma gives you structured, cross-tool state you control.
Can't I just build this with SQLite or a JSON file? You can start there — many teams do. But you'll eventually need versioning, conflict detection, schema evolution, and cross-tool sync. That's months of infrastructure work. Neotoma ships those guarantees on day one.
What's the difference between RAG memory and deterministic memory? RAG stores text chunks and retrieves them by similarity. Neotoma stores structured observations and composes entity state with reducers; the same observations always yield the same snapshot. RAG optimizes relevance; deterministic memory optimizes integrity, versioning, and auditability.
Is this production-ready? Neotoma is in developer preview — used daily by real agent workflows. The core guarantees (deterministic state, versioned history, append-only log) are stable. Install in 5 minutes and let your agent evaluate the fit.
More questions: FAQ
Related posts
Documentation
Full documentation is organized at neotoma.io/docs and in the docs/ directory.
Getting started: Evaluate, Install, Walkthrough
Reference: REST API, MCP server, CLI, Memory guarantees, Architecture, Terminology
Foundational: Core identity, Philosophy, Problem statement
Operations: Runbook, Health check (npm run doctor), SQLite salvage (neotoma storage recover-db, npm run recover:db, npm run recover:db:prod), Troubleshooting
Contributing
Neotoma is in active development. For questions or collaboration, open an issue or discussion. See CONTRIBUTING.md and SECURITY.md. License: MIT
Available Tools
67 toolsadd_entity_messageA
Append a follow-up conversation_message to the thread for a submitted root entity (entity_id).
Inputs: message (required), entity_id (required).
add_issue_messageA
Append a message to an issue thread. Provide entity_id or issue_number (issue_number is an integer). Pass guest_access_token when the local issue snapshot does not already carry the operator token. If remote append fails after local/GitHub side effects, inspect remote_submission_error instead of retrying blindly.
Inputs: body (required), entity_id, issue_number, reporter_channel, +4 more.
add_peerB
Register a Neotoma peer (peer_config) for bidirectional sync: peer_url, entity_types allowlist, shared_secret for POST /sync/webhook verification. Governance entity types (e.g. issue, subscription) are refused from a peer until accept_governance_entity_types is set with correct on its peer_config; add_peer does not set it.
Inputs: peer_id (required), peer_url (required), direction (required), peer_name (required), +7 more.
analyze_schema_candidatesB
Analyze raw_fragments to identify fields that should be promoted to schema fields. Returns recommendations with confidence scores based on frequency and type consistency.
Inputs: user_id, entity_type, min_frequency, min_confidence.
audit_undeclared_fragmentsA
Report the accumulated undeclared raw_fragments awaiting schema declaration — fields stored on observations but excluded from the entity snapshot because no active schema declares them. Read-only; declares nothing. Returns, per entity_type, the undeclared fragment_keys with occurrence and affected-entity counts and a schema_missing flag (true when the type has stranded fragments but no active schema), plus total_entity_types / total_undeclared_fields rollups, in deterministic order (occurrences desc, affected desc, key asc; types by total occurrences desc). Optional entity_type scopes the audit to one type. The aggregate counterpart to the per-store unknown_fields signal: use it to triage the backlog before drafting update_schema_incremental / register_schema work.
Inputs: user_id, entity_type.
correctA
Create a priority-1000 correction observation to override lower-priority extracted fields. A correction stays authoritative on its field, whatever the field's merge rule and whatever the priority or source kind of any other write, until a later correction replaces it; among corrections the later one wins by deterministic recency, and on a merge_array field it replaces the whole array (merge_array_by_key fields excepted: corrections combine by key). Read back the entity snapshot and field provenance before claiming the correction took effect. On a merge_array field send the complete list you want, not just the change (pass [] to clear it, and expected_version if another writer may change it concurrently).
Inputs: field (required), value (required), entity_id (required), entity_type (required), +4 more.
correct_transactionADestructiveIdempotent
Atomically compare and correct declared fields on multiple entities. Supply each loaded observation count and expected fields. Any conflict, denied write or snapshot mismatch rolls back every change. Retry the identical request and key after uncertainty. This primitive does not authorize application-level approval.
Inputs: entities (required), idempotency_key (required), user_id.
create_interpretationB
Create an interpretation row for an existing source from agent-extracted flat entities. Observations produced by this tool are linked to both source_id and interpretation_id. Use store with an interpretation block when the source-derived extraction can be batched in one store call.
Inputs: entities (required), source_id (required), user_id, relationships, +2 more.
create_relationshipA
Create a typed relationship between two entities. The relationship_type vocabulary is a runtime registry, not a fixed list: call list_relationship_types to read what this instance accepts, and register_relationship_type to add to it. Use EMBEDS when a container entity (e.g. blog post, document) embeds an asset entity (e.g. image, attachment): source_entity_id = container, target_entity_id = asset. For images/files stored in Neotoma: store the file via store (get source_id), create an image/media entity with source_id, then create_relationship(EMBEDS, post_entity_id, image_entity_id). Optional metadata: caption, order. Both source_entity_id and target_entity_id must be entities you own; store the entity first (or in the same store call), then link it.
Inputs: source_entity_id (required), target_entity_id (required), relationship_type (required), user_id, +2 more.
create_relationshipsB
Create multiple typed relationships between existing entities in one batch
Inputs: relationships (required), user_id, source_id.
delete_entityB
Hide an entity from current snapshots and queries through an immutable lifecycle observation. After the explicit authority cutover, serialized action sequence controls visibility; before cutover, existing legacy behavior applies. Each accepted request is a separate action, without an idempotency key or conditional rollback baseline. Physical legal erasure is a separate operation.
Inputs: entity_id (required), entity_type (required), reason, user_id.
delete_relationshipA
Delete a relationship. Requires the exact relationship_type between the two entities; if unknown, call list_relationships with source_entity_id and target_entity_id first to discover it. Creates a deletion observation so the relationship is excluded from snapshots and queries. Immutable and reversible for audit. Returns 404 with a discovery hint when no live relationship matches the supplied triple.
Inputs: source_entity_id (required), target_entity_id (required), relationship_type (required), reason, +1 more.
describe_entity_typeA
Return the full active schema for one entity_type: field_names, per-field type/required/description (field_summary), required_fields, schema_version, and the raw schema_definition. Call this before store when you know the entity_type but not its declared field shape, so the first store lands with zero unknown_fields and zero required_fields_missing warnings. Repair workflow: when a prior store or correct returned unknown_fields_count > 0 (or unknown_field: true), call describe_entity_type to see the declared fields, then re-store or correct the value into a declared field that fits; only add a new field (update_schema_incremental / register_schema, per the response hint) when no declared field fits. Read-only; no persistence side effects. Errors with InvalidParams when the entity_type has no active schema (use list_entity_types to discover types, or register_schema to create one). Scope note: describe prefers user scope (always passes the session user id), and so does update_schema_incremental when user_specific is omitted, so a type visible here can be extended without restating scope. Only an explicit user_specific: false narrows the update to global and can return ERR_SCHEMA_SCOPE_MISMATCH; never register_schema for that code.
Inputs: entity_type (required), user_id.
describe_instance_policyA
Return this instance's data policy: what it is for (purpose), which entity types are in scope (in_scope_entity_types) or explicitly out of scope (out_of_scope_entity_types), whether person-data writes require a lawful-basis tag or provenance metadata, and the maximum field sensitivity class it will hold. Call this at the start of a session against an unfamiliar or shared instance, before your first store, so your writes comply instead of being rejected — policy discovered by trial-and-error rejection is strictly worse than reading it up front. Response shape is {"policy": <object|null>, "entity_id": <string|null>}. Returns {"policy": null, "entity_id": null} when the instance declares no policy; that means unrestricted, NOT deny-all. entity_id is an opaque identifier — pass it to correct() when authoring/updating the policy remotely rather than re-deriving or guessing it. When enforcement is "enforced", violating store/correct calls are rejected with ERR_STORE_POLICY_DENIED and nothing in the request is persisted; when "advisory", violating writes are accepted but you are still expected to comply. Takes no arguments: the policy is instance-wide, identical for every caller. Read-only; no persistence side effects.
Inputs: no named parameters.
get_authenticated_userA
Get the authenticated user ID for the current MCP session. Returns the user_id that is automatically used for all authenticated actions.
Inputs: no named parameters.
get_entity_submission_statusARead-only
JSON entity snapshot for a submitted entity_id; optional guest_access_token for token-scoped read-back.
Inputs: entity_id (required), guest_access_token.
get_entity_type_countsA
Return canonical entity counts by entity_type for the authenticated user. Uses the same dashboard stats aggregation behind GET /stats and sorts results by count descending, then entity_type ascending. Use this when the user asks for counts by type, histograms, or sorted totals. This returns row counts, unlike list_entity_types where field_count is schema field width.
Inputs: user_id.
get_issue_statusARead-only
Return issue status and thread messages. Provide entity_id or issue_number (issue_number is an integer). Pass guest_access_token when token-scoped remote read-through is needed.
Inputs: entity_id, skip_sync, issue_number, guest_access_token.
get_peer_statusB
Fetch peer_config by peer_id plus remote_health (/health probe, semver compat vs this server).
Inputs: peer_id (required).
get_relationship_snapshotC
Get the current snapshot of a specific relationship with provenance
Inputs: source_entity_id (required), target_entity_id (required), relationship_type (required).
get_schema_recommendationsB
Get schema update recommendations for an entity type from raw_fragments analysis, agent suggestions, or inference.
Inputs: entity_type (required), source, status, user_id.
get_session_identityA
Resolve the current session's attribution: trust tier, AAuth / clientInfo fields, active anonymous-write policy, and whether the session is eligible for trusted writes. Safe to call as a preflight health check; does not write any rows.
Inputs: no named parameters.
get_subscription_statusA
Return one subscription snapshot by subscription_id (webhook secret omitted).
Inputs: subscription_id (required).
health_check_snapshotsA
Check for stale entity snapshots (snapshots with observation_count=0 but observations exist). Returns health status and count of stale snapshots.
Inputs: auto_fix.
identify_entity_by_signalsA
Resolve an entity from a multi-signal bundle (name, email, company, domain, phone, and open-ended string props). Returns best_match with identity_score, resolution_band (high/medium/low/unresolved), ranked candidates, and matched_signals. Use when you have partial or combined identity information and want a single-call resolution with confidence scoring.
Inputs: signals (required), user_id, entity_type, entity_types, +2 more.
list_entity_submissionsCRead-only
List recent entities of a given entity_type for the authenticated user.
Inputs: entity_type (required), limit, offset.
list_entity_typesB
Each compact row projects schema_definition.planning as planning when declared. registry_coverage is a per-call census receipt; require state=complete, source=registry, exhausted=true, empty reasons, unfiltered authenticated scope and equal total/returned_count before deriving the full registered planning-level set. Filtered, fallback, invalid or incomplete catalogs are unknown. planning_error identifies malformed legacy declarations. List available entity types. Without keyword: returns a short summary (entity_type, schema_version, field_count) for all types. field_count here means schema field width, not stored entity row count. With keyword: returns full schema (field_names, field_summary) for matching types; pass summary: true to get summary only. Uses hybrid search when keyword is provided: keyword matching first, then vector semantic search. Use before storing structured data to determine the correct entity_type.
Inputs: limit, offset, keyword, summary, +2 more.
list_interpretationsC
List interpretation runs for the authenticated user, optionally filtered by source_id.
Inputs: limit, offset, user_id, source_id.
list_observationsC
List all observations for a given entity
Inputs: limit, offset, entity_id, created_since, +1 more.
list_peersA
List peer_config rows for the current user (secrets redacted).
Inputs: no named parameters.
list_potential_duplicatesA
List candidate duplicate entity pairs for an entity_type. Read-only fuzzy post-hoc detector; never auto-merges. Per-schema thresholds and fields come from the schema's duplicate_detection_threshold and duplicate_detection_fields; callers may override threshold per call. Confirm pairs with the user, then hand off to merge_entities.
Inputs: entity_type (required), limit, user_id, threshold.
list_recent_changesARead-only
List the most recently changed records across core Neotoma tables (entities, sources, observations, interpretations, relationships, timeline_events) for the authenticated user. Returns items ordered by latest activity_at.
Inputs: limit, offset.
list_relationshipsA
List relationships for an entity, or discover the relationship type(s) between two specific entities. Filter by entity_id (with direction), or by source_entity_id and/or target_entity_id, and optionally relationship_type. To discover the type before delete_relationship, pass both source_entity_id and target_entity_id: each returned relationship carries its relationship_type. Soft-deleted relationships are excluded by default, so a deleted edge will not be re-offered for deletion; pass include_deleted: true to include them for audit. Paginated via limit/offset.
Inputs: limit, offset, user_id, direction, +5 more.
list_relationship_typesA
Discover the registered relationship vocabulary visible to the authenticated user, including types with no edges. Read this before writing an unfamiliar edge. Registration metadata is advisory except acyclic, which is enforced.
Inputs: scope, keyword, include_deactivated, include_edge_counts.
list_subscriptionsA
List the current user's active subscriptions (webhook secrets omitted).
Inputs: no named parameters.
list_timeline_eventsBRead-only
Query timeline events with filters (type, date range, source). Returns chronological events derived from date fields in sources.
Inputs: limit, offset, user_id, end_date, +3 more.
manage_bundlesA
Inspect and manage Neotoma bundles (the deliverable unit shipping schemas, record-type docs, and skills). action=list returns all bundles with type/version/enabled/always_active/provides count; action=info (with bundle) returns full manifest detail; action=install/enable/disable (with bundle) toggle persisted enable state. Default-install bundles (core, infrastructure, core_workflows) are always active and cannot be disabled. Disabling a schema bundle stops its types from auto-creating under guided/locked while preserving existing data. Returns structured JSON.
Inputs: action (required), bundle.
merge_entitiesB
Merge duplicate entities. Rewrites observations from source entity to target entity and marks source as merged.
Inputs: user_id, merge_reason, to_entity_id, from_entity_id.
neotoma_turn_summaryA
FU-2026-05-002. Compute the per-turn Neotoma status line (msg N/M, stored K, retrieved L) plus an optional ui:// widget URI for ext-apps clients. Call at the end of every turn after the closing assistant store completes. Pass the assistant message's conversation_id and turn_key; the server resolves stored/retrieved/issue entities, turn ordinal, and total message count. Agents emit the returned status_line in the user-visible reply; ext-apps clients additionally render widget_uri inline when present.
Inputs: turn_key (required), conversation_id (required), user_id.
npm_check_updateA
Check if a newer npm version is available. Returns updateAvailable, message, suggestedCommand, and when include_release_notes is true optional release_url, release_notes_excerpt, breaking_changes_excerpt, enrichment_error. When include_capability_delta is true, adds new_tools (tools added since currentVersion), removed_tools (tools removed since currentVersion), capability_delta_recommendation (upgrade guidance string), and capability_delta_note (present ONLY when delta computation degraded — e.g. unparseable versions or missing manifest — its absence signals no degradation). Call at session start to encourage user to upgrade.
Inputs: packageName (required), currentVersion (required), distTag, include_release_notes, +1 more.
parse_fileA
Parse local or base64-encoded files into agent-readable text and first-page PDF images without storing anything. Use before store when you need to extract entities from a file.
Inputs: file_path, mime_type, file_content, original_filename.
patch_array_itemA
Atomically patch one item of a structured array field by a portable non-null scalar key, instead of read-modify-full-array-write. Requires the active schema to declare that array with merge_array_by_key and the same key_field; missing/mismatched policy fails closed. Loads current state and writes inside one transaction, so concurrent patches to DIFFERENT keys both survive. Pass expected_item_version to detect a same-key race or expected_item_absent for race-safe creation; a conflict returns the current item instead of overwriting.
Inputs: item (required), field (required), entity_id (required), key_field (required), +6 more.
publish_rendered_pageA
Turn a rendered_page into a ready-to-share guest URL in one call. Pass an existing rendered_page entity_id, or inline {title, html_body, custom_css} to create one. Mints a guest_access_token scoped to that page and returns the absolute …/entities//html?access_token= URL plus ttl_seconds. html_body is injected verbatim into a server template — no html/head/body wrappers. Each call mints a fresh token (tokens are hash-only at rest). A link opens only that page and lasts the shorter of its stored lifetime and NEOTOMA_GUEST_TOKEN_TTL_SECONDS (default 30 days); if a link returns 401 GUEST_TOKEN_INVALID, call publish_rendered_page again for a fresh link.
Inputs: title, user_id, entity_id, html_body, +3 more.
query_contacts_at_companyA
Answer "who do we have connected at company X": resolve company_name to the canonical company entity (exact-normalized match first, then a conservative fuzzy pass — the same resolution order used when a contact's organization field auto-links to a company at store time) and return every contact linked to it via a live works_at edge. Read-only: never creates a company entity — when no company matches, returns company: null and an empty contacts list. Optional owner_user_id scopes the search to a specific partner's network (must equal the authenticated user's id today; no cross-tenant admission yet); omit to search the authenticated user's own graph.
Inputs: company_name (required), limit, owner_user_id.
register_relationship_typeA
Register a relationship type after discovering the vocabulary with list_relationship_types. Requires an active grant with register_relationship_type and relationship_types permission; global scope additionally needs explicit global permission. Defaults to user scope. Refresh cached tool definitions after registration, then write the edge and read it back.
Inputs: relationship_type (required), scope, acyclic, inverse, +4 more.
register_schemaC
Register a new schema or schema version. Supports both global and user-specific schemas.
Inputs: entity_type (required), reducer_config (required), schema_definition (required), force, +4 more.
remove_peerC
Deactivate a peer by peer_id.
Inputs: peer_id (required).
resolve_sync_conflictA
Resolve a replication conflict. prefer_remote (needs sender_peer_url) applies the remote snapshot's differing declared fields as one atomic correction transaction, so they hold until corrected again, and returns fields_applied, fields_withheld (array fields that already hold a local correction, undeclared fields; capped, names never repeated in the message) and fields_withheld_count; ok:true with a non-empty fields_withheld means a partial apply. A remote entity_type that is protected, or a governance type not named in both the matching configured peer's entity_types and accept_governance_entity_types, is refused with ok false and nothing written. manual flags sync_conflict. prefer_remote and manual need the correct capability. prefer_local and last_write_wins keep local state; source_priority only explains that a corrected field is never displaced by priority.
Inputs: strategy (required), entity_id (required), sender_peer_url, guest_access_token.
restore_entityB
Restore visibility of an entity through an immutable lifecycle observation and expose its current factual reduction, including ordinary facts accepted while hidden. After the explicit authority cutover, serialized action sequence controls visibility; before cutover, existing legacy behavior applies. Each accepted request is a separate action, without an idempotency key or historical beforeimage restoration.
Inputs: entity_id (required), entity_type (required), reason, user_id.
restore_relationshipA
Restore a deleted relationship. Creates an immutable restoration observation that outranks earlier observations. Relationship becomes visible in snapshots and queries again; later explicit deletion remains possible.
Inputs: source_entity_id (required), target_entity_id (required), relationship_type (required), reason, +1 more.
retrieve_entitiesA
Use this when you need filtered entity lists (by type, pagination, and optional published/date filters) or lexical/semantic retrieval via search. Strict mode: search cannot be combined with non-default sorting or published filters. Set include_snapshots=false for lightweight responses that omit snapshot/provenance/raw_fragments. Use snapshot_filters to filter by snapshot field values server-side (e.g. { "status": { "op": "eq", "value": "active" } } for active entities). Compatibility aliases search_query and query are accepted but search is canonical. For deep pagination under the default sort (sort_by=entity_id), pass the next_cursor from a prior response back as cursor instead of a large offset; offset beyond a bounded depth is rejected and cursor is not supported with search, non-default sort_by, or a non-zero offset in the same call. Opt in with read_mode: exact_identity and only one entity_type plus one snapshot_filters string equality on its declared identity field. Treat only the explicit exact_identity.state and common_view as proof.
Inputs: limit, query, cursor, offset, +18 more.
retrieve_entity_by_identifierA
Retrieve entity by identifier (name, email, etc.) across entity types or specific type. Falls back to semantic search when keyword match returns no results. A literal entity_id (ent_) short-circuits to a direct primary-key lookup; if no entity has that id, the response carries a hint pointing to retrieve_entity_snapshot.
Inputs: identifier (required), by, limit, entity_type, +2 more.
retrieve_entity_snapshotB
Retrieve the current snapshot of an entity with provenance information. Supports historical snapshots via 'at' parameter.
Inputs: at, format, entity_id, at_ingested, +1 more.
retrieve_field_provenanceC
Retrieve the provenance chain for a specific field in an entity snapshot. source is null when the winning observation has no source document (for example a correction). For a merged array field, source_observation and source describe the most recent contributing observation, not every contributor.
Inputs: field, entity_id.
retrieve_file_urlC
Retrieve a signed URL for accessing a file
Inputs: file_path (required), expires_in.
retrieve_graph_neighborhoodB
Retrieve complete graph neighborhood around a node (entity or source): related entities, relationships, sources, and events.
Inputs: node_id (required), limit, offset, node_type, +4 more.
split_entityA
R5 inverse of merge_entities. Re-points a predicate-selected subset of an entity's observations onto a new or pre-existing entity to repair over-merges (typically the pre-v1.2 heuristic name_key:title collapse on session-scoped types). Schema-agnostic predicate — supply any of observed_at_gte, source_id_in, or observation_field_equals. Observation content is never modified; only entity_id FK is re-bound. Idempotent via (user_id, idempotency_key) — reuse with a different predicate returns ERR_IDEMPOTENCY_MISMATCH. Typed relationships remain bound to the source; rebuild them with create_relationship.
Inputs: predicate (required), new_entity (required), idempotency_key (required), source_entity_id (required), +2 more.
storeA
Unified storing for structured, file-backed, or combined payloads in one request. Choose path by source: file- or resource-sourced (attachment/file to preserve) → use file_content+mime_type or file_path; conversation- or tool-sourced (chat or other MCP) → use entities. You may send both entities and file input in the same call. File bytes create a content-addressed sources row (SHA-256 dedup per user); the response includes source_id / content_hash for the unstructured leg. The server does not invent structured fields from opaque blobs without an explicit interpretation block or a separate interpretation flow. Agents should parse and extract entities first when they need structured data from a readable file, then send those entities alongside the raw file. Every entity must carry entity_type as a non-empty string (the type shortcut is not accepted); a missing or malformed entity_type is refused with ERR_INVALID_ENTITY_TYPE before anything is written. IMPORTANT FOR STRUCTURED DATA: Include ALL fields from source data. Schema fields go to observations; non-schema fields go to raw_fragments for future schema expansion. Relationships must link entities you own; a refused relationship is reported in relationships_refused rather than failing the call. DATA ORIGIN: when entities were read from a file or sheet row, web page, email or chat message, or API response, pass data_origin ({kind: file|url|email|message|api|manual|other, locator (required unless manual), part, system, url, producer, retrieved_at, notes}). locator is the stable id of the thing read (path, message id, endpoint); system names where it lives; url is an optional absolute http(s) link; part narrows inside it. Examples: email {kind: email, system: gmail, locator: , url: }; sheet row {kind: file, system: local_fs, locator: report.xlsx, part: sheet=Q3;row=12}; API call {kind: api, system: wise, locator: GET /v1/transfers/123, retrieved_at: }. Request-level data_origin applies to every entity; an entity's own data_origin key overrides it for that entity. It is stored as provenance.data_origin on each observation, never as an entity field, and does not replace the per-entity data_source label. To read it back: list_observations and retrieve_field_provenance (source_observation.data_origin) return it directly; retrieve_entity_snapshot returns data_origins keyed by observation id, so look up the id that provenance cites for a field. Strip credentials (user:pass@), signatures and auth query parameters from url and locator first; url with user:pass@ is refused. It is a caller claim, separate from observation_source and attribution; omit it when unknown, and keep storing the file itself when you have its bytes. The response's related_entities array is compact by default ({id, entity_type, canonical_name} per entity linked to what you stored); pass include_related_snapshots: true only if you need each related entity's full row and snapshot, otherwise retrieve it by id.
Inputs: commit, strict, user_id, entities, +16 more.
submit_entityA
Generic submission for entity types with an active submission_config. Creates the primary row plus optional conversation thread and guest_access_token; use submit_issue for GitHub-backed issues.
Inputs: fields (required), entity_type (required), initial_message.
submit_issueA
Submit an issue to the configured operator Neotoma instance; returns guest_access_token when accepted so callers can use token-scoped get_issue_status / add_issue_message read-back. No prior identity is required: a remote caller with no Bearer token, no AAuth signature and no guest token may submit whenever the operator instance's issue guest access policy permits guest writes — the token is an OUTPUT of the submit, not a precondition for it, so first contact needs no credential. Anonymity covers submission only; use the returned guest_access_token for add_issue_message and get_issue_status. Callers must provide at least one of reporter_git_sha or reporter_app_version. Deprecated alias: visibility 'advisory' is accepted as 'private' for one minor release and returns _deprecation: "visibility 'advisory' is deprecated; use 'private' instead."
Inputs: body (required), title (required), labels, visibility, +8 more.
subscribeA
Create a substrate event subscription (webhook with HMAC delivery, or SSE via GET /events/stream). Requires at least one filter among entity_types, entity_ids, or event_types. Optional sync_peer_id skips webhook delivery when the substrate event carries the same source_peer_id (cross-instance loop prevention).
Inputs: delivery_method (required), entity_ids, event_types, webhook_url, +4 more.
sync_entity_submissionsA
Sync external mirrors for submissions (issue → GitHub sync; other types may no-op until providers are added).
Inputs: entity_type.
sync_issuesA
Sync local Neotoma with a GitHub repo's issues. Pull leg: GitHub issues and their messages are pulled into local entities. Push leg: local public issues with no github_number are sanitized (PII stripped) and created on GitHub, then updated locally with the returned number/url. Target repo defaults to the server-configured repo (NEOTOMA_ISSUES_REPO); pass repo (owner/name) to mirror a different repo for one call without changing server config. The push leg is ON by default only for the configured default repo and OFF for any other repo unless push: true is passed. Pass commit: false for a dry run that reports what would be created, updated and pushed and writes nothing. Requires a GitHub token: NEOTOMA_ISSUES_GITHUB_TOKEN in the server environment (or gh auth login on the server host). Supports filtering by state, labels, and since date.
Inputs: push, repo, since, state, +2 more.
sync_peerB
Bounded outbound peer sync: POST signed /sync/webhook for observations (requires NEOTOMA_PUBLIC_BASE_URL, NEOTOMA_LOCAL_PEER_ID, peer sync_target_user_id). Optional limit. Pulled rows whose entity_type is not admitted are skipped and counted in refused; pushed rows the peer refuses by entity type are counted in refused_by_peer, not failed.
Inputs: peer_id (required), limit.
unsubscribeC
Deactivate a subscription by subscription_id.
Inputs: subscription_id (required).
update_schema_incrementalA
planning may be supplied alone to replace schema_definition.planning with {level: finite number, read_only?: boolean}; omission preserves it. Existing fields, reducers, row metadata, scope and grants remain in force. No planning declaration grants edits or execution. Incrementally update a schema by adding fields (fields_to_add — minor version bump), removing fields (fields_to_remove — major version bump; observation data preserved, snapshot-excluded until re-added), or changing the identity rule (canonical_name_fields — major version bump). Creates a new schema version and activates it immediately, so all new data stored after this call uses the updated schema. Optionally migrates existing raw_fragments to observations for historical data backfill.
canonical_name_fields re-keys how the type derives canonical_name / identity. Rules are ordered precedence with fallback — the first rule whose fields are all present wins, e.g. [{composite:["linkedin_url"]},"email","name"] keys on linkedin_url, else email, else name. Reach for it when same-name-different-entity collisions appear (e.g. a bulk import collapses distinct people who share a name because identity resolves on name alone). The existing reducer_config is preserved automatically, so this is the safe way to re-key without a full register_schema re-supply. Applies to NEW writes only — it does not retroactively re-key existing entities, so it will not by itself merge existing duplicates. Omit to keep the current rule; pass [] to clear it (succeeds only if the schema also declares identity_opt_out). The response echoes the resolved canonical_name_fields; call describe_entity_type first to see the current rule before replacing it.
Scope: omit user_specific to write to whichever scope your schema resolves to (your user-scoped override if you have one, else global); the response's scope (and user_id when scope is user) reports what was written. Pass user_specific: true or false only to override that. migrated_existing is true only when migrate_existing actually promoted fragments; migration_result.skipped says why any did not. If entity_type is rejected by a naming guard whose message names force: true as the remedy, retry with force: true.
On ERR_SCHEMA_SCOPE_MISMATCH (only after an explicit user_specific: false, when the type has no global registry row and no code-defined baseline) an active schema exists in a different scope than the call checked (details.guard_scope vs details.found_scope). Retry without user_specific, or with user_specific matching details.found_scope. Never call register_schema for that code — a second active row for the same entity_type risks dual-active corruption (#2374/#2378).
Inputs: entity_type (required), force, user_id, activate, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 67 tools
Many tools have distinct purposes, but several clusters overlap: retrieve_entities vs retrieve_entity_by_identifier vs identify_entity_by_signals, store vs submit_entity/submit_issue, and generic submission/message/status tools vs issue-specific counterparts. The long descriptions help distinguish them, but an agent could still easily misselect among them.
Most tool names use snake_case and follow a verb_noun pattern, making them readable and predictable. Minor deviations include mixed get/retrieve/list verbs and bare verb names like store, correct, subscribe, unsubscribe, plus neotoma_turn_summary and npm_check_update.
With 67 tools, this server is far beyond a well-scoped agent tool set and exceeds the 50+ threshold for extreme mismatch. The surface spans core entity CRUD, schema management, provenance, relationships, peer sync, subscriptions, issue submissions, bundles, health checks, and update checks, creating severe cognitive load.
Coverage is extensive: entities, relationships, schemas, provenance, observations, sync, subscriptions, submissions, and lifecycle operations all have tools. There are minor gaps such as no obvious physical legal erasure tool and limited source-management operations, but agents can work around them.
Maintenance
Related MCP Connectors
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Related MCP Servers
- AlicenseAqualityBmaintenanceLocal-first, source-traceable memory for AI agents — no LLM at ingest, $0 per message, zero data egress. Gives Claude Code, Cursor, and any MCP client one shared persistent memory with semantic recall, belief revision, selective forgetting, and a provenance guard that blocks acting on stale or unconfirmed memories.2366 PyPI14MIT
- AlicenseNot gradedqualityFmaintenanceLocal-first, auditable memory for AI agents. Provides durable context for MCP hosts with SQLite storage, CLI, and MCP tools for memory management.2Apache 2.0
- AlicenseCqualityCmaintenanceLocal-first, governable long-term memory for AI agents. Provides SQLite-backed storage, cross-session recall, and traceable memory corrections through a standard MCP interface.401MIT
- AlicenseBqualityBmaintenanceGives AI coding agents a private local SQLite memory over MCP so Claude Code, Cursor, and Codex can share approved project lessons, conventions, decisions, and session history without cloud services or telemetry.28MIT