/fe-app-toolkit:agent-memory-servicefrom fe-app-toolkit
Persistent memory for AI agents, MCP memory service, cross-conversation agent memory on Databricks
Ships in fe-app-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Persistent, searchable memory for AI agents deployed as a Databricks App with MCP SSE transport, Lakebase PostgreSQL storage, and async Delta sync.
https://github.com/databricks-field-eng/lakebase-agent-memory-service.gitUse this service when you need:
Agent/Client --> MCP SSE --> Databricks App (FastAPI, port 8000)
|
v
Lakebase PostgreSQL (pgvector)
|
v
Delta Sync (async to Unity Catalog)
/sseowner_email, soft-delete| Tool | Description |
|---|---|
store_memory_tool | Store a new memory with type, content, and optional tags |
search_memories_tool | Semantic search across memories by query string |
get_memories_tool | List memories with optional type and date filters |
delete_memory_tool | Soft-delete a memory by ID |
summarize_conversation_tool | Summarize a conversation and store as memory |
| Type | Purpose |
|---|---|
conversation_summary | Auto-generated summaries of past conversations |
project_fact | Facts about projects, architectures, decisions |
user_preference | User preferences, coding style, tool choices |
git clone https://github.com/databricks-field-eng/lakebase-agent-memory-service.git
cd dbx-agentic-memory-as-a-service
# Required -- one of these connection methods
ENDPOINT_NAME=my-lakebase-endpoint # Autoscaling endpoint
# OR
LAKEBASE_INSTANCE=my-lakebase-instance # Provisioned instance
# OR
PGHOST=... PGUSER=... PGPASSWORD=... # Direct connection
# Required
DATABRICKS_HOST=https://my-workspace.cloud.databricks.com
LLM_ENDPOINT=databricks-claude-sonnet-4-6 # For summarization
command: ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]
resources:
- name: my-lakebase
database:
instance: my-lakebase-instance
permission: CAN_CONNECT_AND_CREATE
databricks apps deploy agent-memory --source-code-path=/Workspace/path/to/app
Create an HTTP connection with is_mcp_connection: true and base_path: /sse pointing to the app URL.
For programmatic access (e.g., from another Python service):
from mcp_memory import configure, init_schema, store_memory, search_memories
# Configure connection
configure(endpoint_name="my-lakebase-endpoint")
# Initialize schema (run once)
init_schema()
# Store a memory
memory_id = store_memory(
conversation_id="conv-001",
project_id="my-project",
memory_type="user_preference",
content="User prefers dark mode and uses Vim keybindings",
owner_email="[email protected]",
tags={"source": "conversation", "confidence": "high"},
)
# Search memories
results = search_memories(
project_id="my-project",
query_text="What editor preferences does the user have?",
owner_email="[email protected]",
limit=5,
)
for memory in results:
print(f"[{memory['similarity']:.2f}] {memory['content']}")
The service resolves user identity from HTTP headers in this priority:
All memory operations are filtered by the resolved identity, providing row-level access control.
The repo includes Terraform modules for provisioning:
| File | Purpose |
|---|---|
terraform/main.tf | App definition, service principal |
terraform/variables.tf | Configurable inputs (instance name, workspace URL, etc.) |
terraform/lakebase.tf | Lakebase instance and database |
terraform/uc_connection.tf | Unity Catalog HTTP connection for MCP |
terraform/app.tf | Databricks App resource definition |
terraform/outputs.tf | Terraform output values |
terraform/uc_audit.tf | Audit logging configuration |
cd terraform
terraform init
terraform plan -var="workspace_url=https://my-workspace.cloud.databricks.com"
terraform apply
The memory service integrates with chat-app-utilities ChatOrchestrator via the memory_project_fn parameter:
from chat_app_utilities import ChatOrchestrator
orchestrator = ChatOrchestrator(
fm_endpoint="databricks-claude-sonnet-4-6",
system_prompt_builder=lambda s: "You are helpful.",
memory_project_fn=lambda: f"my-app-{get_current_user()}",
workspace_client_fn=get_workspace_client,
)
When memory_project_fn is set, the orchestrator:
Add the memoryPlugin() to the configurable-react-template admin panel:
import { AdminPage, memoryPlugin } from "@configurable-react-client/template";
<AdminPage
plugins={[memoryPlugin()]}
configApi={configApi}
onBack={handleBack}
/>
This provides a UI for browsing, searching, and deleting stored memories.
See references/api-reference.md for complete tool signatures and API details.
CAN_CONNECT_AND_CREATE permission for the Lakebase resource.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sarah-hord-db/vibe --plugin fe-app-toolkit4 skills in this plugin
/chat-app-utilitiesAdding admin monitoring, config CRUD, chat pipeline with Genie/KA sources, FastAPI router factories for Databricks Apps/configurable-react-templateBuilding a Databricks App frontend, adding UI features (admin, chat, reports, branding), scaffolding a React app for Databricks/lakebase-semantic-cacheAdding semantic caching to a Databricks App, reducing duplicate LLM calls, pgvector cachingOther plugins' skills for the same job