MCP Server

The Rekall MCP server exposes 40+ tools through the Model Context Protocol, giving any MCP-compatible AI client full access to Rekall's memory capabilities.

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables AI applications to securely connect to external tools and data sources. MCP provides a universal interface between AI clients (like Claude Desktop or Cursor) and capability servers (like Rekall).

Instead of building custom integrations for every AI tool, Rekall ships a single MCP server that works with any MCP-compatible client. The server runs locally on your machine and communicates over standard I/O, keeping your API keys and memory data secure.

security

Secure by Default

Runs locally, communicates over stdio. API keys never leave your machine.

extension

Universal Protocol

One server works with Claude Desktop, Cursor, OpenCode, and any MCP client.

bolt

40+ Tools

Full coverage of memory CRUD, search, entities, workflows, execution, and more.

Installation

Install the Rekall MCP server globally via npm:

Terminal
npm install -g @rekall/mcp-server

Verify the installation by checking the version:

Terminal
rekall-mcp --version

Node.js required

The MCP server requires Node.js 18 or later. Install it from nodejs.org if you don't have it already.

Configuration

The MCP server is configured through your AI client's MCP configuration file. The most common setup is in claude_desktop_config.json:

claude_desktop_config.json
{
"mcpServers": {
"rekall": {
"command": "rekall-mcp",
"args": ["--stdio"],
"env": {
"REKALL_API_KEY": "your-api-key-here"
}
}
}
}

Environment Variables

VariableRequiredDescription
REKALL_API_KEYYesYour Rekall API key for authentication
REKALL_BASE_URLNoCustom API base URL (default: https://api.rekall.ai)
REKALL_AGENT_IDNoDefault agent identity for memory operations
REKALL_CONTEXTNoDefault memory context (e.g., project name)
REKALL_LOG_LEVELNoLogging level: debug, info, warn, error (default: info)

Tools Overview

The Rekall MCP server provides 40+ tools organized into nine categories. Each tool is automatically available to your AI client once the MCP server is configured.

storageMemory CRUD

Create, read, update, and delete memories of all types.

create_memory

Create a new memory with type, content, metadata, and context

get_memory

Retrieve a memory by its ID with full metadata

update_memory

Update an existing memory's content, metadata, or strength

delete_memory

Soft-delete a memory (recoverable) or hard-delete permanently

list_memories

List memories with filtering by type, context, date range, and tags

bulk_create_memories

Create multiple memories in a single batch operation

archive_memory

Archive a memory to reduce its visibility without deletion

searchSearch

Semantic, full-text, and hybrid search across memories.

search_memories

Hybrid search combining semantic similarity and keyword matching

semantic_search

Pure vector-based semantic similarity search

fulltext_search

PostgreSQL full-text search with ranking

search_by_entity

Find all memories referencing a specific entity

search_by_context

Search within a specific memory context (agent, user, project)

find_related

Find memories related to a given memory by content similarity

hubEntities

Manage entities extracted from memories for knowledge graphs.

create_entity

Create a new entity with name, type, and properties

get_entity

Retrieve an entity by ID with its relationships

update_entity

Update entity properties or merge with another entity

delete_entity

Delete an entity and optionally its relationships

list_entities

List entities filtered by type, context, or search query

merge_entities

Merge duplicate entities, consolidating their relationships

shareRelationships

Define and query relationships between entities.

create_relationship

Create a typed relationship between two entities

get_relationships

Get all relationships for a given entity

delete_relationship

Remove a relationship between entities

traverse_graph

Walk the entity graph from a starting node with depth control

account_treeWorkflows

Manage procedural memories as structured workflows.

create_workflow

Create a procedural workflow with ordered steps

get_workflow

Retrieve a workflow with all steps and metadata

update_workflow

Modify workflow steps, ordering, or conditions

execute_workflow

Start a workflow execution, creating an execution memory

learn_workflow

Let the agent learn a new workflow from observed actions

smart_toyAgents

Agent-specific memory operations and context management.

get_agent_context

Retrieve the full memory context for an agent session

set_agent_context

Update the active memory context for an agent

switch_context

Switch between memory contexts (user, project, hive)

get_agent_memories

List all memories owned by a specific agent

groupsHives

Shared memory spaces for agent teams and collaborative knowledge.

create_hive

Create a shared memory hive for a team of agents

join_hive

Add an agent to an existing hive

leave_hive

Remove an agent from a hive

share_to_hive

Share a memory from an agent context to a hive

get_hive_memories

List memories shared within a hive

play_circleExecution

Manage long-running agent task state with checkpoints.

create_execution

Start tracking a new agent execution with initial state

checkpoint_execution

Save a checkpoint of current execution state

resume_execution

Resume an execution from its last checkpoint

complete_execution

Mark an execution as complete with final results

get_execution_state

Retrieve the current state of a running execution

tunePreferences

Learn and apply user preferences from interactions.

get_preferences

Retrieve learned preferences for a user or agent

set_preference

Explicitly set a preference key-value pair

infer_preferences

Trigger preference inference from recent interactions

apply_preferences

Apply learned preferences to a response or action

Progressive Disclosure (Infinite Context)

These tools enable token-efficient memory retrieval by splitting search into two steps: get a lightweight index first, then load only what you need.

memory_search_index

Search memories and return lightweight index with IDs, snippets, relevance scores, and token estimates. Uses 5-10x fewer tokens than full search.

memory_get_batch

Load full content for specific memory IDs. Use after memory_search_index to load only the memories you actually need.

memory_observe

Store an observation (tool output, file read, API response). Automatically indexed for progressive disclosure retrieval.

memory_session_context

Get injectable session context with recent observations and active contexts. Recommended at session start.

memory_timeline

Get chronological context around an observation. Useful for understanding temporal relationships.

MCP Prompts

MCP clients can request built-in guidance prompts: rekall-guide, infinite-context, and memory-workflow. These provide the agent with best practices for memory-efficient retrieval at session start.

Tool Documentation Format

Each MCP tool follows a consistent schema. The AI client receives the tool definition automatically and can invoke it with the correct parameters. Here is an example of what a tool definition looks like:

Tool definition example
{
"name": "create_memory",
"description": "Create a new memory with type, content, and metadata",
"inputSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["episodic", "semantic", "procedural", "long_term",
"short_term", "execution", "preference"],
"description": "The type of memory to create"
},
"content": {
"type": "string",
"description": "The text content of the memory"
},
"metadata": {
"type": "object",
"description": "Optional metadata tags and properties"
},
"context": {
"type": "string",
"description": "Memory context (agent ID, project, or hive)"
}
},
"required": ["type", "content"]
}
}

Auto-discovery

MCP clients automatically discover all available tools when the server starts. You do not need to manually register tools -- simply configure the server and your AI client will have access to all 40+ tools immediately.

Next Steps

Rekall
rekall