Zep MCP server for AI agents

Live

API KEY

AGENT MEMORY

AI

Zep gives your agent long-term memory in your Zep project: search knowledge graphs for facts, nodes, and episodes, read thread messages and summaries, and create users, threads, and graph data.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Zep
agent · Acme Q3
Run
What do we know about Priya's travel preferences?
S
zep_graph_edges_search
187ms
Memory agent
Found 4 facts, including that Priya prefers aisle seats and flies Delta.
Sources: Zep user graph, 4 facts
zep
4 facts
18:29
Message Claude...

Tools your agent memory agent reaches for on Zep, scoped per user.

CALL ANY TOOL
60 tools for agent memory in Zep: search knowledge graphs for facts, nodes, and episodes, read thread messages and summaries, and create users, threads, graphs, and graph data.
zep_edge_delete
Delete edge
Delete an edge (fact) from a graph. Returns an empty response. Get UUIDs from zep_edges_list.
Parameters
Name
Type
Required
Description
edge_uuid
string
Required
UUID of the edge. Get it from zep_edges_list or zep_graph_edges_search. Example: 8a1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e.
graph_uuid
string
Required
Zep UUID of the graph. For a user's graph you can also pass the user's UUID. Get graph UUIDs from zep_graphs_list. Example: 3f2b8c1e-7d4a-4e5b-9c6d-2a1b0e9f8c7d.
zep_edge_get
Get edge
zep_edge_update
Update edge
zep_edges_add
Add edges
zep_edges_list
List edges
zep_episodes_list
List episodes
zep_graph_clone
Clone graph
zep_graph_context_get
Get graph context
zep_graph_create
Create graph
zep_graph_delete
Delete graph
zep_graph_edges_search
Search graph edges
zep_graph_instructions_get
Get graph instructions
zep_graph_instructions_set
Set graph instructions
zep_graph_nodes_search
Search graph nodes
zep_node_get
Get node
zep_node_neighbors_list
List node neighbors
zep_node_update
Update node
zep_nodes_add
Add nodes
zep_observations_list
List observations
zep_project_instructions_get
Get project instructions
zep_project_instructions_set
Set project instructions
zep_task_get
Get task
zep_thread_create
Create thread
zep_thread_delete
Delete thread
zep_thread_get
Get thread
zep_thread_lookup
Thread lookup
zep_thread_messages_list
List thread messages
zep_thread_summary_get
Get thread summary
zep_threads_list
List threads
zep_user_get_by_email
User get by email

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Zep tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["zep"], toolNames: [
    "zep_graph_edges_search",
    "zep_graph_nodes_search",
    "zep_thread_context_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Search Priya's graph for travel facts, find related nodes, and get the memory context for her thread" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["zep"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Search Priya's graph for travel facts, find related nodes, and get the memory context for her thread" }],
  tools,
});

// Execute the tool call with the user's vaulted Zep API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["zep"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Search Priya's graph for travel facts, find related nodes, and get the memory context for her thread" }],
  tools,
});

// Tool call runs with the user's vaulted Zep API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["zep"] }, pageSize: 100,
});

const agent = new Agent({
  name: "agent_memory_agent",
  model: "gemini-2.5-pro",
  instruction: "Zep tools scoped to this user",
  tools,
});

await agent.run("Search Priya's graph for travel facts, find related nodes, and get the memory context for her thread");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Zep tool. Click to copy, paste into your agent, done.
Search memory
Copy the prompt
Copied
Search Priya's graph for facts about travel preferences.
Copy the prompt
Copied
Find the nodes related to the Acme account.
Copy the prompt
Copied
Get the memory context for this thread.
Threads and users
Copy the prompt
Copied
List the messages in this thread.
Copy the prompt
Copied
Look up the user with the email priya@example.com.
Copy the prompt
Copied
List all users in my Zep project.
Write memory
Copy the prompt
Copied
Add this note to the user's graph as an episode.
Copy the prompt
Copied
Create a thread for this user.
Copy the prompt
Copied
Add these messages to the thread.
SEE HOW AUTH WORKS
Each user connects their own Zep API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Zep
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Zep
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Zep
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Zep
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other AI and database connectors.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other AI and database connectors.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Zep API key looks fine in a demo. In production every memory write and user delete looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Zep today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Zep as the user or through a shared key?
As the user. Each user connects their own Zep API key once, and Scalekit sends it with every call. Every memory write and user change in your audit trail is attributed to that user, not a shared service account.
Where is the Zep API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Zep?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the search and get tools without zep_user_delete or zep_graph_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Zep access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Does the agent read graph data as well as thread messages?
Yes. zep_graph_edges_search, zep_graph_nodes_search, zep_graph_episodes_search, and zep_graph_observations_search search the graph, and zep_thread_messages_list and zep_thread_summaries_list read thread messages and summaries.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""zep"": {
""url"": ""https://mcp.scalekit.com/zep"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.zep]
url = ""https://mcp.scalekit.com/zep""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""zep"": {
""url"": ""https://mcp.scalekit.com/zep"",
""type"": ""http""
}
}
}