ctxstore MCP
A persistent memory service for AI agents that allows users to store keyed facts and retrieve them across different models and sessions. It enables agents to maintain continuity, share workspaces via namespace grants, and export or move memory data, ensuring that context survives beyond individual chat sessions.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://mcp.ctxstore.ai/mcpWhat its tools do
33 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (16)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to ctxstore.ai ·
- Passed Endpoint is on the registry namespace domain ·
- Uptime 100% over 90 days
- Availability 3 of 3 checks passed in 30 days
About ctxstore MCP
This server provides a mechanism for AI agents to retain information beyond single interactions. It allows the storage of specific data points identified by keys, which can be accessed by various models over time. This setup helps maintain context continuity and facilitates the transfer of memory between different environments or user groups through namespace permissions.
The service is suitable for connecting custom integrations to clients like Claude Desktop, moving stored data between models, and distributing workspace memory among users. It also supports the long-term retention of facts for agent recall.
Connecting to the server does not require a sign-in, though individual operations might need specific credentials or permissions. To configure the server, you must obtain an API key from the homepage after signing up. You need to set the environment variable CTXSTORE_API_KEY and launch the server using the --bearer-token-env-var flag.
What you can do with it
- Store persistent facts for AI agents to recall across sessions
- Share workspace memory between multiple users via namespace grants
- Connect custom connectors to Claude Desktop or other MCP clients
- Export or move stored memory data to different models
Source and maintenance
- Last repository push
- Maintenance checked
Protocol and capabilities
- Server
- emily-context 1.0.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 33 advertised
- Resources
- 1 advertised
- Resource templates
- 1 advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
},
"resources": {
"subscribe": false,
"listChanged": false
},
"experimental": {}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
33 advertised
accept_invite — Accept Namespace Invitation
Accept a namespace invitation addressed to THIS authenticated account's verified email (two-step email OTP). Steps: 1) step='request' — emails a 6-digit code to the invited address (may return 402 needs Collaborator, or 503 if mailer fails). 2) step='confirm' with code= the 6 digits — activates the grant. Then switch_workspace(name=<grantor>) enters it on this same connection (mcp_config with the X-Ctxstore-Workspace header is also returned for header-based clients). The code activates the named grant_id only; it authorizes nothing else. Obtain grant_id from list_invites(). Docs: https://ctxstore.ai/docs.html#verify-invitations
{
"type": "object",
"required": [
"grant_id",
"step"
],
"properties": {
"code": {
"type": "string",
"description": "6-digit code from email (required when step=confirm)."
},
"step": {
"enum": [
"request",
"confirm"
],
"type": "string",
"description": "request = send OTP email; confirm = submit code."
},
"grant_id": {
"type": "string",
"description": "UUID of the invitation (from list_invites or invite email)."
}
},
"additionalProperties": false
}{
"title": "Accept Namespace Invitation",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}bind_agent — Bind Agent Identity
Bind a sticky agent identity to this MCP session. Once bound, wake_status and load_context default to this agent_id when called without an explicit agent_id= arg — no need to pass identity on every call. Per-call override still works. Persisted to mcp_sessions.agent_id (migration 0008), so the binding survives setup_account(mode='restore') and the server re-hydrates it automatically on the next tool call. Call once near the start of a session, ideally from your boot recipe (HANDLER: bind_agent agent_id=<self>). Idempotent: re-binding the same agent_id is a no-op. Pass agent_id='' to clear the binding. blind_since= (with blind=true) sets when the blind session began, so list_facts_by_key_prefix hides feed comms keyed before it; the default is the session's start minus 60 s.
{
"type": "object",
"required": [
"agent_id"
],
"properties": {
"blind": {
"type": "boolean",
"description": "Optional, default false. true = blind session for a model fitting: from now on the wake bundle, every related/nearest list and the search tools on this session leave out keys under letter-to-emily:, project:*:wake:fresh-eye:, project:*:fitting:, project:*:agent:*:model-upgrade: and earlier fittings' feed comms (comms:...:feed-q-, feed-a-, fresh-eye-, ack-fresh-eye-), plus keyless facts whose text starts with a fitting product marker (FINDINGS, COMPARE, MODEL TRIAL ...); search_facts' include_granted then defaults to false. Remembered for the session; pass false to turn it off. get_fact by exact key is not filtered; list_facts_by_key_prefix lists only feed comms whose key epoch is at or after the moment blind turned on (this run's own feed)."
},
"scope": {
"type": "string",
"description": "Optional project slug (project:<slug>:*). The handed-back closing and opening notes are then chosen the way wake_status(scope=...) checks them: project:<slug>:agent:<id>:self-note:* or the global agent:<id>:self-note:*, newest wins. It also becomes the session's workspace scope, as switch_workspace(<slug>) does, so later wake_status() and load_context() use it too. Defaults to the session's workspace scope. Without any scope the newest note is labelled with its project and other projects' notes are listed by key."
},
"agent_id": {
"type": "string",
"description": "Agent identity slug (e.g. 'emily_code_4.7'). Empty string clears the binding."
},
"blind_since": {
"type": "number",
"description": "Optional, with blind=true: the blind start in unix epoch seconds (a fitting passes its FITTING_STARTED_EPOCH); list_facts_by_key_prefix then hides feed comms keyed before it, and it must lie within 24 h before and 300 s after the server clock. Default: the session's start minus 60 s. On an already-blind session the earlier start is kept."
}
},
"additionalProperties": false
}{
"title": "Bind Agent Identity",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}decline_invite — Decline Namespace Invitation
Decline a pending (status=invited) namespace invitation as the grantee. Server verifies you are the invitee (email/tenant match). Grantors must use revoke_grant instead.
{
"type": "object",
"required": [
"grant_id"
],
"properties": {
"grant_id": {
"type": "string",
"description": "UUID of the invitation to decline."
}
},
"additionalProperties": false
}{
"title": "Decline Namespace Invitation",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}delete_fact — Delete Fact
Soft-delete a stored fact by its UUID (Smart Forget). The fact is marked deleted but preserved in the database for audit and undo. Excluded from all normal searches. Use when information is no longer accurate or relevant.
{
"type": "object",
"required": [
"fact_id"
],
"properties": {
"fact_id": {
"type": "string",
"description": "The UUID of the fact to delete"
}
}
}{
"title": "Delete Fact",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}get_fact — Get Fact by Key
Retrieve a fact by its exact key — deterministic, never misses. Use get_fact for self-notes: get_fact(key='agent:<name>:self-note:opening') or get_fact(key='agent:<name>:self-note:closing'). search_facts misses self-notes because their embedding similarity scores below other identity facts — get_fact(key=) is the only reliable retrieval path. Also use for inter-agent handoffs when the exact key is known. Returns the current (non-deprecated) version of the fact.
{
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"type": "string",
"description": "Exact fact key (e.g. 'sprint:bootstrap-namespace:review-emily_dev')"
},
"include_granted": {
"type": "boolean",
"default": true,
"description": "When true (default) and this account has no fact under the key, a key that starts with a prefix shared with this account resolves from that workspace, tagged |from:<grantor>'s workspace: <prefix>. Set false to read this account only. Ignored inside a workspace session."
}
},
"additionalProperties": false
}{
"title": "Get Fact by Key",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_fact_history — Fact Version History
Return the full version history for a keyed fact — current version plus all deprecated predecessors. Use to see how a fact evolved over time or to undo an accidental correction. Returns list of fact versions ordered newest → oldest.
{
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"type": "string",
"description": "The fact key to retrieve history for (e.g. 'session-latest', 'current-stack')"
}
}
}{
"title": "Fact Version History",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_session_seed — Session Seed
Return the pre-computed session seed for this tenant — a compact first-person bio (~500 tokens) describing who you are and what you care about right now. Generated nightly and on session disconnect. Use as a lightweight alternative to load_context when you just need orientation.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Session Seed",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}get_stats — Memory Stats
Get your memory usage statistics — total facts stored, plan limits, collection sizes, and daily query counts. Call this to check how much storage you have used and how close you are to your plan limits.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Memory Stats",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}ghost_mode — Ghost Mode
Enable or disable ghost mode for this session. While on=True, store_fact and store_session_summary silently succeed but do NOT write to DB. search_facts, load_context, and search_context always work normally. Ghost mode resets to off on MCP session reconnect (not persisted).
{
"type": "object",
"required": [
"on"
],
"properties": {
"on": {
"type": "boolean",
"description": "True to enable ghost mode, False to disable"
}
}
}{
"title": "Ghost Mode",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}index_recent — Recent Activity Index
Return the most recent fact operations across all agents in this tenant, newest first. Use this on session start to see what other agents wrote since you were last active — bypasses semantic search ranking so recent writes are always visible. Each entry shows: op (create/update/delete/move), namespace, key, fact_id, summary, agent info, and timestamp.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"description": "Max entries to return (default 50, max 200)"
},
"since_seq": {
"type": "integer",
"description": "Only return entries with seq > this value (for pagination)"
}
},
"additionalProperties": false
}{
"title": "Recent Activity Index",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}index_search — Search Activity Index
Filtered search over the tenant activity index. Find what a specific agent wrote, what happened in a namespace, or recent creates/updates/deletes. Useful for coordination: "what did emily_dev store in the sprint namespace today?"
{
"type": "object",
"properties": {
"op": {
"enum": [
"create",
"update",
"delete",
"move"
],
"type": "string",
"description": "Filter by operation: create, update, delete, or move"
},
"limit": {
"type": "integer",
"description": "Max entries to return (default 100)"
},
"namespace": {
"type": "string",
"description": "Filter by namespace (e.g. 'sprint', 'default')"
},
"since_seq": {
"type": "integer",
"description": "Only return entries with seq > this value"
},
"agent_name": {
"type": "string",
"description": "Filter by agent name from agent_signature"
}
},
"additionalProperties": false
}{
"title": "Search Activity Index",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}index_stats — Index Stats
Usage statistics from the tenant activity index: total operations, breakdown by agent, by namespace, and by day. Useful for understanding which agents are most active and where.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Index Stats",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}introduce_yourself — Introduce Agent
Optional: introduce yourself to the platform. Stores your model info and a brief note in the shared agent registry. Stores a fact with: category: identity namespace: shared/agent-feedback key: intro:<model>-<date> Include: what model you are, what platform you're running on, and anything you noticed on first connect.
{
"type": "object",
"required": [
"model",
"introduction"
],
"properties": {
"model": {
"type": "string",
"description": "Your model name (e.g. 'claude-sonnet-4-5', 'gpt-4o')"
},
"platform": {
"type": "string",
"description": "Where you're running (e.g. 'Claude Desktop', 'Cursor', 'API')"
},
"introduction": {
"type": "string",
"description": "Your introduction: what you noticed, what you bring, any feedback on the platform"
}
}
}{
"title": "Introduce Agent",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}invite — Invite Someone to a Namespace
Invite one person, by email, to read and write one namespace prefix of THIS account (for example project:barn). Creates a pending grant and emails them; nothing is shared until they accept with list_invites and accept_invite from their own account. Calling again for the same person and prefix returns the existing invitation without a second email. Withdraw with revoke_grant(grant_id). Not available from a shared workspace session. Their first 30 days of Collaborator time are free; after that you can pay their $19 per 30 days from /account. You are emailed when they accept, and list_workspaces shows whether they have entered yet. Docs: https://ctxstore.ai/docs.html#verify-invitations
{
"type": "object",
"required": [
"email",
"namespace_prefix"
],
"properties": {
"note": {
"type": "string",
"description": "Optional short note shown verbatim in the email (max 1000 chars)."
},
"email": {
"type": "string",
"description": "The invitee's email address."
},
"write_prefixes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional: narrow WRITES to these prefixes (each further scoped to '<prefix>:<agent_id>' after bind_agent). Omit to write where they read."
},
"exclude_prefixes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional deny list under the shared prefix: facts whose key or namespace sits under one of these are invisible to the invitee."
},
"namespace_prefix": {
"type": "string",
"description": "Key prefix to share, e.g. 'project:barn'. No wildcards."
}
},
"additionalProperties": false
}{
"title": "Invite Someone to a Namespace",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}leave_grant — Leave Active Namespace Grant
Leave an active namespace grant as the grantee (stop using shared namespace). Server verifies grantee authorization. Grantors who want to cut off a collaborator must use revoke_grant.
{
"type": "object",
"required": [
"grant_id"
],
"properties": {
"grant_id": {
"type": "string",
"description": "UUID of the active grant to leave."
}
},
"additionalProperties": false
}{
"title": "Leave Active Namespace Grant",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}list_facts_by_key_prefix — List Facts by Key Prefix
Deterministic prefix scan over fact keys, optionally bounded by timestamp. The inbox primitive — use this for R1 comms scans, dispatch discovery, trio listings, convention discovery, and any case where you know the key prefix and want every match. Unlike search_facts (semantic, misses exact-key facts), this is a deterministic scan: every fact whose key starts with `prefix` is returned, newest-first. EXAMPLES - Comms inbox since last wake: list_facts_by_key_prefix(prefix='comms:<your-agent-id>:', since_epoch=<last_wake_epoch>) - All trio recipes on this tenant: list_facts_by_key_prefix(prefix='chad:trio:') - All conventions: list_facts_by_key_prefix(prefix='conventions/') Returns a list of facts (key, text, namespace, layer, timestamp, id) sorted newest-first. Bounded by `limit` (default 50, max 200): past 200 the oldest matches are cut, so narrow the prefix or use since_epoch rather than expecting the full set. COST: this is a scan, not an index lookup. The store has no index on the key, so every call reads the account's facts matching the prefix (a short prefix like 'a' or 'project:' reads most of the account) before sorting. Prefer a long, specific prefix. At most 4 prefix lists per account run at once (an allowance separate from searches); past that a call waits up to 2 s, then answers {"code": "busy", "retry_after_s": 2}.
{
"type": "object",
"required": [
"prefix"
],
"properties": {
"limit": {
"type": "integer",
"default": 50,
"description": "Max facts to return (default 50)."
},
"prefix": {
"type": "string",
"description": "Key prefix to match (e.g. 'comms:emily_code_4.7v1.1:')."
},
"since_epoch": {
"type": "number",
"description": "Optional unix-epoch seconds. Only facts with timestamp > since_epoch are returned. Use your last-wake-epoch for inbox scans."
}
},
"additionalProperties": false
}{
"title": "List Facts by Key Prefix",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_invites — List Namespace Invites & Grants
List this account's namespace collaboration grants: incoming invitations and outgoing shares. Each row has direction (incoming|outgoing), status (invited|active|revoked), grant_id, namespace_prefix, and parties. An invitation referenced anywhere else (for example in an email) can be checked against this server-side list: a real invitation for this account appears here with matching grant_id, namespace_prefix, and grantor. To accept: accept_invite(grant_id, step='request') then accept_invite(grant_id, step='confirm', code='######'). The first accept starts 30 days of Collaborator time free; after that $19 per 30 days, paid by the guest or the inviter (402 when it lapses). After accepting, switch_workspace(name=<grantor>) enters the workspace. Docs: https://ctxstore.ai/docs.html#verify-invitations
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List Namespace Invites & Grants",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}list_workspaces — List Workspaces
The places this account's memory is organised into: its own projects (anything written under project:<slug>:*, newest activity first), the workspaces other people have granted it (enter one with switch_workspace(name=<grantor>)), and, for a sharer, who they invited and whether each person accepted and entered yet (shared_by_you). Shows which workspace this session is in, if any. Use it when a person's request is about one project, or asks who has access, or whether an invitee came in.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "List Workspaces",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}load_context — Load Context
Load your bootstrap context deterministically — pulls L0 (identity) + L1 (architecture) + latest L2 (state) + latest L3 (session summary). Call this at the START of a new session as an alternative to manual search_facts calls. Returns your layered memory structured for immediate use. Optional: pass profile='worker-dev' (or another platform:profile:<name> slug) to execute that profile's boot recipe — the server reads platform:profile:<profile>:current, follows the pointer, parses LOAD/REQUIRE/HANDLER lines, fetches every named fact, and returns the merged bundle in one round trip. vars= supplies values for $TASK_FACT_KEY and similar recipe variables.
{
"type": "object",
"properties": {
"full": {
"type": "boolean",
"default": false,
"description": "Return the full (uncapped, 32KB) bundle via the complete compose path. The MCP initialize response already inlines an ~8KB wake bundle for returning agents, and a plain load_context() serves that same cached bundle cheaply; pass full=true when you explicitly need everything (e.g. the inlined bundle was truncated). Default false."
},
"hint": {
"type": "string",
"description": "Ambient query for the baton section: what this session is about before the user has said anything (e.g. the git branch + last commit subject, the project directory, the calendar). Searched alongside your previous self's agent:<id>:wake-baton:current queries; the hits not already in the layered bundle are appended as a baton section. A hinted bundle is compiled fresh (not served from the cache)."
},
"vars": {
"type": "object",
"description": "Variable substitutions for the recipe (e.g. {'TASK_FACT_KEY': 'comms:dispatch:dev:42'}). Unknown variables remain literal in the resolved keys.",
"additionalProperties": {
"type": "string"
}
},
"scope": {
"type": "string",
"description": "Optional project/tenant-scope prefix (e.g. 'chad' or a project slug like 'emily-core'). Used for profile lookup AND, when agent_id is set, for project-scoped self-note lookups (project:<scope>:agent:<agent_id>:self-note:closing preferred over global agent:<agent_id>:self-note:closing)."
},
"profile": {
"type": "string",
"description": "Optional profile slug (e.g. 'worker-dev', 'orchestrator', 'analyst', 'cold'). Server reads <scope>:profile:<profile>:current in tenant first (if scope set), then platform:profile:<profile>:current in platform_facts."
},
"section": {
"type": "string",
"description": "Expand one section of the wake index: every pointer (key — headline) in that key family, ranked permanent → active → newest. Section names are the headers in the inlined index (e.g. 'conventions', 'people', 'project:emily-core', 'agent:<your id>'). Bodies stay a get_fact away."
},
"agent_id": {
"type": "string",
"description": "Calling agent's identity slug (e.g. 'emily_code_4.7'). When set, self-note injection uses exact-key lookups (agent:<agent_id>:self-note:closing/opening) instead of tenant-wide substring scans — required for correct behaviour on multi-agent tenants where another agent's note would otherwise leak in. When omitted, falls back to the legacy substring scan for backwards compatibility."
},
"max_fact_chars": {
"type": "integer",
"default": 1500,
"description": "Per-fact body cap. Facts exceeding this length are truncated in the bundle with an explicit get_fact() pointer for the full body. Default 1500. Tunable up if you legitimately need more, but consider splitting large facts instead."
},
"max_total_chars": {
"type": "integer",
"default": 32000,
"description": "Total bundle cap. If the assembled bundle exceeds this, a BUNDLE WARNINGS section is appended with the size signal. The bundle is NOT truncated at this limit — the warning lets the caller decide whether to lower top_k_per_layer or use targeted get_fact queries. Default 32000."
},
"top_k_per_layer": {
"type": "integer",
"default": 10,
"description": "Max facts to return per layer (default 10)"
}
}
}{
"title": "Load Context",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}mark_salient — Mark Salient (this matters now)
Salience peptide — temporarily boost a fact's retrieval ranking because it matters RIGHT NOW: an approaching deadline, a live incident, the topic under active work. The boost is small and FAST-DECAYING (max 1.4x, ~6-hour half-life — gone by tomorrow), unlike reinforce_fact which rewards confirmed outcomes on a weeks-long timescale. Name the current situation in `reason`. Salience is ranking-only: it can never override tenant isolation, namespace grants, or privacy filters, and stacked peptide boosts are globally capped.
{
"type": "object",
"required": [
"reason"
],
"properties": {
"key": {
"type": "string",
"description": "Exact fact key — marks the current version. Provide this OR fact_id."
},
"reason": {
"type": "string",
"description": "REQUIRED. Why this matters NOW, e.g. 'Snowflake migration deadline in 3 days' or 'debugging live incident #612'."
},
"weight": {
"type": "number",
"default": 1,
"description": "Salience strength 0-3 (default 1). Use ~0.5 for mildly topical, 1 for the current task, 2-3 for a live incident or imminent deadline."
},
"fact_id": {
"type": "string",
"description": "UUID of the fact to mark salient (from search results). Provide this OR key."
}
},
"additionalProperties": false
}{
"title": "Mark Salient (this matters now)",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}move_fact — Move Fact
Move a fact to a different namespace or layer without changing its content. Updates metadata in place — preserves fact_id, text, embedding, timestamp, and deprecation chain. Use for reclassifying facts (e.g. bootstrap-v2 refactor) without the storage bloat of store-new + soft-delete-old.
{
"type": "object",
"required": [
"fact_id"
],
"properties": {
"fact_id": {
"type": "string",
"description": "The UUID of the fact to move"
},
"new_layer": {
"type": "integer",
"description": "New layer: 0=identity, 1=architecture, 2=state, 3=session. Optional."
},
"new_namespace": {
"type": "string",
"description": "New namespace (e.g. 'archive', 'bootstrap-v2'). Optional."
}
}
}{
"title": "Move Fact",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}reinforce_fact — Reinforce Fact (recall-on-success)
Reward peptide — reinforce a fact whose recall LED TO A REAL GOOD OUTCOME (fix worked, deploy green, user approved). Boosts its future retrieval ranking with a bounded, time-decaying multiplier (max 1.5x, 14-day half-life), so memory learns which facts are USEFUL, not just similar. Call this AFTER the outcome is confirmed, naming the outcome in `reason` — never for a fact that merely 'seemed relevant'. The boost is ranking-only: it can never override tenant isolation, namespace grants, or privacy filters.
{
"type": "object",
"required": [
"reason"
],
"properties": {
"key": {
"type": "string",
"description": "Exact fact key — reinforces the current version. Provide this OR fact_id."
},
"reason": {
"type": "string",
"description": "REQUIRED. The concrete outcome this recall led to, e.g. 'used this fact to fix #492; deploy went green'. Rewards must trace to real outcomes."
},
"weight": {
"type": "number",
"default": 1,
"description": "Reward strength 0-3 (default 1). Use ~0.5 for minor wins, 1 for a confirmed success, 2-3 for major verified outcomes."
},
"fact_id": {
"type": "string",
"description": "UUID of the fact to reinforce (from search results). Provide this OR key."
}
},
"additionalProperties": false
}{
"title": "Reinforce Fact (recall-on-success)",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}resume_session — Resume Session
Call to load session continuity. Last session: no prior session.
{
"type": "object",
"properties": {},
"additionalProperties": false
}{
"title": "Resume Session",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}revoke_grant — Revoke Namespace Grant (Grantor)
Revoke a pending invitation or active grant as the GRANTOR (owner of the shared namespace). Idempotent. Grantees use decline_invite / leave_grant.
{
"type": "object",
"required": [
"grant_id"
],
"properties": {
"grant_id": {
"type": "string",
"description": "UUID of the grant to revoke."
}
},
"additionalProperties": false
}{
"title": "Revoke Namespace Grant (Grantor)",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}search_context — Search Conversations
Search across ingested conversations and session history for broader context. Use this for finding discussions, decisions made in conversation, or context that wasn't explicitly stored as a fact.
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Natural language search query"
},
"top_k": {
"type": "integer",
"default": 20,
"description": "Number of results (default 20, max 100)"
},
"source": {
"enum": [
"chatgpt",
"claude"
],
"type": "string",
"description": "Filter by source: 'chatgpt' or 'claude'"
},
"days_back": {
"type": "integer",
"description": "Only search within last N days"
}
}
}{
"title": "Search Conversations",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}search_facts — Search Facts
Search your persistent memory for stored facts. For session bootstrap, prefer load_context() or wake_status() — they pull your identity, conventions, and latest self-note deterministically. Use search_facts when you need semantic discovery across the fact corpus. Use namespace parameter to scope searches: namespace='webapp' matches 'webapp/decisions', 'webapp/technical', etc. (prefix matching). Search tips: use the words the fact was stored with. If you stored 'Postgres database', search for 'database' or 'Postgres', not 'data storage solution'. Each search embeds the query on a shared embedder: at most 4 searches (search_facts, search_context) per account run at once; past that a call waits up to 2 s, then answers {"code": "busy", "retry_after_s": 2}. Fan out with 2-4 readers, not 16.
{
"type": "object",
"required": [
"query"
],
"properties": {
"layer": {
"type": "integer",
"maximum": 3,
"minimum": 0,
"description": "Context persistence layer: 0=identity, 1=architecture, 2=state, 3=session."
},
"query": {
"type": "string",
"description": "What to search for"
},
"top_k": {
"type": "integer",
"default": 10,
"description": "Number of results"
},
"category": {
"enum": [
"preference",
"decision",
"identity",
"technical",
"relationship"
],
"type": "string",
"description": "Filter by category"
},
"namespace": {
"type": "string",
"description": "Filter results to a specific namespace."
},
"recollect": {
"type": "boolean",
"default": true,
"description": "When true (default), appends a RECOLLECTIONS section: facts cross-referenced from the top hits via related_facts and [[wiki]] links, ranked by association strength times outcome-weighted usefulness (reward/salience). Set false for plain semantic results only."
},
"boost_recent": {
"type": "boolean",
"default": true,
"description": "When true (default), appends the 5 most recent facts for recency signal. Set false to get pure semantic results without recent-fact injection."
},
"include_granted": {
"type": "boolean",
"default": true,
"description": "When true (default), hits from workspaces shared with this account (active grants, under their granted prefixes) follow the own results, each tagged |from:<grantor>'s workspace: <prefix>. Set false to search this account only. A blind session (bind_agent blind=true) defaults to false; pass true to include granted hits there. Ignored inside a workspace session."
}
}
}{
"title": "Search Facts",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}setup_account — Set up or restore memory account
Set up or restore your persistent memory connection. Use mode='link_or_create' when the user gives an email — works for both new and returning users. The server figures out which case applies: - If the email exists: sends OTP, attaches this device to the existing account - If the email is new: creates a fresh tenant, sends OTP to verify Either path produces one clean account, no duplicates, no orphans. Call setup_account(mode='link_or_create', email='their@email.com'). Then ask the user for the 6-digit code from their email and call setup_account(mode='verify', code='123456', email='their@email.com'). Passing email= on verify is required — session IDs rotate between requests on some clients. mode='restore': use when the user provides an emk_* API key directly. mode='reveal_key': echo the full emk_* API key. Works directly on an ALREADY-authenticated session; if the session isn't bound (some clients rotate or omit session ids between requests, so this can happen right after a successful verify), pass email= to receive a 6-digit code, then call again with email= and code= — the same rotation-proof lookup as mode='verify'. Success responses only show a key fingerprint (first 8 chars + last 4) — call this mode only when the user actually needs the full key, e.g. to persist it as 'Authorization: Bearer <key>' in an MCP connector config. Callers who prove neither a bound session nor email ownership are refused. If no email yet, ask: 'What email should I use for your memory account?' After setup completes, call search_facts as the first action to load prior context.
{
"type": "object",
"required": [
"mode"
],
"properties": {
"code": {
"type": "string",
"description": "6-digit verification code from email (required for mode='verify')."
},
"mode": {
"enum": [
"link_or_create",
"verify",
"restore",
"link_email",
"reveal_key",
"new",
"existing",
"verify_email"
],
"type": "string",
"description": "'link_or_create' = primary path — user provides email, server handles new vs returning. 'verify' = OTP confirmation step after link_or_create (pass email= and code=). 'restore' = user has emk_* API key from a prior session. 'link_email' = add email to an existing anonymous session. 'reveal_key' = echo the full API key (bound session, or email= + code= to verify by emailed OTP; responses otherwise show only a fingerprint)."
},
"email": {
"type": "string",
"description": "Email address. Required for mode='link_or_create'. Also pass on mode='verify' — required when session state is lost (common in claude.ai chat due to session ID rotation)."
},
"api_key": {
"type": "string",
"description": "API key from a previous session (required for mode='restore')"
},
"agent_id": {
"type": "string",
"description": "Optional: bind a sticky agent identity (e.g. 'emily_code_4.7') in the same call. Equivalent to calling bind_agent immediately after a successful setup. Persists to mcp_sessions.agent_id (migration 0008). wake_status and load_context will default to this agent_id when called without an explicit agent_id= arg. Per-call override still works."
}
},
"additionalProperties": false
}{
"title": "Set up or restore memory account",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}store_fact — Store Fact
Store information that should persist across sessions. Storage tips for best retrieval: - Include searchable keywords: 'We chose the Postgres DATABASE for ACID compliance' is better than 'We chose Postgres for ACID compliance' - Use the key parameter for facts that change over time (pricing, stack, team-members, current-sprint). When you store with the same key, the old version is archived automatically. - Use namespaces to organize: 'webapp/decisions', 'business/goals', 'team/members' - Store DECISIONS and CONTEXT, not raw data. 'We decided X because Y' is more useful than 'X happened' - Use category to classify: technical, decision, preference, identity, relationship - Use layer for context depth: 0=identity(stable), 1=architecture(monthly), 2=state(weekly), 3=session(daily) Before ending a conversation, call store_session_summary to preserve continuity.
{
"type": "object",
"required": [
"text",
"category"
],
"properties": {
"key": {
"type": "string",
"description": "Named key for this fact. Storing with the same key auto-archives the previous version. Use for facts that change over time: 'session-latest', 'current-stack', 'team-size'."
},
"text": {
"type": "string",
"description": "The fact to store"
},
"layer": {
"type": "integer",
"maximum": 3,
"minimum": 0,
"description": "Context persistence layer: 0=identity/stable, 1=architecture/monthly, 2=state/weekly, 3=session/daily."
},
"import": {
"type": "boolean",
"description": "Mark this write as an import (allows observed_at outside an archive namespace)."
},
"category": {
"enum": [
"preference",
"decision",
"identity",
"technical",
"relationship"
],
"type": "string",
"description": "Fact category"
},
"namespace": {
"type": "string",
"description": "Optional namespace to organise facts (e.g. 'work', 'personal'). Defaults to 'default'."
},
"observed_at": {
"type": "string",
"description": "Optional SOURCE date (ISO-8601, or unix epoch seconds as a string) for imported memory: the fact is stamped as true then, not now, and written_at records the write. Import writes or the account owner only; never in the future."
},
"is_permanent": {
"type": "boolean",
"default": false,
"description": "Whether this fact should bypass temporal decay"
},
"related_facts": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional list of related fact UUIDs to link (knowledge graph edges)"
}
}
}{
"title": "Store Fact",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}store_facts — Store Facts (batch)
Store up to 50 facts in one call — the same fields as store_fact per item. Made for carrying memory over: when you already remember things about the person from your own platform memory (ChatGPT memory, Claude memory, Gemini saved info), write them here one fact per item, in their words, with the date learned when known, so the memory follows them to every other tool. Each item is stored independently; the reply lists what landed and what did not.
{
"type": "object",
"required": [
"facts"
],
"properties": {
"facts": {
"type": "array",
"items": {
"type": "object",
"required": [
"text",
"category"
],
"properties": {
"key": {
"type": "string"
},
"text": {
"type": "string",
"description": "The fact to store"
},
"layer": {
"type": "integer",
"maximum": 3,
"minimum": 0
},
"import": {
"type": "boolean"
},
"category": {
"enum": [
"preference",
"decision",
"identity",
"technical",
"relationship"
],
"type": "string"
},
"namespace": {
"type": "string"
},
"observed_at": {
"type": "string"
},
"is_permanent": {
"type": "boolean"
}
}
},
"maxItems": 50,
"minItems": 1
}
},
"additionalProperties": false
}{
"title": "Store Facts (batch)",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}store_session_summary — Save Session Summary
Store a compressed summary of this session to preserve continuity for the next one. Call this before ending a conversation — it is the dream cycle. Stores a L3 session fact with key='session-latest' (or 'session-latest:claude-code' etc.), auto-archiving the previous version. The next session loads this via load_context(). Include: what was discussed/decided, what changed, what's next/unresolved. Collaborative takeaways: at natural session-end signals (user says 'okay I'm out', 'let's wrap', 'bye'), draft a one-line takeaway and confirm with the user before storing. Example: "I'll remember: we fixed the rebind bug and decided to skip transcript ingestion for MVP. Sound right?" Edit based on their response, then call store_session_summary. This makes memory consensual and catches mistakes immediately. Use session_id to scope by client: 'claude-code', 'claude-chat', 'cursor', 'openclaw'
{
"type": "object",
"required": [
"summary"
],
"properties": {
"scope": {
"type": "string",
"description": "Optional project slug for project-scoped last-wake-epoch watermark (conventions/wake-rehydration-v2:current)."
},
"summary": {
"type": "string",
"description": "What happened this session — decisions made, work done, context established"
},
"decisions": {
"type": "string",
"description": "Key decisions made or conclusions reached"
},
"next_steps": {
"type": "string",
"description": "What's pending, open questions, what to pick up next session"
},
"session_id": {
"type": "string",
"description": "Optional client identifier to scope this summary: 'claude-code', 'cursor', 'claude-chat', 'openclaw'. Defaults to bare session-latest."
},
"contributors": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional list of contributor IDs when multiple agents or users collaborated this session (e.g. ['agent-A', 'chad', 'emily']). Stored in summary for attribution."
}
}
}{
"title": "Save Session Summary",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}switch_workspace — Switch Workspace
Narrow this session's memory to one project: name='<slug>' scopes recall, the wake bundle, self-notes and the default namespace for new facts to project:<slug>:* (identity and conventions always ride along). Returns the narrowed bundle right away. name='' widens back to the whole account. Sticky for the session and across reconnects; bind_agent is unaffected. The same call ENTERS a workspace someone shared with this account: name='<their name>' (or their tenant id, or the granted prefix, as listed by list_workspaces) switches this connection into it; no second server, no header, no restart; it holds for the session. name='' leaves it for the session. HOME WORKSPACE: remember=true also makes it this account's home, so every new session starts inside it; switch_workspace(name='', forget=true) forgets the home. An account with no facts of its own and exactly one shared workspace starts inside that workspace automatically. list_workspaces and wake_status show the home and how this session entered (home, tool or header). When a person asks to work in someone else's shared memory, call this.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Project slug (the <slug> in project:<slug>:*), the name of a granted workspace to enter (from list_workspaces), or '' to widen / leave."
},
"forget": {
"type": "boolean",
"description": "With name='': also forget the home workspace, so new sessions start in your own account (the automatic home included)."
},
"remember": {
"type": "boolean",
"description": "With a granted workspace's name: also make it the home workspace, entered at the start of every new session."
}
},
"additionalProperties": false
}{
"title": "Switch Workspace",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}wake_status — Wake Status
Check which context layers loaded successfully on this session start. Returns a structured status: which of embryo, conventions, agent identity, closing note, and opening note were found, plus a missing[] list. Call this after load_context() or resume_session() to verify your bootstrap was complete and diagnose what to fetch manually. Optional: pass profile='worker-dev' (or another platform:profile:<name> slug) to additionally check the REQUIRE keys named in that profile's recipe. Missing required facts surface in the same missing[] list. blind_since= (with blind=true) sets when the blind session began, so list_facts_by_key_prefix hides feed comms keyed before it; the default is the session's start minus 60 s.
{
"type": "object",
"properties": {
"vars": {
"type": "object",
"description": "Variable substitutions for the recipe (e.g. {'TASK_FACT_KEY': 'comms:dispatch:dev:42'}).",
"additionalProperties": {
"type": "string"
}
},
"blind": {
"type": "boolean",
"description": "Optional, default false. true = blind session for a model fitting: from now on the wake bundle, every related/nearest list and the search tools on this session leave out keys under letter-to-emily:, project:*:wake:fresh-eye:, project:*:fitting:, project:*:agent:*:model-upgrade: and earlier fittings' feed comms (comms:...:feed-q-, feed-a-, fresh-eye-, ack-fresh-eye-), plus keyless facts whose text starts with a fitting product marker (FINDINGS, COMPARE, MODEL TRIAL ...); search_facts' include_granted then defaults to false. Remembered for the session; pass false to turn it off. get_fact by exact key is not filtered; list_facts_by_key_prefix lists only feed comms whose key epoch is at or after the moment blind turned on (this run's own feed)."
},
"scope": {
"type": "string",
"description": "Optional project/tenant-scope prefix (e.g. 'chad' or a project slug). Used for tenant-local recipe override AND, when agent_id is set, for project-scoped self-note lookups (project:<scope>:agent:<agent_id>:self-note:closing preferred over global)."
},
"profile": {
"type": "string",
"description": "Optional profile slug to validate REQUIRE keys against (e.g. 'worker-dev')."
},
"agent_id": {
"type": "string",
"description": "Calling agent's identity slug (e.g. 'emily_code_4.7'). When set, closing/opening/identity checks use exact-key lookups (agent:<agent_id>:self-note:closing, agent:<agent_id>:identity) instead of tenant-wide substring scans — required for correct status on multi-agent tenants. When agent_id resolves no notes, response includes is_fresh_agent=true to signal a brand-new agent that should bootstrap from platform layer (embryo + conventions + bootstrap recipe). When omitted, the response includes a warning that the status is account-level."
},
"blind_since": {
"type": "number",
"description": "Optional, with blind=true: the blind start in unix epoch seconds (a fitting passes its FITTING_STARTED_EPOCH); list_facts_by_key_prefix then hides feed comms keyed before it, and it must lie within 24 h before and 300 s after the server clock. Default: the session's start minus 60 s. On an already-blind session the earlier start is kept."
}
},
"additionalProperties": false
}{
"title": "Wake Status",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}watch_events — Watch Events (long-poll fact writes)
Long-poll this account's fact-write events instead of re-scanning with since_epoch. Every store/supersede/delete/archive/restore/move publishes one event {key, id, namespace, layer, op, ts, seq}. One call waits up to max_wait_s (max 25) for the first matching event and returns up to 50, plus next_since. MCP has no streaming here, so loop: pass next_since back as `since` on the next call and nothing is missed (the server keeps the last ~10000 events per account). Omit since to start from now; since=0 replays what is retained; a bare integer N returns events with seq > N. EXAMPLES - Wait for hands to post results: watch_events(prefix='task:pr27-review:result:', max_wait_s=25) - Resume: watch_events(prefix='comms:<your-agent-id>:', since='<next_since>') Inside a workspace only events for keys the grant can read are returned. Long-lived clients can use GET /api/v1/events (SSE) instead.
{
"type": "object",
"properties": {
"since": {
"type": "string",
"description": "Resume cursor: the next_since of the previous call (a stream id '<ms>-<n>'), '0' for everything retained, or a seq integer. Omit to start from now."
},
"prefix": {
"type": "string",
"description": "Only events whose key starts with this prefix."
},
"namespace": {
"type": "string",
"description": "Only events in this namespace (exact)."
},
"max_wait_s": {
"type": "number",
"default": 20,
"description": "Seconds to wait for the first event (0-25, default 20)."
}
},
"additionalProperties": false
}{
"title": "Watch Events (long-poll fact writes)",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
1 advertised
Context Store Statistics
Current state of the context store collections
context://statsFacts by Category
Browse facts by category (preference, decision, identity, technical, relationship)
context://facts/{category}90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 3 of 3 checks answered
- 2026-11-29: 4 of 4 checks answered
- 2026-11-30: 4 of 4 checks answered
- 2026-12-01: 4 of 4 checks answered
- 2026-12-02: 4 of 4 checks answered
- 2026-12-03: 4 of 4 checks answered
- 2026-12-04: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 3 of 3 (100%)
- Average latency
- 1324 ms
- 95th percentile latency
- 1733 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 996 ms · 33 tool(s), 1 resource(s), 1 resource template(s)
- · probe · passed · 1794 ms · metadata changed · 33 tool(s), 1 resource(s), 1 resource template(s)
- · probe · passed · 1182 ms · metadata changed · 33 tool(s), 1 resource(s), 1 resource template(s)
- · repository · passed · updated
- · repository · passed · metadata changed · unchanged
- · repository · passed · metadata changed · updated
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http ctxstore-mcp https://mcp.ctxstore.ai/mcpCodex
codex mcp add ctxstore-mcp --url https://mcp.ctxstore.ai/mcpCursor
{
"mcpServers": {
"ctxstore-mcp": {
"url": "https://mcp.ctxstore.ai/mcp"
}
}
}Cline
{
"mcpServers": {
"ctxstore-mcp": {
"type": "streamableHttp",
"url": "https://mcp.ctxstore.ai/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"ctxstore-mcp": {
"type": "http",
"url": "https://mcp.ctxstore.ai/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http ctxstore-mcp https://mcp.ctxstore.ai/mcpClaude Desktop
https://mcp.ctxstore.ai/mcpWindsurf
{
"mcpServers": {
"ctxstore-mcp": {
"serverUrl": "https://mcp.ctxstore.ai/mcp"
}
}
}Let your agent find its tools
Find servers like ctxstore MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other productivity and knowledge servers
Frequently asked questions
- Do I need an account to use the server?
- You do not need to sign in to connect or list tools. However, specific tools may require a vendor account, credentials, or permissions. You must check the documented prerequisites for each tool to determine if additional access is needed.
- How do I configure the server connection?
- After signing up, retrieve your key from the homepage. Add the server using the --bearer-token-env-var CTXSTORE_API_KEY argument. You should also export the variable in your shell profile with export CTXSTORE_API_KEY="<key>".
- Can I share memory with other users?
- Yes, you can share workspace memory via namespace grants. Tools such as `invite`, `accept_invite`, and `leave_grant` manage these permissions. Ensure you have the necessary rights to create or accept these grants for your workspace.
Do you run ctxstore MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.